42 const char* vendor = (
const char*) glGetString( GL_VENDOR );
46 if( strstr( vendor,
"X.Org" ) || strstr( vendor,
"nouveau" ) )
Specialization of CACHED_CONTAINER that stores data in video memory via memory mapping.
Specialization of CACHED_CONTAINER that stores data in RAM.
unsigned int m_initialSize
Store the initial size, so it can be resized to this on Clear()
VERTEX * m_vertices
Actual storage memory.
unsigned int m_currentSize
Current container size, expressed in vertices.
unsigned int m_freeSpace
Free space left in the container, expressed in vertices.
VERTEX_CONTAINER(unsigned int aSize=DEFAULT_SIZE)
static VERTEX_CONTAINER * MakeContainer(bool aCached)
Return a pointer to a new container of an appropriate type.
virtual ~VERTEX_CONTAINER()
The Cairo implementation of the graphics abstraction layer.
Class to store instances of VERTEX without caching.
Class to store vertices and handle transfers between system memory and GPU memory.