migrat a SDL3

This commit is contained in:
2025-03-23 20:08:55 +01:00
parent 3e860d8a30
commit 4c9b8adfa6
4 changed files with 424 additions and 0 deletions

18
source/defines.h Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
#include "SDL3/SDL.h"
#include <stdlib.h>
constexpr char WINDOW_CAPTION[] = "demo3_pixels_bouncing";
constexpr int WIDTH = 320;
constexpr int HEIGHT = 240;
constexpr int ZOOM = 3;
constexpr float GRAVITY = 0.2f;
constexpr int DOT_SIZE = 1;
constexpr int MAX_DOTS = 200000;
constexpr int TEXT_TIME = 100;
struct Color
{
int r, g, b;
};