Przeglądaj źródła

testbed: updated components

skypjack 10 miesięcy temu
rodzic
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
 #pragma once
 
 
-#include <SDL_rect.h>
+#include <SDL3/SDL_rect.h>
 
 
 namespace testbed {
 namespace testbed {
 
 
 struct rect_component {
 struct rect_component {
-    SDL_Rect area;
+    SDL_FRect area;
 };
 };
 
 
 } // namespace testbed
 } // namespace testbed