|
| virtual void | SetDesiredViewport (int width, int height)=0 |
| | Engine setup. More...
|
| |
|
virtual engine::Size | GetDesiredViewport ()=0 |
| |
|
virtual void | SetViewportScale (float)=0 |
| | Sets the viewport scale.
|
| |
| virtual uint64_t | GetTicks ()=0 |
| | Engine states. More...
|
| |
|
virtual uint64_t | GetPerformanceTicks ()=0 |
| | More robuts results than GetTicks.
|
| |
|
virtual uint64_t | GetPerformanceCounter ()=0 |
| | More robuts results than GetTicks.
|
| |
|
virtual void | Delay (uint32_t ms)=0 |
| | Wait ms.
|
| |
|
virtual void | GetWindowSize (int *w, int *h)=0 |
| | Get the current window size.
|
| |
|
virtual void | GetRendererOutputSize (int *w, int *h)=0 |
| | Get the renderer output size.
|
| |
| virtual void | SetRenderBackgroundColor (uint8_t r, uint8_t g, uint8_t b, uint8_t a)=0 |
| | Renderer related. More...
|
| |
|
virtual void | ClearRender ()=0 |
| | Clear the frambuffer with a previously set colour.
|
| |
|
virtual void | RenderPresent ()=0 |
| | Update the screen with any rendering performed since the previous call.
|
| |
| virtual std::unique_ptr< DrawableSpriteI > | DrawableCreate (SpriteAtlasItemI *, float)=0 |
| | Drawables. More...
|
| |
| virtual std::unique_ptr< DrawableTargetI > | DrawableTargetCreate (float, float)=0 |
| |
| virtual void | DrawableRender (DrawableI *, SpriteRepresentationI *spr, float, float)=0 |
| |
| virtual void | DrawableRender (DrawableI *, SpriteRepresentationI *spr, float, float, Color4)=0 |
| |
|
virtual void | DrawableTargetRender (DrawableTargetI *, float, float)=0 |
| | Render the target drawable for the current frame at x, y.
|
| |
| virtual TextureI * | LoadTexture (std::string name, FileStreamI *)=0 |
| | Textures. More...
|
| |
| virtual TextureTargetI * | CreateTargetTexture (int width, int height)=0 |
| |
|
virtual void | UnloadTexture (TextureI *texture)=0 |
| | A concrete instance should unload the texture.
|
| |
| virtual void | RendererTargetDrawablePush (DrawableTargetI *)=0 |
| | Renderer specific. More...
|
| |
| virtual void | RendererTargetDrawablePop ()=0 |
| |
| virtual void | RendererTargetDrawableSet (DrawableTargetI *)=0 |
| |
| virtual void | RenderTargetClear ()=0 |
| |
|
virtual void | RenderClear ()=0 |
| | Clears the buffer before drawing a new frame.
|
| |
|
virtual void | RenderSetColor (uint8_t r, uint8_t g, uint8_t b, uint8_t a)=0 |
| | Sets the draw color.
|
| |
| virtual void | RenderSetScale (float scaleX, float scaleY)=0 |
| |
|
virtual void | RenderDrawRect (Engine_Rect *)=0 |
| | Draw a rectangle.
|
| |
|
virtual void | RenderFillRect (Engine_Rect *)=0 |
| | Draw a rectangle.
|
| |
|
virtual void | RenderDrawLine (int x1, int y1, int x2, int y2)=0 |
| | Draw a rectangle.
|
| |
|
virtual void | RenderDrawPoint (int x1, int y1)=0 |
| | Draw a point.
|
| |
EngineProviderI declares an abstraction for low-level drawing functions. Those are bare-bones only. The main entry point in the app initializes different concrete instances.