Panda3D
|
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...
Public Member Functions | |
bool | changedSize (GeomVertexArrayDataHandle const reader) |
Returns true if the data has changed size since the last time mark_loaded() was called. | |
bool | changedUsageHint (GeomVertexArrayDataHandle const reader) |
Returns true if the data has changed its usage hint since the last time mark_loaded() was called. | |
dequeueLru () | |
Removes the page from its AdaptiveLru. | |
enqueueLru (AdaptiveLru lru) | |
Adds the page to the LRU for the first time, or marks it recently-accessed if it has already been added. | |
evictLru () | |
Evicts the page from the LRU. | |
bool | getActive () |
Returns the active flag associated with this object. | |
GeomVertexArrayData | getData () |
Returns the pointer to the client-side array data object. | |
unsigned int | getDataSizeBytes () |
Returns the number of bytes previously reported for the data object. | |
AdaptiveLru | getLru () |
Returns the LRU that manages this page, or NULL if it is not currently managed by any LRU. | |
unsigned int | getLruSize () |
Returns the size of this page as reported to the LRU, presumably in bytes. | |
UpdateSeq | getModified () |
Returns the UpdateSeq that was recorded the last time mark_loaded() was called. | |
unsigned int | getNumFrames () |
Returns the number of frames since the page was first added to its LRU. | |
unsigned int | getNumInactiveFrames () |
Returns the number of frames since the page was last accessed on its LRU. | |
bool | getResident () |
Returns the resident flag associated with this object. | |
TypeHandle | getType () |
int | getTypeIndex () |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
bool | isExactType (TypeHandle handle) |
Returns true if the current object is the indicated type exactly. | |
bool | isOfType (TypeHandle handle) |
Returns true if the current object is or derives from the indicated type. | |
markUsedLru () | |
To be called when the page is used; this will move it to the tail of the AdaptiveLru queue it is already on. | |
markUsedLru (AdaptiveLru lru) | |
To be called when the page is used; this will move it to the tail of the specified AdaptiveLru queue. | |
output (ostream out) | |
setLruSize (unsigned int lru_size) | |
Specifies the size of this page, presumably in bytes, although any unit is possible. | |
bool | wasModified (GeomVertexArrayDataHandle const reader) |
Returns true if the data has been modified since the last time mark_loaded() was called. | |
write (ostream out, int indent_level) | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
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.
bool changedSize | ( | GeomVertexArrayDataHandle const | reader | ) |
Returns true if the data has changed size since the last time mark_loaded() was called.
bool changedUsageHint | ( | GeomVertexArrayDataHandle const | reader | ) |
Returns true if the data has changed its usage hint since the last time mark_loaded() was called.
dequeueLru | ( | ) | [inherited] |
Removes the page from its AdaptiveLru.
enqueueLru | ( | AdaptiveLru | lru | ) | [inherited] |
Adds the page to the LRU for the first time, or marks it recently-accessed if it has already been added.
If lru is NULL, it means to remove this page from its LRU.
evictLru | ( | ) | [inherited] |
Evicts the page from the LRU.
Called internally when the LRU determines that it is full. May also be called externally when necessary to explicitly evict the page.
It is legal for this method to either evict the page as requested, do nothing (in which case the eviction will be requested again at the next epoch), or requeue itself on the tail of the queue (in which case the eviction will be requested again much later).
bool getActive | ( | ) | [inherited] |
Returns the active flag associated with this object.
An object is considered "active" if it was rendered in the current frame.
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from BufferContext.
GeomVertexArrayData getData | ( | ) |
Returns the pointer to the client-side array data object.
unsigned int getDataSizeBytes | ( | ) | [inherited] |
Returns the number of bytes previously reported for the data object.
This is used to track changes in the data object's allocated size; if it changes from this, we need to create a new buffer. This is also used to track memory utilization in PStats.
AdaptiveLru getLru | ( | ) | [inherited] |
Returns the LRU that manages this page, or NULL if it is not currently managed by any LRU.
unsigned int getLruSize | ( | ) | [inherited] |
Returns the size of this page as reported to the LRU, presumably in bytes.
UpdateSeq getModified | ( | ) | [inherited] |
Returns the UpdateSeq that was recorded the last time mark_loaded() was called.
unsigned int getNumFrames | ( | ) | [inherited] |
Returns the number of frames since the page was first added to its LRU.
Returns 0 if it does not have an LRU.
unsigned int getNumInactiveFrames | ( | ) | [inherited] |
Returns the number of frames since the page was last accessed on its LRU.
Returns 0 if it does not have an LRU.
bool getResident | ( | ) | [inherited] |
Returns the resident flag associated with this object.
An object is considered "resident" if it appears to be resident in texture memory.
TypeHandle getType | ( | ) | [inherited] |
Reimplemented in AnimChannelBase.
int getTypeIndex | ( | ) | [inherited] |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
This is equivalent to get_type().get_index().
bool isExactType | ( | TypeHandle | handle | ) | [inherited] |
Returns true if the current object is the indicated type exactly.
bool isOfType | ( | TypeHandle | handle | ) | [inherited] |
Returns true if the current object is or derives from the indicated type.
markUsedLru | ( | ) | [inherited] |
To be called when the page is used; this will move it to the tail of the AdaptiveLru queue it is already on.
This method is const because it's not technically modifying the contents of the page itself.
markUsedLru | ( | AdaptiveLru | lru | ) | [inherited] |
To be called when the page is used; this will move it to the tail of the specified AdaptiveLru queue.
output | ( | ostream | out | ) | [inherited] |
setLruSize | ( | unsigned int | lru_size | ) | [inherited] |
Specifies the size of this page, presumably in bytes, although any unit is possible.
bool wasModified | ( | GeomVertexArrayDataHandle const | reader | ) |
Returns true if the data has been modified since the last time mark_loaded() was called.