46 const char* vendor = (
const char*) glGetString( GL_VENDOR );
50 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
Actual storage memory.
unsigned int m_currentSize
Store the initial size, so it can be resized to this on Clear()
unsigned int m_freeSpace
Current container size, expressed in vertices.
VERTEX_CONTAINER(unsigned int aSize=DEFAULT_SIZE)
bool m_dirty
Default initial size of a container (expressed in vertices)
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.