|
| OpenglRenderer ()=default |
|
OpenglShader * | GetDefaultShader () override |
|
OpenglShader * | GetTextShader () override |
|
void | Initialize () override |
|
void | Flush () override |
|
void | FlushText () override |
|
void | Resize (int view_width, int view_height) override |
|
void | SetContext (const void *ctx) override |
|
void * | GetContext () override |
|
void | Destroy () override |
|
Texture | LoadTexture (const std::string &file_path) override |
| Load a texture on GPU given a file path. More...
|
|
Font | LoadFont (const std::string &file_path, int font_size) override |
| Load a TTF font on GPU given a file path. More...
|
|
void | UnloadFont (const Font &font) override |
| Unload the Font from CPU/GPU (cleanup) More...
|
|
void | UnloadTexture (const Texture &texture) override |
| Unload the Texture from GPU (cleanup) More...
|
|
void | ClearBackground (const Color &color) override |
| Window background color. More...
|
|
void | BeginDrawing (const glm::mat4 &view_projection=0) override |
| Starting of the drawing procedure. More...
|
|
void | EndDrawing () override |
| End of the drawing procedure (swap buffers) More...
|
|
void | DrawText (const Font &font, const std::string &text, const Transform2D &transform, Color color, float font_size, const ShaderEffect &shader_effect={}, float kerning=0.0f) override |
| Draw glyphs given a Loaded Font and text. More...
|
|
void | DrawTexture (const Texture &texture, const Transform2D &transform, glm::vec2 size, const Color &color={255, 255, 255, 255}) override |
| Draw Texture quad at given Rectangle source. More...
|
|
void | DrawTextureEx (const Texture &texture, const ember::Rectangle &source, const ember::Rectangle &dest, glm::vec2 origin, float rotation, float zIndex=0.0f, const Color &color={255, 255, 255, 255}) override |
| Draw Texture quad extended. More...
|
|
void | DrawLine (glm::vec3 start, glm::vec3 end, const Color &color, float thickness) override |
| Draw Lines between two points. More...
|
|
void | DrawRect (const Transform2D &transform, glm::vec2 size, const Color &color, float thickness) override |
| Draw rectangle. More...
|
|
void | DrawRectFilled (const Transform2D &transform, glm::vec2 size, const Color &color, float thickness) override |
| Draw rectangle filled. More...
|
|
void | DrawTriangle (glm::vec3 p0, glm::vec3 p1, glm::vec3 p2, const Color &color) override |
|
void | DrawTriangleFilled (glm::vec3 p0, glm::vec3 p1, glm::vec3 p2, const Color &color) override |
|
void | DrawCircle (glm::vec3 position, float radius, const Color &color, int segments=32) override |
|
void | DrawCircleFilled (glm::vec3 position, float radius, const Color &color, int segments=32) override |
|
void | BeginMode2D (const Camera2D &camera) override |
| Begin 2D mode. More...
|
|
void | EndMode2D () override |
| End 2D mode. More...
|
|
void | BeginCanvas () override |
| Begin Canvas Procedure. More...
|
|
void | EndCanvas () override |
| End Canvas Procedure. More...
|
|
virtual | ~Renderer ()=default |
|
| Renderer ()=default |
|