VertBuffer Class Reference

#include <tilebuf.h>

Inheritance diagram for VertBuffer:

Inheritance graph
[legend]
Collaboration diagram for VertBuffer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 VertBuffer (bool texture, bool colour, const GenericTexture *tex=NULL, drawing_modes prim=GLW_RECTANGLE)
 ~VertBuffer ()
void draw () const
const GLState & state () const
const GenericTexturecurrent_texture () const
unsigned int size () const
void add_primitive (const GLWPrim &rect)
void clear ()
void set_tex (const GenericTexture *tex)

Protected Attributes

const GenericTexturem_tex
GLShapeBuffer * m_vert_buf
GLState m_state
drawing_modes m_prim
bool m_colour_verts
bool m_texture_verts


Constructor & Destructor Documentation

VertBuffer::VertBuffer ( bool  texture,
bool  colour,
const GenericTexture tex = NULL,
drawing_modes  prim = GLW_RECTANGLE 
)

VertBuffer::~VertBuffer (  ) 


Member Function Documentation

void VertBuffer::draw (  )  const

const GLState& VertBuffer::state (  )  const [inline]

const GenericTexture* VertBuffer::current_texture (  )  const [inline]

unsigned int VertBuffer::size (  )  const

void VertBuffer::add_primitive ( const GLWPrim &  rect  ) 

void VertBuffer::clear (  ) 

void VertBuffer::set_tex ( const GenericTexture tex  ) 


Member Data Documentation

const GenericTexture* VertBuffer::m_tex [protected]

GLShapeBuffer* VertBuffer::m_vert_buf [protected]

GLState VertBuffer::m_state [protected]

drawing_modes VertBuffer::m_prim [protected]

bool VertBuffer::m_colour_verts [protected]

bool VertBuffer::m_texture_verts [protected]


The documentation for this class was generated from the following file:

Generated on Thu Jan 13 13:43:02 2011 by  doxygen 1.5.6