diff options
Diffstat (limited to 'src/renderer/Renderer.hpp')
| -rw-r--r-- | src/renderer/Renderer.hpp | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/renderer/Renderer.hpp b/src/renderer/Renderer.hpp index 515e1da..47837ee 100644 --- a/src/renderer/Renderer.hpp +++ b/src/renderer/Renderer.hpp @@ -78,7 +78,10 @@ public: void Draw(); void Reset(); - void Clear(Color color); + void SetClearColor(Color color); + void SetScreenSize(int32_t w, int32_t h); + void SetCameraSize(float w, float h); + void PushAlphaBitmap(AlphaBitmap& bitmap, V3F32 pos, Color color); void PushRectangle(Rectangle rect, Color color, float z); void PushCircle(Circle circle, Color color, float z); @@ -87,26 +90,13 @@ public: /* helper functions */ - void SetScreenSize(int32_t w, int32_t h); - void SetCameraSize(float w, float h); - int32_t WorldXToScreenX(float x); int32_t WorldYToScreenY(float y); - int32_t WorldWidthToScreenWidth(float w); int32_t WorldHeightToScreenHeight(float h); - /* temporary helper functions (from old RGroup api) */ - - float GetScale(); - V2F32 ViewPosToScreenPos(V2F32 view_pos); - V2F32 ViewSizeToScreenSize(V2F32 view_size); - ImVec2 ViewPosToScreenPosImGui(V2F32 view_pos); - ImVec2 ViewSizeToScreenSizeImGui(V2F32 view_size); - - public: SDL_Window* m_window; |
