39#ifndef GLS_QUAD_STORAGE_H
40#define GLS_QUAD_STORAGE_H
87 DISTI_EXPORT
void AddQuad2D(
const float x1,
const float y1,
const float x2,
const float y2 );
189 DISTI_EXPORT
void SetTexCoords(
const float x1,
const float y1,
const float x2,
const float y2 );
220 DISTI_EXPORT
void AddQuad2D(
const float x1,
const float y1,
const float x2,
const float y2 );
279 void AddQuad2D(
const float x1,
const float y1,
const float x2,
const float y2,
Definition: dynamic_array.h:79
Definition: gls_color.h:53
Definition: gls_quad_storage.h:238
IFontImage * _texture
Definition: gls_quad_storage.h:294
unsigned int _vboBufferSize
Definition: gls_quad_storage.h:298
unsigned int _numQuads
Definition: gls_quad_storage.h:290
DynamicArray< GLushort, true > _indices
Definition: gls_quad_storage.h:292
void AddQuad2D(const float x1, const float y1, const float x2, const float y2, const V2f tex[], const glsColor &color)
unsigned int _indexBufferHandle
Definition: gls_quad_storage.h:297
void Draw(IGlsStateManager *stateManager, const bool enableColor, const bool enableTexture)
DynamicArray< V2f_T2f_C4ub, true > _vertData
Definition: gls_quad_storage.h:291
unsigned int _vboHandle
Definition: gls_quad_storage.h:296
void AllocateNextQuad()
Called by AddQuad methods to internally allocate the next quad.
void SetTexture(IFontImage *texture)
void Bake(IGlsStateManager *stateManager)
IFontImage * GetTexture()
Definition: gls_quad_storage.h:156
static const GLuint TEX_SIZE
Size of a texture coordinate in bytes.
Definition: gls_quad_storage.h:159
DynamicArray< TextureGroup *, false > _textureGroups
The list of all textured quad groups.
Definition: gls_quad_storage.h:305
static const void *const TEX_COORD_OFFSET
Definition: gls_quad_storage.h:168
void SetColor(const glsColor &color)
static const void *const COLOR_OFFSET
Definition: gls_quad_storage.h:172
unsigned int _numQuads
Definition: gls_quad_storage.h:309
static const void *const VERT_OFFSET
Definition: gls_quad_storage.h:164
unsigned int _numTextureGroups
The number of textured quad groups in the list.
Definition: gls_quad_storage.h:306
static const GLuint COLOR_SIZE
Size of a color in bytes.
Definition: gls_quad_storage.h:160
static const GLuint VERT_SIZE
Size of a vertex in bytes.
Definition: gls_quad_storage.h:158
glsColor _currentColor
Definition: gls_quad_storage.h:315
void Draw(IGlsStateManager *stateManager, const bool enableColor, const bool enableTexture)
void SetTexCoords(const float x1, const float y1, const float x2, const float y2)
virtual ~GlsQuadListVCT_2D()
void SetTexture(IFontImage *image)
void Bake(IGlsStateManager *stateManager)
void AddQuad2D(const float x1, const float y1, const float x2, const float y2)
TextureGroup * _currentTextureGroup
Pointer to the current texture group that quads will be added to with the next call to AddQuad.
Definition: gls_quad_storage.h:307
unsigned int NumQuads()
Definition: gls_quad_storage.h:230
V2f _currentTex[4]
Definition: gls_quad_storage.h:311
Definition: gls_quad_storage.h:60
void SetColor(const glsColor &color)
DynamicArray< V3f_C4ub, true > _vertData
Definition: gls_quad_storage.h:132
static const void *const COLOR_OFFSET
Definition: gls_quad_storage.h:71
unsigned int _vboBufferSize
Definition: gls_quad_storage.h:137
void Draw(IGlsStateManager *stateManager, const bool enableColor)
unsigned int _numQuads
Definition: gls_quad_storage.h:131
static const void *const VERT_OFFSET
Definition: gls_quad_storage.h:67
DynamicArray< GLushort, true > _indices
Definition: gls_quad_storage.h:133
void AddQuad3D(const Vector v[])
static const GLuint COLOR_SIZE
Size of a color in bytes.
Definition: gls_quad_storage.h:63
static const GLuint VERT_SIZE
Size of a vertex in bytes.
Definition: gls_quad_storage.h:62
unsigned int _indexBufferHandle
Definition: gls_quad_storage.h:136
glsColor _currentColor
Definition: gls_quad_storage.h:140
void DrawOutlines(IGlsStateManager *stateManager, const bool enableColor)
unsigned int _vboHandle
Definition: gls_quad_storage.h:135
void SetupVBO(IGlsStateManager *stateManager, const bool enableColor)
void AllocateNextQuad()
Called by AddQuad methods to internally allocate the next quad.
virtual ~GlsQuadListVC_3D()
void Bake(IGlsStateManager *stateManager)
void AddQuad2D(const float x1, const float y1, const float x2, const float y2)
unsigned int NumQuads()
Definition: gls_quad_storage.h:125
Definition: IFontImage.h:50
Definition: gls_state_manager_interface.h:65
Definition: non_copyable.h:46
The disti::DynamicArray class. A templated array of objects capable of dynamically growing.
The Color class: Implements a 4 component RGBA color.
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 ...
Definition: bmpimage.h:46
GlsColor glsColor
Alias for backwards compatibility.
Definition: gls_color.h:277
VertexNoColor Vector
Definition: gls_font_base.h:68
A base class for objects that are not copyable via the standard C++ copy constructor.
Definition: gls_primitive_storage_types.h:50
The disti::Vertex class. A class for manipulating 3D vertices.