Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions
IndexBufferContext Class Reference

This is a special class object that holds all the information returned by a particular GSG to indicate the vertex data array's internal context identifier. More...

Inheritance diagram for IndexBufferContext:
BufferContext AdaptiveLruPage SavedContext AdaptiveLruPageDynamicList AdaptiveLruPageStaticList TypedObject

List of all members.

Public Member Functions

bool changedSize (GeomPrimitivePipelineReader const reader)
 Returns true if the data has changed size since the last time mark_loaded() was called.
bool changedUsageHint (GeomPrimitivePipelineReader const reader)
 Returns true if the data has changed its usage hint since the last time mark_loaded() was called.
GeomPrimitive getData ()
 Returns the pointer to the client-side array data object.
bool wasModified (GeomPrimitivePipelineReader const reader)
 Returns true if the data has been modified since the last time mark_loaded() was called.

Static Public Member Functions

static TypeHandle getClassType ()

Detailed Description

This is a special class object that holds all the information returned by a particular GSG to indicate the vertex data array's internal context identifier.

This allows the GSG to cache the vertex data array in whatever way makes sense. For instance, DirectX can allocate a vertex buffer for the array. OpenGL can create a buffer object.


Member Function Documentation

bool changedSize ( GeomPrimitivePipelineReader const  reader)

Returns true if the data has changed size since the last time mark_loaded() was called.

bool changedUsageHint ( GeomPrimitivePipelineReader const  reader)

Returns true if the data has changed its usage hint since the last time mark_loaded() was called.

static TypeHandle getClassType ( ) [static]

Reimplemented from BufferContext.

Returns the pointer to the client-side array data object.

bool wasModified ( GeomPrimitivePipelineReader const  reader)

Returns true if the data has been modified since the last time mark_loaded() was called.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties