Sfoglia il codice sorgente

testbed: updated components

skypjack 1 anno fa
parent
commit
f5bbc895b5

+ 11 - 0
testbed/component/position_component.h

@@ -0,0 +1,11 @@
+#pragma once
+
+#include <SDL3/SDL_rect.h>
+
+namespace testbed {
+
+struct position_component {
+    SDL_FPoint point;
+};
+
+} // namespace testbed

+ 2 - 2
testbed/component/rect_component.h

@@ -1,11 +1,11 @@
 #pragma once
 
-#include <SDL_rect.h>
+#include <SDL3/SDL_rect.h>
 
 namespace testbed {
 
 struct rect_component {
-    SDL_Rect area;
+    SDL_FRect area;
 };
 
 } // namespace testbed