41 #ifndef GLS_TRIANGLE_STORAGE_H
42 #define GLS_TRIANGLE_STORAGE_H
61 static const GLuint TEX_SIZE =
sizeof(
V2f );
65 static const GLuint TEX_COORD_OFFSET =
VERT_SIZE;
100 void SetTexCoords(
const float x1,
const float y1,
const float x2,
const float y2,
const float x3,
const float y3 );
112 void AddTriangle2D(
const float x1,
const float y1,
const float x2,
const float y2,
const float x3,
const float y3 );
Definition: gls_triangle_storage.h:56
unsigned int GetNumTriangles()
Definition: gls_triangle_storage.h:130
Definition: gls_primitive_storage_types.h:50
bool _stripified
Definition: gls_triangle_storage.h:150
The disti::V2f, disti::V2f_C4ub, disti::V3f_C4ub, disti::V2f_T2f_C4ub, and the disti::V2f_T2f structs...
void Draw(IGlsStateManager *stateManager, const bool enableTexture)
static const GLuint VERT_OFFSET
Definition: gls_triangle_storage.h:64
void Bake(IGlsStateManager *stateManager)
Definition: dynamic_array.h:62
The disti::DynamicArray class. A templated array of objects capable of dynamically growing...
unsigned int _vboHandle
Definition: gls_triangle_storage.h:147
A base class for objects that are not copyable via the standard C++ copy constructor.
void AddTriangle2D(const float x1, const float y1, const float x2, const float y2, const float x3, const float y3)
void StartBuildingStrip()
unsigned int _vboBufferSize
Definition: gls_triangle_storage.h:148
void SetTexture(Image *image)
Definition: gls_state_manager_interface.h:66
The disti::GlsStateManager factory class. Creates an instance of a state manager that manages the GL ...
virtual ~GlsTriangleStrip2D()
void AllocateNextTriangle()
A file for all GL Studio files to include.
static const GLuint VERT_SIZE
Definition: gls_triangle_storage.h:60
DynamicArray< V2f_T2f, true > _vertData
Definition: gls_triangle_storage.h:139
unsigned int _stripSize
Definition: gls_triangle_storage.h:137
The disti::Vertex class. A class for manipulating 3D vertices.
void SetTexCoords(const float x1, const float y1, const float x2, const float y2, const float x3, const float y3)
V2f _currentTex[3]
Definition: gls_triangle_storage.h:140
Image * _texture
Definition: gls_triangle_storage.h:145
unsigned int _numTriangles
Definition: gls_triangle_storage.h:136
Definition: non_copyable.h:45
Definition: bmpimage.h:46