diff options
| author | kotorifan <kotorifan05@gmail.com> | 2026-04-21 19:55:51 +0200 |
|---|---|---|
| committer | kotorifan <kotorifan05@gmail.com> | 2026-04-21 19:55:51 +0200 |
| commit | 1efdb8ab18042d9efc7c2e6addf7f414fbee5590 (patch) | |
| tree | 5ffd6553ab46e5465c0d056bc6658a23b27c5e64 /src/common.h | |
| parent | 476c10961d6ddba806cd9f587fc461c848d27401 (diff) | |
| download | trashbinphysics-1efdb8ab18042d9efc7c2e6addf7f414fbee5590.tar.gz | |
Added graphics functions
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/common.h b/src/common.h index a9ad3d0..c757489 100644 --- a/src/common.h +++ b/src/common.h @@ -11,17 +11,13 @@ typedef int_least16_t i16; typedef uint_least32_t u32; typedef int_least32_t i32; -typedef struct { - float x; - float y; -} Vec2d; + // settings // UI -#define SCREEN_WIDTH 800 -#define SCREEN_HEIGHT 600 #define SCREEN_TITLE "physics" - +#define WINDOW_X 1250 +#define WINDOW_Y 1000 // physics #define MAX_OBJECTS 100 #define FORCE_RESITUTION_DEFAULT 0.8f @@ -33,15 +29,4 @@ typedef enum { SHAPE_SQUARE, SHAPE_RECTANGLE } shape_t; - -typedef struct { - shape_t type; - Vec2d pos; - Vec2d vel; - Vec2d acc; - float width; - float height; - Color color; -} object_t; - #endif // COMMON_H |
