BARE2D
RenderBatch.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <GL/glew.h>
4 
5 /**
6  * @class RenderBatch
7  * @brief The RenderBatch essentially represents a single drawn object - normally 6 vertices (a rectangle), but can be otherwise.
8  */
10 {
11 public:
12  RenderBatch(GLuint Offset, GLuint NumVertices, GLuint TextureID) : offset(Offset), numVertices(NumVertices), textureID(TextureID) {
13 
14  }
15  GLuint offset;
16  GLuint numVertices;
17  GLuint textureID;
18 
19 };
20 
RenderBatch::offset
GLuint offset
Definition: RenderBatch.hpp:15
RenderBatch::textureID
GLuint textureID
Definition: RenderBatch.hpp:17
RenderBatch::RenderBatch
RenderBatch(GLuint Offset, GLuint NumVertices, GLuint TextureID)
Definition: RenderBatch.hpp:12
RenderBatch::numVertices
GLuint numVertices
Definition: RenderBatch.hpp:16
RenderBatch
The RenderBatch essentially represents a single drawn object - normally 6 vertices (a rectangle),...
Definition: RenderBatch.hpp:9