Texture Class Reference
[Framework Module]

#include <texture.h>

Inheritance diagram for Texture:

Resource Root Object TreeNode< Root > Referenced Counted Serialized List< Root > ListNode< Root > OpenGLTexture

List of all members.

Public Member Functions

 Texture (const char *id)
virtual ~Texture ()
void SetOverlayFile (const string &path)
void SetOverlayColor (const vector3 &color)
ushort_t GetOriginalWidth ()
ushort_t GetOriginalHeight ()
ushort_t GetWidth ()
ushort_t GetHeight ()
void AllowMipMap (bool allow)
bool IsMipMap () const
virtual void Apply ()
virtual void ReplaceData (byte_t *data)

Protected Attributes

string overlay_file_name
vector3 overlay_color
ushort_t original_width
ushort_t original_height
ushort_t width
ushort_t height
bool mipmap
bool allow_mipmap

Constructor & Destructor Documentation

Texture::Texture ( const char *  id  ) 


Texture::~Texture (  )  [virtual]


Member Function Documentation

void Texture::SetOverlayFile ( const string &  path  )  [inline]

void Texture::SetOverlayColor ( const vector3 color  )  [inline]

ushort_t Texture::GetOriginalWidth (  )  [inline]

ushort_t Texture::GetOriginalHeight (  )  [inline]

ushort_t Texture::GetWidth (  )  [inline]

ushort_t Texture::GetHeight (  )  [inline]

void Texture::AllowMipMap ( bool  allow  )  [inline]

bool Texture::IsMipMap (  )  const [inline]

void Texture::Apply (  )  [virtual]

Activates texture for drawing.

Reimplemented in OpenGLTexture.

void Texture::ReplaceData ( byte_t data  )  [virtual]

Replaces image data.

Reimplemented in OpenGLTexture.

Member Data Documentation

string Texture::overlay_file_name [protected]

vector3 Texture::overlay_color [protected]

ushort_t Texture::original_width [protected]

ushort_t Texture::original_height [protected]

ushort_t Texture::width [protected]

ushort_t Texture::height [protected]

bool Texture::mipmap [protected]

bool Texture::allow_mipmap [protected]

The documentation for this class was generated from the following files:
Generated on Sat Oct 20 14:47:36 2007 for Dark Oberon by  doxygen 1.5.3