43 #ifndef GLS_QUAD_STORAGE_H
44 #define GLS_QUAD_STORAGE_H
68 static const GLuint COLOR_SIZE =
sizeof(
glsColor );
72 static const GLuint COLOR_OFFSET =
VERT_SIZE;
88 void AddQuad2D(
const float x1,
const float y1,
const float x2,
const float y2 );
144 void AllocateNextQuad();
161 static const GLuint TEX_SIZE =
sizeof(
V2f );
162 static const GLuint COLOR_SIZE =
sizeof(
glsColor );
166 static const GLuint TEX_COORD_OFFSET =
VERT_SIZE;
167 static const GLuint COLOR_OFFSET = VERT_SIZE + TEX_SIZE;
184 void SetTexCoords(
const float x1,
const float y1,
const float x2,
const float y2 );
215 void AddQuad2D(
const float x1,
const float y1,
const float x2,
const float y2 );
273 void AddQuad2D(
const float x1,
const float y1,
const float x2,
const float y2,
296 void AllocateNextQuad();
GlsColor glsColor
Alias for backwards compatibility.
Definition: gls_color.h:272
virtual ~GlsQuadListVCT_2D()
void Bake(IGlsStateManager *stateManager)
void AddQuad3D(const Vector v[])
Definition: gls_primitive_storage_types.h:50
The disti::V2f, disti::V2f_C4ub, disti::V3f_C4ub, disti::V2f_T2f_C4ub, and the disti::V2f_T2f structs...
Definition: IFontImage.h:53
Definition: gls_quad_storage.h:231
void DrawOutlines(IGlsStateManager *stateManager, const bool enableColor)
Definition: dynamic_array.h:62
void SetTexture(IFontImage *image)
The disti::DynamicArray class. A templated array of objects capable of dynamically growing...
DynamicArray< GLushort, true > _indices
Definition: gls_quad_storage.h:286
unsigned int _numQuads
Definition: gls_quad_storage.h:303
DynamicArray< GLushort, true > _indices
Definition: gls_quad_storage.h:134
IFontImage * _texture
Definition: gls_quad_storage.h:288
void Draw(IGlsStateManager *stateManager, const bool enableColor)
A base class for objects that are not copyable via the standard C++ copy constructor.
DynamicArray< V3f_C4ub, true > _vertData
Definition: gls_quad_storage.h:133
unsigned int _vboBufferSize
Definition: gls_quad_storage.h:292
void SetColor(const glsColor &color)
DynamicArray< V2f_T2f_C4ub, true > _vertData
Definition: gls_quad_storage.h:285
DynamicArray< TextureGroup *, false > _textureGroups
Definition: gls_quad_storage.h:299
V2f _currentTex[4]
Definition: gls_quad_storage.h:305
Definition: gls_state_manager_interface.h:67
Definition: gls_quad_storage.h:156
void SetupVBO(IGlsStateManager *stateManager, const bool enableColor)
The disti::GlsStateManager factory class. Creates an instance of a state manager that manages the GL ...
The Color class: Implements a 4 component RGBA color.
unsigned int NumQuads()
Definition: gls_quad_storage.h:225
IFontImage * GetTexture()
void AddQuad2D(const float x1, const float y1, const float x2, const float y2, const V2f tex[], const glsColor &color)
A file for all GL Studio files to include.
unsigned int _vboBufferSize
Definition: gls_quad_storage.h:138
unsigned int _numTextureGroups
Definition: gls_quad_storage.h:300
static const GLuint VERT_SIZE
Definition: gls_quad_storage.h:160
glsColor _currentColor
Definition: gls_quad_storage.h:141
VertexNoColor Vector
Definition: gls_font_base.h:66
void Draw(IGlsStateManager *stateManager, const bool enableColor, const bool enableTexture)
The disti::Vertex class. A class for manipulating 3D vertices.
unsigned int NumQuads()
Definition: gls_quad_storage.h:126
unsigned int _indexBufferHandle
Definition: gls_quad_storage.h:137
Definition: gls_color.h:53
static const GLuint VERT_OFFSET
Definition: gls_quad_storage.h:71
void SetTexture(IFontImage *texture)
static const GLuint VERT_SIZE
Definition: gls_quad_storage.h:67
virtual ~GlsQuadListVC_3D()
static const GLuint VERT_OFFSET
Definition: gls_quad_storage.h:165
void SetTexCoords(const float x1, const float y1, const float x2, const float y2)
unsigned int _numQuads
Definition: gls_quad_storage.h:132
void AddQuad2D(const float x1, const float y1, const float x2, const float y2)
unsigned int _numQuads
Definition: gls_quad_storage.h:284
void SetColor(const glsColor &color)
Definition: non_copyable.h:45
unsigned int _vboHandle
Definition: gls_quad_storage.h:290
glsColor _currentColor
Definition: gls_quad_storage.h:309
void Draw(IGlsStateManager *stateManager, const bool enableColor, const bool enableTexture)
Definition: gls_quad_storage.h:63
Definition: bmpimage.h:46
void AddQuad2D(const float x1, const float y1, const float x2, const float y2)
unsigned int _vboHandle
Definition: gls_quad_storage.h:136
void Bake(IGlsStateManager *stateManager)
unsigned int _indexBufferHandle
Definition: gls_quad_storage.h:291
void Bake(IGlsStateManager *stateManager)