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

Texture2D Class Reference

#include <Texture.h>

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

List of all members.

Public Types

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

Public Member Functions

 Texture2D (const string &filename, TextureFlags flags=kDefault)
 Texture2D (const Image *img, TextureFlags flags=kDefault)
virtual GLenum target () const
void bind () const
bool fail () const
bool stdCoordSystem () const
const string & name () const
GLuint handle () const

Protected Member Functions

 Texture2D ()
virtual void create (const Image *img, TextureFlags flags)
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 126 of file Texture.h.


Member Typedef Documentation

typedef int Texture::TextureFlags [inherited]

Definition at line 81 of file Texture.h.


Member Enumeration Documentation

anonymous enum [inherited]
Enumerator:
kDefault 
kCompress 

Definition at line 73 of file Texture.h.


Constructor & Destructor Documentation

Texture2D::Texture2D ( const string &  filename,
TextureFlags  flags = kDefault 
)

Definition at line 162 of file Texture.cpp.

Texture2D::Texture2D ( const Image img,
TextureFlags  flags = kDefault 
)

Definition at line 182 of file Texture.cpp.

Texture2D::Texture2D (  )  [protected]

Definition at line 156 of file Texture.cpp.


Member Function Documentation

void Texture2D::create ( const Image img,
TextureFlags  flags 
) [protected, virtual]

Definition at line 205 of file Texture.cpp.

virtual GLenum Texture2D::target (  )  const [inline, virtual]

Implements Texture.

Definition at line 142 of file Texture.h.

void Texture::bind (  )  const [inherited]

Definition at line 82 of file Texture.cpp.

bool Texture::fail (  )  const [inline, inherited]

Definition at line 86 of file Texture.h.

bool Texture::stdCoordSystem (  )  const [inline, inherited]

Definition at line 87 of file Texture.h.

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

Definition at line 90 of file Texture.h.

GLuint Texture::handle (  )  const [inline, inherited]

Definition at line 91 of file Texture.h.

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

Definition at line 96 of file Texture.cpp.

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

Definition at line 133 of file Texture.cpp.


Member Data Documentation

string Texture::_name [protected, inherited]

Definition at line 111 of file Texture.h.

GLuint Texture::_handle [protected, inherited]

Definition at line 112 of file Texture.h.

TextureFlags Texture::_flags [protected, inherited]

Definition at line 114 of file Texture.h.

bool Texture::_standardCoordSystem [protected, inherited]

Definition at line 115 of file Texture.h.

bool Texture::_fail [protected, inherited]

Definition at line 116 of file Texture.h.


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