Browse Source

add handle back to app

master
Odilitime 1 year ago
parent
commit
3d30975055
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/interfaces/graphical/renderers/renderer.h

+ 6
- 0
src/interfaces/graphical/renderers/renderer.h View File

@@ -6,6 +6,8 @@
#include <string>
#include <functional>

class App;

#ifdef FLOATCOORDS
typedef double coordinates;
typedef double sizes;
@@ -37,6 +39,10 @@ public:
virtual Sprite* createSpriteFromColor(const unsigned int hexColor) { return nullptr; }
virtual void drawSpriteBox(Sprite *texture, Rect *position) {}
virtual void drawSpriteText(Sprite *texture, unsigned int hexColor, Rect *position) {}
// handle back to app
App *app;
//
size_t width;
size_t height;

Loading…
Cancel
Save