TextureContext¶
from acron.core import TextureContext
- class TextureContext¶
Bases:
Bases:
BufferContext,AdaptiveLruPageThis 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.Inheritance diagram
digraph inheritance4ef789de59 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AdaptiveLruPage" [URL="acron.core.AdaptiveLruPage.html#acron.core.AdaptiveLruPage",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "AdaptiveLruPage" [arrowsize=0.75,style=""]; "BufferContext" [URL="acron.core.BufferContext.html#acron.core.BufferContext",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "SavedContext" -> "BufferContext" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "SavedContext" [URL="acron.core.SavedContext.html#acron.core.SavedContext",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "SavedContext" [arrowsize=0.75,style=""]; "TextureContext" [URL="acron.core.TextureContext.html#acron.core.TextureContext",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "BufferContext" -> "TextureContext" [arrowsize=0.75,style=""]; "AdaptiveLruPage" -> "TextureContext" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; }- static get_class_type()¶
- get_image_modified()¶
Returns a sequence number which is guaranteed to change at least every time the texture image data (including mipmap levels) are modified.
- get_image_modified_pages()¶
Returns a
SparseArrayindicating which pages of the texture have been modified since the last call to mark_loaded().
- get_native_buffer_id()¶
//virtual uint64_t get_native_id() const;
- /**
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.
*/
- get_properties_modified()¶
Returns a sequence number which is guaranteed to change at least every time the texture properties (unrelated to the image) are modified.
- get_texture()¶
Returns the pointer to the associated Texture object.
- get_view()¶
Deprecated: since 1.11.0: always returns 0.
- get_view_modified_pages()¶
Returns a
SparseArrayindicating which pages of the texture have been modified since the last call to mark_loaded().
- was_image_modified()¶
Returns true if the texture image has been modified since the last time mark_loaded() was called.
- was_image_page_modified()¶
Returns true if the given page of the texture image has been modified since the last time mark_loaded() was called.
- was_modified()¶
Returns true if the texture properties or image have been modified since the last time mark_loaded() was called.
- was_properties_modified()¶
Returns true if the texture properties (unrelated to the image) have been modified since the last time mark_loaded() was called.