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

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...

Inheritance diagram for TextureContext:
BufferContext AdaptiveLruPage SavedContext AdaptiveLruPageDynamicList AdaptiveLruPageStaticList TypedObject

List of all members.

Public Member Functions

Texture getTexture ()
 Returns the pointer to the associated Texture object.
int getView ()
 Returns the specific view of a multiview texture this context represents.
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.

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 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.


Member Function Documentation

static TypeHandle getClassType ( ) [static]

Reimplemented from BufferContext.

Returns the pointer to the associated Texture object.

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.

Returns true if the texture properties (unrelated to the image) have been modified since the last time mark_loaded() was called.

Returns true if the texture's "simple" image has been modified since the last time mark_simple_loaded() was called.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties