Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TextureContext Class Reference

#include <textureContext.h>

Inheritance diagram for TextureContext:

SavedContext TypedObject CRTextureContext DXTextureContext7 DXTextureContext8 GLTextureContext List of all members.

Public Member Functions

INLINE TextureContext (Texture *tex)
virtual size_t estimate_texture_memory ()
INLINE void mark_dirty (int flags_to_set)
INLINE void clear_dirty_flags (int flags_to_clear=~0)
INLINE int get_dirty_flags () const
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Public Attributes

Texture_texture

Private Attributes

int _dirty_flags

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

INLINE TextureContext::TextureContext Texture tex  ) 
 


Member Function Documentation

INLINE void TextureContext::clear_dirty_flags int  flags_to_clear = ~0  ) 
 

Referenced by DXGraphicsStateGuardian8::apply_texture(), and DXGraphicsStateGuardian7::prepare_texture().

size_t TextureContext::estimate_texture_memory  )  [virtual]
 

Definition at line 36 of file textureContext.cxx.

References _texture, Texture::FT_linear_mipmap_linear, Texture::FT_linear_mipmap_nearest, Texture::FT_nearest_mipmap_linear, Texture::FT_nearest_mipmap_nearest, Texture::get_minfilter(), PixelBuffer::get_xsize(), PixelBuffer::get_ysize(), pb, and pixels.

virtual TypeHandle TextureContext::force_init_type void   )  [inline, virtual]
 

Reimplemented from SavedContext.

Reimplemented in CRTextureContext, DXTextureContext7, DXTextureContext8, and GLTextureContext.

Definition at line 71 of file textureContext.h.

References SavedContext::get_class_type(), and SavedContext::init_type().

TypeHandle TextureContext::get_class_type void   )  [inline, static]
 

Reimplemented from SavedContext.

Reimplemented in CRTextureContext, DXTextureContext7, DXTextureContext8, and GLTextureContext.

Definition at line 60 of file textureContext.h.

Referenced by GLTextureContext::force_init_type(), DXTextureContext8::force_init_type(), DXTextureContext7::force_init_type(), CRTextureContext::force_init_type(), GLTextureContext::get_type(), DXTextureContext8::get_type(), DXTextureContext7::get_type(), CRTextureContext::get_type(), GLTextureContext::init_type(), DXTextureContext8::init_type(), DXTextureContext7::init_type(), and CRTextureContext::init_type().

INLINE int TextureContext::get_dirty_flags  )  const
 

Referenced by DXGraphicsStateGuardian8::apply_texture(), and DXGraphicsStateGuardian7::prepare_texture().

virtual TypeHandle TextureContext::get_type void   )  const [inline, virtual]
 

Reimplemented from SavedContext.

Reimplemented in CRTextureContext, DXTextureContext7, DXTextureContext8, and GLTextureContext.

Definition at line 68 of file textureContext.h.

References SavedContext::get_class_type().

void TextureContext::init_type void   )  [inline, static]
 

Reimplemented from SavedContext.

Reimplemented in CRTextureContext, DXTextureContext7, DXTextureContext8, and GLTextureContext.

Definition at line 63 of file textureContext.h.

References SavedContext::get_class_type(), SavedContext::init_type(), and register_type().

Referenced by GLTextureContext::force_init_type(), DXTextureContext8::force_init_type(), DXTextureContext7::force_init_type(), CRTextureContext::force_init_type(), init_libdisplay(), GLTextureContext::init_type(), DXTextureContext8::init_type(), DXTextureContext7::init_type(), and CRTextureContext::init_type().

INLINE void TextureContext::mark_dirty int  flags_to_set  ) 
 


Member Data Documentation

int TextureContext::_dirty_flags [private]
 

Definition at line 56 of file textureContext.h.

Texture* TextureContext::_texture
 

Definition at line 49 of file textureContext.h.

Referenced by DXGraphicsStateGuardian8::apply_texture(), DXTextureContext8::CreateTexture(), estimate_texture_memory(), DXTextureContext8::FillDDSurfTexturePixels(), DXTextureContext7::FillDDSurfTexturePixels(), and DXGraphicsStateGuardian7::prepare_texture().

TypeHandle TextureContext::_type_handle [static, private]
 

Reimplemented from SavedContext.

Reimplemented in CRTextureContext, DXTextureContext7, DXTextureContext8, and GLTextureContext.

Definition at line 24 of file textureContext.cxx.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:13:42 2003 for Panda by doxygen1.3