1 #ifndef ENGINE_GRAPHICS_API_H
2 #define ENGINE_GRAPHICS_API_H
30 enum EditorOrientation
40 EditorOrientation orient;
51 LayoutBuilder *
withSize(
int w,
int h);
62 Layout *l =
new Layout();
77 Button(std::string name,
Color color,
int x,
int y,
int h,
int w);
80 void render(SDL_Renderer *gRenderer);
82 bool isMouseOnButton(
int mouseX,
int mouseY);
91 GraphicsProgram(Layout *l);
97 void paintQuadTreeBounds(
Point topLeft,
Point bottomRight);
102 void mouseInputHandler();
114 std::vector<ParticleGroupHandle *> groupOptions;
118 EditorOrientation orient;
122 int events[NUMEVENTS];
124 SDL_PixelFormat *pixelFormat =
nullptr;
126 SDL_Window *gWindow =
nullptr;
128 SDL_Renderer *gRenderer =
nullptr;
130 SDL_Texture *gTexture =
nullptr;
132 Uint32 *pixels =
nullptr;
134 std::vector<SDL_Rect *> rects;
136 std::vector<Button> buttons;
139 void mouseButtonHandler(
int mouseX,
int mouseY);
141 bool isInParticleScreen(
int mouseX,
int mouseY);
142 bool displayQuads =
false;
Definition: ParticleGroupHandle.h:29
Definition: ParticleGroup.h:20
LayoutBuilderPtr withWindowRatio(LayoutBuilderPtr builder, int particlePCT)
configure size of particle placing portion of the window. input is the percentage that will take up ...
Definition: engine_capi.cpp:80
LayoutBuilderPtr withParticleSize(LayoutBuilderPtr builder, int particleSize)
configure the size of particles (default 3)
Definition: engine_capi.cpp:97
LayoutBuilderPtr withEditorOrientation(LayoutBuilderPtr builder, int orient)
configure whether horizontal or vertical orientation for the editor
Definition: engine_capi.cpp:85
LayoutBuilderPtr withSize(LayoutBuilderPtr builder, int w, int h)
set size of layout
Definition: engine_capi.cpp:75
where something is in 2d space
Definition: QuadTree.h:7