diff options
Diffstat (limited to 'src/renderer/RSoftwareBackend.hpp')
| -rw-r--r-- | src/renderer/RSoftwareBackend.hpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/renderer/RSoftwareBackend.hpp b/src/renderer/RSoftwareBackend.hpp index 89d6a52..3e5e17d 100644 --- a/src/renderer/RSoftwareBackend.hpp +++ b/src/renderer/RSoftwareBackend.hpp @@ -16,11 +16,19 @@ public: uint32_t* pixels; }; + struct DestRect { + int32_t x0; + int32_t y0; + int32_t x1; + int32_t y1; + }; + public: - RSoftwareBackend(SDL_Window* window, Renderer& renderer); + RSoftwareBackend(Renderer& renderer); void Draw(); + void Clear(Color color); private: @@ -29,10 +37,11 @@ private: void DrawRectangle(REntity_Rectangle& entity); void DrawAlphaBitmap(REntity_AlphaBitmap& entity); + void DrawText(REntity_Text& entity); + void DrawTextGlyph(Glyph& glyph, Color color, int32_t xscreen, int32_t yscreen); private: - SDL_Window* m_window{}; Renderer& m_renderer; uint32_t m_gltexture_id{}; |
