43 #ifndef GLS_QUAD_STORAGE_H
44 #define GLS_QUAD_STORAGE_H
68 static const GLuint COLOR_SIZE =
sizeof(
glsColor );
74 static const void*
const COLOR_OFFSET;
90 void AddQuad2D(
const float x1,
const float y1,
const float x2,
const float y2 );
146 void AllocateNextQuad();
163 static const GLuint TEX_SIZE =
sizeof(
V2f );
164 static const GLuint COLOR_SIZE =
sizeof(
glsColor );
170 static const void*
const TEX_COORD_OFFSET;
171 static const void*
const COLOR_OFFSET;
188 void SetTexCoords(
const float x1,
const float y1,
const float x2,
const float y2 );
219 void AddQuad2D(
const float x1,
const float y1,
const float x2,
const float y2 );
277 void AddQuad2D(
const float x1,
const float y1,
const float x2,
const float y2,
300 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:235
void DrawOutlines(IGlsStateManager *stateManager, const bool enableColor)
Definition: dynamic_array.h:66
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:290
unsigned int _numQuads
Definition: gls_quad_storage.h:307
DynamicArray< GLushort, true > _indices
Definition: gls_quad_storage.h:136
IFontImage * _texture
Definition: gls_quad_storage.h:292
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:135
unsigned int _vboBufferSize
Definition: gls_quad_storage.h:296
void SetColor(const glsColor &color)
DynamicArray< V2f_T2f_C4ub, true > _vertData
Definition: gls_quad_storage.h:289
DynamicArray< TextureGroup *, false > _textureGroups
Definition: gls_quad_storage.h:303
V2f _currentTex[4]
Definition: gls_quad_storage.h:309
Definition: gls_state_manager_interface.h:67
Definition: gls_quad_storage.h:158
static const void *const VERT_OFFSET
Definition: gls_quad_storage.h:169
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:229
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.
static const void *const VERT_OFFSET
Definition: gls_quad_storage.h:73
unsigned int _vboBufferSize
Definition: gls_quad_storage.h:140
unsigned int _numTextureGroups
Definition: gls_quad_storage.h:304
static const GLuint VERT_SIZE
Definition: gls_quad_storage.h:162
glsColor _currentColor
Definition: gls_quad_storage.h:143
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:128
unsigned int _indexBufferHandle
Definition: gls_quad_storage.h:139
Definition: gls_color.h:53
void SetTexture(IFontImage *texture)
static const GLuint VERT_SIZE
Definition: gls_quad_storage.h:67
virtual ~GlsQuadListVC_3D()
void SetTexCoords(const float x1, const float y1, const float x2, const float y2)
unsigned int _numQuads
Definition: gls_quad_storage.h:134
void AddQuad2D(const float x1, const float y1, const float x2, const float y2)
unsigned int _numQuads
Definition: gls_quad_storage.h:288
void SetColor(const glsColor &color)
Definition: non_copyable.h:45
unsigned int _vboHandle
Definition: gls_quad_storage.h:294
glsColor _currentColor
Definition: gls_quad_storage.h:313
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:138
void Bake(IGlsStateManager *stateManager)
unsigned int _indexBufferHandle
Definition: gls_quad_storage.h:295
void Bake(IGlsStateManager *stateManager)