represents a vertex in 2 dimensions
More...
#include <Vertex.h>
|
| Vertex2D () |
| Initializes an "empty" vertex.
|
|
| Vertex2D (crvec2 p) |
| Initializes a white, textureless vertex with given position.
|
|
| Vertex2D (crvec2 p, crvec4 c) |
| Initializes textureless, colorful vertex.
|
|
| Vertex2D (crvec2 p, crvec4 c, crvec2 u, float t=1.0) |
| Initializes a vertex with everything.
|
|
| Vertex2D (crvec4 c, crvec2 u, float t=1.0) |
| Initializes vertex with everything except position.
|
|
void | setPosition (float x, float y) |
| sets the position of the vertex
|
|
void | setColor (float r, float g, float b, float a) |
| sets the color of the vertex
|
|
void | setColor (crvec3 c) |
|
void | setUV (float u, float v) |
| sets the uv coordinates of the vertex
|
|
|
glm::vec2 | pos |
| the vertex's position, color, and uv coordinates, respectively
|
|
glm::vec4 | color |
|
glm::vec2 | uv |
|
float | hasTexture |
|
represents a vertex in 2 dimensions
Definition at line 26 of file Vertex.h.
◆ attribs
Initial value:= {
{3, 1, GL_FLOAT, GL_FALSE,
sizeof(
Vertex2D), (
void*)offsetof(
Vertex2D, hasTexture)}
}
Definition at line 71 of file Vertex.h.
The documentation for this struct was generated from the following files: