#include <gls_quad_storage.h>
      
        
          | void AddQuad2D | ( | const float | x1, | 
        
          |  |  | const float | y1, | 
        
          |  |  | const float | x2, | 
        
          |  |  | const float | y2 | 
        
          |  | ) |  |  | 
      
 
Add a quad defined by a 2D rectangle from x1,y1 to x2,y2 
- Parameters
- 
  
    | x1 | X coord of point 1 |  | y1 | Y coord of point 1 |  | x2 | X coord of point 2 |  | y2 | Y coord of point 2 |  
 
 
 
      
        
          | void AddQuad3D | ( | const Vector | v[] | ) |  | 
      
 
Add a 3D quad defined by 4 3D vertices 
- Parameters
- 
  
    | v | Array of 4 vertices containing the vertices of the 3D quad |  
 
 
 
Bakes the quad list, creating VBOs within the GL context. The VBOs created by Bake are used when the object is later drawn with Draw 
- Parameters
- 
  
    | stateManager | The StateManager object to create the VBOs within |  
 
 
 
Draws this quad list 
- Parameters
- 
  
    | stateManager | OpenGL context to draw list in |  | enableColor | Whether or not to use the per vertex colors when drawing |  
 
 
 
Draws this quad list as a series of line loops 
- Parameters
- 
  
    | stateManager | OpenGL context to draw list in |  | enableColor | Whether or not to use the per vertex colors when drawing |  
 
 
 
  
  | 
        
          | unsigned int NumQuads | ( |  | ) |  |  | inline | 
 
- Returns
- Returns the number of quads in the list 
 
 
Set the current drawing color. When a quad is added, its vertex colors are set to the current color 
- Parameters
- 
  
  
 
 
Bind the quad list's VBOs and prepare for drawing 
- Parameters
- 
  
    | stateManager | OpenGL context to draw list in |  | enableColor | Whether or not to use the per vertex colors when drawing |  
 
 
 
Put the quad list in list building mode. Process for using this quad list:
- Build the list
- Bake the list (creates VBOs)
- Draw the list 
 
 
Last color that was set. Used only while building a list 
 
 
  
  | 
        
          | unsigned int _indexBufferHandle |  | protected | 
 
Index buffer Handle for this quad storage 
 
 
Indices for the quad list 
 
 
Number of quads in the list 
 
 
  
  | 
        
          | unsigned int _vboBufferSize |  | protected | 
 
Size of the VBO buffer. Cached to so that when a quad is cleared and reset we will only reallocate the VBO when its size changes. 
 
 
VBO Handle for this quad storage 
 
 
Vertices for the quad list 
 
 
  
  | 
        
          | const GLuint VERT_OFFSET = 0 |  | static | 
 
Constant offsets to the primitive vertex attributes. 
 
 
  
  | 
        
          | const GLuint VERT_SIZE = sizeof( Vector ) |  | static | 
 
Constant sizes of the primitive vertex attributes 
 
 
The documentation for this class was generated from the following file: