11 #include "SimpleGL_Export.h" 15 #include <glm/glm.hpp> 64 virtual void flush() = 0;
72 void vertex(
float x,
float y);
81 void vertex(
float x,
float y,
float z);
88 void vertex(glm::vec2 vertex);
95 void vertex(glm::vec3 vertex);
104 void color(
float r,
float g,
float b);
114 void color(
float r,
float g,
float b,
float a);
121 void color(glm::vec3 color);
128 void color(glm::vec4 color);
136 void texCoord(
float s,
float t);
143 void texCoord(glm::vec2 texCoord);
152 void normal(
float nx,
float ny,
float nz);
159 void normal(glm::vec3 normal);
166 void setModel(glm::mat4 model);
173 glm::mat4 getModel();
180 void setView(glm::mat4 view);
194 void setProjection(glm::mat4 projection);
201 glm::mat4 getProjection();
Generic namespace for the SimpleGL framework.
std::vector< glm::vec3 > vertices
The storage for vertices.
bool drawing
Tells if the batch is drawing.
int numVertices
The counter for the number of vertices.
std::vector< glm::vec2 > texCoords
The storage for texture coordinates.
This class defines methods for batch rendering.
Transformation transformation
The transformation for the batch.
std::vector< glm::vec4 > colors
The storage for colors.
std::vector< glm::vec3 > normals
The storage for normals.