41#ifndef GLS_TRIANGLE_STORAGE_H
42#define GLS_TRIANGLE_STORAGE_H
104 void SetTexCoords(
const float x1,
const float y1,
const float x2,
const float y2,
const float x3,
const float y3 );
116 void AddTriangle2D(
const float x1,
const float y1,
const float x2,
const float y2,
const float x3,
const float y3 );
Definition: dynamic_array.h:79
Definition: gls_triangle_storage.h:58
static const GLuint TEX_SIZE
Size of a texture coordinate in bytes.
Definition: gls_triangle_storage.h:61
DynamicArray< V2f_T2f, true > _vertData
Definition: gls_triangle_storage.h:143
static const void *const TEX_COORD_OFFSET
Definition: gls_triangle_storage.h:69
void StartBuildingStrip()
virtual ~GlsTriangleStrip2D()
void SetTexCoords(const float x1, const float y1, const float x2, const float y2, const float x3, const float y3)
unsigned int _vboBufferSize
Definition: gls_triangle_storage.h:152
unsigned int GetNumTriangles()
Definition: gls_triangle_storage.h:134
V2f _currentTex[3]
Definition: gls_triangle_storage.h:144
static const void *const VERT_OFFSET
Definition: gls_triangle_storage.h:65
static const GLuint VERT_SIZE
Size of a vertex in bytes.
Definition: gls_triangle_storage.h:60
unsigned int _numTriangles
Definition: gls_triangle_storage.h:140
void SetTexture(Image *image)
void Draw(IGlsStateManager *stateManager, const bool enableTexture)
void AddTriangle2D(const float x1, const float y1, const float x2, const float y2, const float x3, const float y3)
unsigned int _stripSize
Definition: gls_triangle_storage.h:141
unsigned int _vboHandle
Definition: gls_triangle_storage.h:151
Image * _texture
Definition: gls_triangle_storage.h:149
void AllocateNextTriangle()
void Bake(IGlsStateManager *stateManager)
bool _stripified
Definition: gls_triangle_storage.h:154
Definition: gls_state_manager_interface.h:69
Definition: non_copyable.h:47
The disti::DynamicArray class. A templated array of objects capable of dynamically growing.
A file for all GL Studio files to include.
The disti::V2f, disti::V2f_C4ub, disti::V3f_C4ub, disti::V2f_T2f_C4ub, and the disti::V2f_T2f structs...
The disti::GlsStateManager factory class. Creates an instance of a state manager that manages the GL ...
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47
A base class for objects that are not copyable via the standard C++ copy constructor.
Definition: gls_primitive_storage_types.h:52
The disti::Vertex class. A class for manipulating 3D vertices.