The glyph represents a renderbatch's primitive data, which is created from each draw call in the basic renderer. More...
#include <Vertex.hpp>
Inheritance diagram for BARE2D::Glyph:
Collaboration diagram for BARE2D::Glyph:Public Member Functions | |
| Glyph (glm::vec4 &destRect, glm::vec4 &uvRect, GLuint &Texture, float &Depth, Colour &colour) | |
| Glyph (glm::vec4 &destRect, glm::vec4 &uvRect, GLuint &Texture, float &Depth, Colour &colour, float &angle) | |
| Glyph (glm::vec4 &destRect, glm::vec4 &uvRect, GLuint &Texture, float &Depth, Colour &colour, float &angle, glm::vec2 &COR) | |
Data Fields | |
| GLuint | texture |
| float | depth |
| Vertex | topLeft |
| Vertex | bottomLeft |
| Vertex | topRight |
| Vertex | bottomRight |
Protected Member Functions | |
| glm::vec2 | rotatePoint (const glm::vec2 &pos, float &angle) |
The glyph represents a renderbatch's primitive data, which is created from each draw call in the basic renderer.
Definition at line 87 of file Vertex.hpp.
| BARE2D::Glyph::Glyph | ( | glm::vec4 & | destRect, |
| glm::vec4 & | uvRect, | ||
| GLuint & | Texture, | ||
| float & | Depth, | ||
| Colour & | colour | ||
| ) |
Definition at line 4 of file Vertex.cpp.
References bottomLeft, bottomRight, BARE2D::Vertex::colour, depth, BARE2D::Vertex::setPosition(), BARE2D::Vertex::setUV(), topLeft, and topRight.
Here is the call graph for this function:| BARE2D::Glyph::Glyph | ( | glm::vec4 & | destRect, |
| glm::vec4 & | uvRect, | ||
| GLuint & | Texture, | ||
| float & | Depth, | ||
| Colour & | colour, | ||
| float & | angle | ||
| ) |
Definition at line 22 of file Vertex.cpp.
References bottomLeft, bottomRight, BARE2D::Vertex::colour, depth, rotatePoint(), BARE2D::Vertex::setPosition(), BARE2D::Vertex::setUV(), topLeft, and topRight.
Here is the call graph for this function:| BARE2D::Glyph::Glyph | ( | glm::vec4 & | destRect, |
| glm::vec4 & | uvRect, | ||
| GLuint & | Texture, | ||
| float & | Depth, | ||
| Colour & | colour, | ||
| float & | angle, | ||
| glm::vec2 & | COR | ||
| ) |
Definition at line 54 of file Vertex.cpp.
References bottomLeft, bottomRight, BARE2D::Vertex::colour, depth, rotatePoint(), BARE2D::Vertex::setPosition(), BARE2D::Vertex::setUV(), topLeft, and topRight.
Here is the call graph for this function:
|
protected |
Definition at line 87 of file Vertex.cpp.
Referenced by Glyph().
Here is the caller graph for this function:| Vertex BARE2D::Glyph::bottomLeft |
Definition at line 100 of file Vertex.hpp.
Referenced by BARE2D::FBORenderer::createRenderBatches(), and Glyph().
| Vertex BARE2D::Glyph::bottomRight |
Definition at line 100 of file Vertex.hpp.
Referenced by BARE2D::FBORenderer::createRenderBatches(), and Glyph().
| float BARE2D::Glyph::depth |
Definition at line 97 of file Vertex.hpp.
Referenced by Glyph().
| GLuint BARE2D::Glyph::texture |
Definition at line 94 of file Vertex.hpp.
Referenced by BARE2D::FBORenderer::createRenderBatches().
| Vertex BARE2D::Glyph::topLeft |
Definition at line 100 of file Vertex.hpp.
Referenced by BARE2D::FBORenderer::createRenderBatches(), and Glyph().
| Vertex BARE2D::Glyph::topRight |
Definition at line 100 of file Vertex.hpp.
Referenced by BARE2D::FBORenderer::createRenderBatches(), and Glyph().