skypjack 10 месяцев назад
Родитель
Сommit
f5bbc895b5
2 измененных файлов с 13 добавлено и 2 удалено
  1. 11 0
      testbed/component/position_component.h
  2. 2 2
      testbed/component/rect_component.h

+ 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