This commit is contained in:
Isuru Samarathunga
2025-10-21 21:03:40 +05:30
parent 86ed9346aa
commit 2d5875d211
11 changed files with 239 additions and 165 deletions

View File

@ -43,8 +43,11 @@ namespace ia::iae
STATIC BOOL IsPointerDown();
STATIC Vec2 GetPointerPosition();
STATIC BOOL IsPointerDown(IN CONST Vec2& start, IN CONST Vec2& end);
STATIC BOOL DidPointerClick(IN CONST Vec2& start, IN CONST Vec2& end);
STATIC BOOL DidPointerClick(IN CONST Vec2& center, IN FLOAT32 radius);
STATIC BOOL IsPointerDown(IN CONST Vec2& center, IN FLOAT32 radius);
STATIC BOOL IsKeyDown(IN InputKey key);
STATIC BOOL WasKeyPressed(IN InputKey key);
@ -93,6 +96,7 @@ namespace ia::iae
STATIC VOID OnSDLEvent(IN SDL_Event *event);
friend class Engine;
friend class __Internal_Engine;
};
} // namespace ia::iae

View File

@ -67,6 +67,8 @@ namespace ia::iae
STATIC VOID OnScreenResize(IN INT32 newWidth, IN INT32 newHeight);
STATIC VOID UpdateSceneScalingFactor();
public:
STATIC Geometry *CreateGeometry(IN CONST Vector<GeometryVertex> &vertices, IN CONST Vector<INT32> &indices);
STATIC VOID DestroyGeometry(IN Geometry *handle);
@ -102,6 +104,7 @@ namespace ia::iae
STATIC BOOL s_ySortingEnabled;
STATIC SDL_Rect s_defaultScissor;
STATIC SDL_GPUViewport s_defaultViewport;
STATIC Vec2 s_activeSceneDesignViewport;
friend class Engine;
};