]> git.bts.cx Git - benzene.git/blob - src/bz/types/point.h
Fixed Aseprite rendering system
[benzene.git] / src / bz / types / point.h
1 #ifndef BZ_TYPES_POINT_H
2 #define BZ_TYPES_POINT_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 struct BZPoint {
9 float x;
10 float y;
11 };
12 typedef struct BZPoint BZPoint;
13
14 static inline BZPoint bzPointMake(float x, float y) {
15 return (BZPoint){ .x = x, .y = y };
16 }
17
18 //#define bzPointMake(x, y) ((BZPoint){ .x = x, .y = y })
19
20 #ifdef __cplusplus
21 }
22 #endif
23
24 #endif