renderiranje - nazaj na singlethreaded ker me SDL ne mara :(
This commit is contained in:
11
include/object/transform.hpp
Normal file
11
include/object/transform.hpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
namespace Game::Object {
|
||||
typedef struct {
|
||||
float x, y;
|
||||
float rotation; // In degrees, clockwise
|
||||
float scaleX, scaleY;
|
||||
} Transform;
|
||||
|
||||
constexpr Transform DEFAULT_TRANSFORM{0.f, 0.f, 0.f, 1.f, 1.f};
|
||||
}
|
||||
Reference in New Issue
Block a user