Panda3D
|
This is a special class object that holds all the information returned by a particular GSG to indicate the texture's internal context identifier. More...
Public Member Functions | |
UpdateSeq | getImageModified () |
Returns a sequence number which is guaranteed to change at least every time the texture image data (including mipmap levels) are modified. More... | |
uint64_t | getNativeBufferId () |
Similar to get_native_id, but some implementations use a separate identifier for the buffer object associated with buffer textures. More... | |
uint64_t | getNativeId () |
Returns an implementation-defined handle or pointer that can be used to interface directly with the underlying API. More... | |
UpdateSeq | getPropertiesModified () |
Returns a sequence number which is guaranteed to change at least every time the texture properties (unrelated to the image) are modified. More... | |
UpdateSeq | getSimpleImageModified () |
Returns a sequence number which is guaranteed to change at least every time the texture's "simple" image data is modified. More... | |
Texture | getTexture () |
Returns the pointer to the associated Texture object. More... | |
int | getView () |
Returns the specific view of a multiview texture this context represents. More... | |
bool | wasImageModified () |
Returns true if the texture image has been modified since the last time mark_loaded() was called. More... | |
bool | wasModified () |
Returns true if the texture properties or image have been modified since the last time mark_loaded() was called. More... | |
bool | wasPropertiesModified () |
Returns true if the texture properties (unrelated to the image) have been modified since the last time mark_loaded() was called. More... | |
bool | wasSimpleImageModified () |
Returns true if the texture's "simple" image has been modified since the last time mark_simple_loaded() was called. More... | |
![]() | |
bool | getActive () |
Returns the active flag associated with this object. More... | |
int | getDataSizeBytes () |
Returns the number of bytes previously reported for the data object. More... | |
UpdateSeq | getModified () |
Returns the UpdateSeq that was recorded the last time mark_loaded() was called. More... | |
bool | getResident () |
Returns the resident flag associated with this object. More... | |
![]() | |
TypeHandle | getType () |
int | getTypeIndex () |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More... | |
bool | isExactType (TypeHandle handle) |
Returns true if the current object is the indicated type exactly. More... | |
bool | isOfType (TypeHandle handle) |
Returns true if the current object is or derives from the indicated type. More... | |
![]() | |
__init__ (const AdaptiveLruPage copy) | |
__init__ (int lru_size) | |
dequeueLru () | |
Removes the page from its AdaptiveLru. More... | |
enqueueLru (AdaptiveLru lru) | |
Adds the page to the LRU for the first time, or marks it recently-accessed if it has already been added. More... | |
evictLru () | |
Evicts the page from the LRU. More... | |
AdaptiveLru | getLru () |
Returns the LRU that manages this page, or NULL if it is not currently managed by any LRU. More... | |
int | getLruSize () |
Returns the size of this page as reported to the LRU, presumably in bytes. More... | |
unsigned int | getNumFrames () |
Returns the number of frames since the page was first added to its LRU. More... | |
unsigned int | getNumInactiveFrames () |
Returns the number of frames since the page was last accessed on its LRU. More... | |
markUsedLru () | |
To be called when the page is used; this will move it to the tail of the AdaptiveLru queue it is already on. More... | |
markUsedLru (AdaptiveLru lru) | |
To be called when the page is used; this will move it to the tail of the specified AdaptiveLru queue. More... | |
AdaptiveLruPage | operator= (const AdaptiveLruPage copy) |
output (Ostream out) | |
setLruSize (int lru_size) | |
Specifies the size of this page, presumably in bytes, although any unit is possible. More... | |
write (Ostream out, int indent_level) | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
Additional Inherited Members | |
![]() | |
bool | active |
Returns the active flag associated with this object. More... | |
int | data_size_bytes |
Returns the number of bytes previously reported for the data object. More... | |
UpdateSeq | modified |
Returns the UpdateSeq that was recorded the last time mark_loaded() was called. More... | |
TypedWritableReferenceCount | object |
Returns the associated object. More... | |
bool | resident |
Returns the resident flag associated with this object. More... | |
![]() | |
TypeHandle | type |
Returns the TypeHandle representing this object's type. More... | |
This is a special class object that holds all the information returned by a particular GSG to indicate the texture's internal context identifier.
Textures typically have an immediate-mode and a retained-mode operation. When using textures in retained-mode (in response to Texture::prepare()), the GSG will create some internal handle for the texture and store it here. The texture stores all of these handles internally.
|
static |
UpdateSeq getImageModified | ( | ) |
Returns a sequence number which is guaranteed to change at least every time the texture image data (including mipmap levels) are modified.
uint64_t getNativeBufferId | ( | ) |
Similar to get_native_id, but some implementations use a separate identifier for the buffer object associated with buffer textures.
Returns 0 if the underlying implementation does not support this, or if this is not a buffer texture.
uint64_t getNativeId | ( | ) |
Returns an implementation-defined handle or pointer that can be used to interface directly with the underlying API.
Returns 0 if the underlying implementation does not support this.
UpdateSeq getPropertiesModified | ( | ) |
Returns a sequence number which is guaranteed to change at least every time the texture properties (unrelated to the image) are modified.
UpdateSeq getSimpleImageModified | ( | ) |
Returns a sequence number which is guaranteed to change at least every time the texture's "simple" image data is modified.
int getView | ( | ) |
Returns the specific view of a multiview texture this context represents.
In the usual case, with a non-multiview texture, this will be 0.
bool wasImageModified | ( | ) |
Returns true if the texture image has been modified since the last time mark_loaded() was called.
bool wasModified | ( | ) |
Returns true if the texture properties or image have been modified since the last time mark_loaded() was called.
bool wasPropertiesModified | ( | ) |
Returns true if the texture properties (unrelated to the image) have been modified since the last time mark_loaded() was called.
bool wasSimpleImageModified | ( | ) |
Returns true if the texture's "simple" image has been modified since the last time mark_simple_loaded() was called.