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

Texture Class Reference

#include <Texture.h>

Inheritance diagram for Texture:
Inheritance graph
Collaboration diagram for Texture:
Collaboration graph

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

Private Member Functions

 Texture (const Texture &)
Textureoperator= (const Texture &)

Detailed Description

Definition at line 62 of file Texture.h.

Member Typedef Documentation

typedef int Texture::TextureFlags

Definition at line 79 of file Texture.h.

Member Enumeration Documentation

anonymous enum

Definition at line 71 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.

Texture::Texture ( const Texture  )  [private]

Member Function Documentation

void Texture::bind (  )  const

Definition at line 82 of file Texture.cpp.

bool Texture::fail (  )  const [inline]

Definition at line 84 of file Texture.h.

bool Texture::stdCoordSystem (  )  const [inline]

Definition at line 85 of file Texture.h.

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

Definition at line 88 of file Texture.h.

GLuint Texture::handle (  )  const [inline]

Definition at line 89 of file Texture.h.

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

Implemented in Texture2D.

Texture& Texture::operator= ( const Texture  )  [private]
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 109 of file Texture.h.

GLuint Texture::_handle [protected]

Definition at line 110 of file Texture.h.

Definition at line 112 of file Texture.h.

Definition at line 113 of file Texture.h.

bool Texture::_fail [protected]

Definition at line 114 of file Texture.h.

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