#include <renderer2d.h>
|
| Renderer2D (cqsp::asset::ShaderProgram_t tex, cqsp::asset::ShaderProgram_t color) |
|
| Renderer2D (cqsp::asset::ShaderProgram_t tex) |
| Only enable the texture shader More...
|
|
| Renderer2D (cqsp::asset::ShaderProgram_t color, bool) |
| Only enable the color shader More...
|
|
void | DrawTexturedSprite (cqsp::engine::Mesh *mesh, cqsp::asset::Texture &texture, glm::vec2 position, glm::vec2 size, float rotate) |
|
void | DrawColoredSprite (cqsp::engine::Mesh *mesh, glm::vec3 color, glm::vec2 position, glm::vec2 size, float rotate) |
|
void | SetProjection (const glm::mat4 &projection) |
|
bool | TextureEnabled () |
|
bool | ColorEnabled () |
|
◆ Renderer2D() [1/3]
◆ Renderer2D() [2/3]
Only enable the texture shader
- Parameters
-
◆ Renderer2D() [3/3]
Only enable the color shader
- Parameters
-
◆ ColorEnabled()
bool cqsp::engine::Renderer2D::ColorEnabled |
( |
| ) |
|
◆ DrawColoredSprite()
void cqsp::engine::Renderer2D::DrawColoredSprite |
( |
cqsp::engine::Mesh * |
mesh, |
|
|
glm::vec3 |
color, |
|
|
glm::vec2 |
position, |
|
|
glm::vec2 |
size, |
|
|
float |
rotate |
|
) |
| |
◆ DrawTexturedSprite()
◆ SetProjection()
void cqsp::engine::Renderer2D::SetProjection |
( |
const glm::mat4 & |
projection | ) |
|
◆ TextureEnabled()
bool cqsp::engine::Renderer2D::TextureEnabled |
( |
| ) |
|
◆ color_shader
◆ texture_shader
The documentation for this class was generated from the following files: