Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

Texture Class Reference

#include <Texture.h>

Inheritance diagram for Texture:
Inheritance graph
[legend]
Collaboration diagram for Texture:
Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  kDefault = 0,
  kCompress = (1 << 0)
}
typedef int TextureFlags

Public Member Functions

 Texture ()
virtual ~Texture ()
void bind () const
bool fail () const
bool stdCoordSystem () const
const string & name () const
GLuint handle () const
virtual GLenum target () const =0

Protected Member Functions

GLubyte * loadImageFile (const string &filename)
GLint getCompressionFormat (GLint internalFormat)
GLint getInternalFormat (GLint components)

Protected Attributes

string _name
GLuint _handle
TextureFlags _flags
bool _standardCoordSystem
bool _fail

Detailed Description

Definition at line 64 of file Texture.h.


Member Typedef Documentation

typedef int Texture::TextureFlags

Definition at line 81 of file Texture.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
kDefault 
kCompress 

Definition at line 73 of file Texture.h.


Constructor & Destructor Documentation

Texture::Texture (  ) 

Definition at line 49 of file Texture.cpp.

Texture::~Texture (  )  [virtual]

Definition at line 67 of file Texture.cpp.


Member Function Documentation

void Texture::bind (  )  const

Definition at line 82 of file Texture.cpp.

bool Texture::fail (  )  const [inline]

Definition at line 86 of file Texture.h.

bool Texture::stdCoordSystem (  )  const [inline]

Definition at line 87 of file Texture.h.

const string& Texture::name (  )  const [inline]

Definition at line 90 of file Texture.h.

GLuint Texture::handle (  )  const [inline]

Definition at line 91 of file Texture.h.

virtual GLenum Texture::target (  )  const [pure virtual]

Implemented in Texture2D.

GLubyte* Texture::loadImageFile ( const string &  filename  )  [protected]
GLint Texture::getCompressionFormat ( GLint  internalFormat  )  [protected]

Definition at line 96 of file Texture.cpp.

GLint Texture::getInternalFormat ( GLint  components  )  [protected]

Definition at line 133 of file Texture.cpp.


Member Data Documentation

string Texture::_name [protected]

Definition at line 111 of file Texture.h.

GLuint Texture::_handle [protected]

Definition at line 112 of file Texture.h.

Definition at line 114 of file Texture.h.

Definition at line 115 of file Texture.h.

bool Texture::_fail [protected]

Definition at line 116 of file Texture.h.


The documentation for this class was generated from the following files: