Add a Rect object
This commit is contained in:
parent
87b3ca0efc
commit
6d253aab10
2 changed files with 28 additions and 0 deletions
|
@ -26,4 +26,12 @@ float vector_length(Vector3 v);
|
|||
Vector3 vector_normalize(Vector3 v);
|
||||
|
||||
|
||||
typedef struct {
|
||||
float x, y;
|
||||
float w, h;
|
||||
} Rect;
|
||||
|
||||
Rect rect_init(float x, float y, float h, float w);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue