43#ifndef GLS_QUAD_STORAGE_H
44#define GLS_QUAD_STORAGE_H
91 void AddQuad2D(
const float x1,
const float y1,
const float x2,
const float y2 );
193 void SetTexCoords(
const float x1,
const float y1,
const float x2,
const float y2 );
224 void AddQuad2D(
const float x1,
const float y1,
const float x2,
const float y2 );
283 void AddQuad2D(
const float x1,
const float y1,
const float x2,
const float y2,
Definition: dynamic_array.h:79
Definition: gls_color.h:54
Definition: gls_quad_storage.h:242
IFontImage * _texture
Definition: gls_quad_storage.h:298
unsigned int _vboBufferSize
Definition: gls_quad_storage.h:302
unsigned int _numQuads
Definition: gls_quad_storage.h:294
DynamicArray< GLushort, true > _indices
Definition: gls_quad_storage.h:296
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:301
void Draw(IGlsStateManager *stateManager, const bool enableColor, const bool enableTexture)
DynamicArray< V2f_T2f_C4ub, true > _vertData
Definition: gls_quad_storage.h:295
unsigned int _vboHandle
Definition: gls_quad_storage.h:300
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:160
static const GLuint TEX_SIZE
Size of a texture coordinate in bytes.
Definition: gls_quad_storage.h:163
DynamicArray< TextureGroup *, false > _textureGroups
The list of all textured quad groups.
Definition: gls_quad_storage.h:309
static const void *const TEX_COORD_OFFSET
Definition: gls_quad_storage.h:172
void SetColor(const glsColor &color)
static const void *const COLOR_OFFSET
Definition: gls_quad_storage.h:176
unsigned int _numQuads
Definition: gls_quad_storage.h:313
static const void *const VERT_OFFSET
Definition: gls_quad_storage.h:168
unsigned int _numTextureGroups
The number of textured quad groups in the list.
Definition: gls_quad_storage.h:310
static const GLuint COLOR_SIZE
Size of a color in bytes.
Definition: gls_quad_storage.h:164
static const GLuint VERT_SIZE
Size of a vertex in bytes.
Definition: gls_quad_storage.h:162
glsColor _currentColor
Definition: gls_quad_storage.h:319
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:311
unsigned int NumQuads()
Definition: gls_quad_storage.h:234
V2f _currentTex[4]
Definition: gls_quad_storage.h:315
Definition: gls_quad_storage.h:64
void SetColor(const glsColor &color)
DynamicArray< V3f_C4ub, true > _vertData
Definition: gls_quad_storage.h:136
static const void *const COLOR_OFFSET
Definition: gls_quad_storage.h:75
unsigned int _vboBufferSize
Definition: gls_quad_storage.h:141
void Draw(IGlsStateManager *stateManager, const bool enableColor)
unsigned int _numQuads
Definition: gls_quad_storage.h:135
static const void *const VERT_OFFSET
Definition: gls_quad_storage.h:71
DynamicArray< GLushort, true > _indices
Definition: gls_quad_storage.h:137
void AddQuad3D(const Vector v[])
static const GLuint COLOR_SIZE
Size of a color in bytes.
Definition: gls_quad_storage.h:67
static const GLuint VERT_SIZE
Size of a vertex in bytes.
Definition: gls_quad_storage.h:66
unsigned int _indexBufferHandle
Definition: gls_quad_storage.h:140
glsColor _currentColor
Definition: gls_quad_storage.h:144
void DrawOutlines(IGlsStateManager *stateManager, const bool enableColor)
unsigned int _vboHandle
Definition: gls_quad_storage.h:139
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:129
Definition: IFontImage.h:54
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.
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 ...
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47
GlsColor glsColor
Alias for backwards compatibility.
Definition: gls_color.h:286
VertexNoColor Vector
Definition: gls_font_base.h:69
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.