41 #ifndef GLS_TRIANGLE_STORAGE_H
42 #define GLS_TRIANGLE_STORAGE_H
61 static const GLuint TEX_SIZE =
sizeof(
V2f );
67 static const void*
const TEX_COORD_OFFSET;
102 void SetTexCoords(
const float x1,
const float y1,
const float x2,
const float y2,
const float x3,
const float y3 );
114 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:132
Definition: gls_primitive_storage_types.h:50
bool _stripified
Definition: gls_triangle_storage.h:152
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)
void Bake(IGlsStateManager *stateManager)
Definition: dynamic_array.h:66
The disti::DynamicArray class. A templated array of objects capable of dynamically growing...
unsigned int _vboHandle
Definition: gls_triangle_storage.h:149
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:150
void SetTexture(Image *image)
Definition: gls_state_manager_interface.h:67
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:141
unsigned int _stripSize
Definition: gls_triangle_storage.h:139
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)
static const void *const VERT_OFFSET
Definition: gls_triangle_storage.h:66
V2f _currentTex[3]
Definition: gls_triangle_storage.h:142
Image * _texture
Definition: gls_triangle_storage.h:147
unsigned int _numTriangles
Definition: gls_triangle_storage.h:138
Definition: non_copyable.h:45
Definition: bmpimage.h:46