GLTextureCubeMap Class Reference

#include <GLTextureCubeMap.h>

Inheritance diagram for GLTextureCubeMap:

GLTextureBase

List of all members.

Public Member Functions

 GLTextureCubeMap ()
virtual ~GLTextureCubeMap ()
virtual void draw (bool force=false)
bool create (Image &bitmap, bool mipMap=true)
bool create (const void *data, GLint width, GLint height, GLint components, GLint alignment, GLenum format, bool mipMap)
bool textureValid ()

Protected Member Functions

bool createTexture (const void *data, GLint width, GLint height, GLint components, GLint alignment, GLenum format, bool mipMap)

Protected Attributes

GLuint cubeTexNum_ [6]


Detailed Description

Definition at line 27 of file GLTextureCubeMap.h.


Constructor & Destructor Documentation

GLTextureCubeMap::GLTextureCubeMap (  ) 

Definition at line 26 of file GLTextureCubeMap.cpp.

References cubeTexNum_.

GLTextureCubeMap::~GLTextureCubeMap (  )  [virtual]

Definition at line 31 of file GLTextureCubeMap.cpp.

References cubeTexNum_, glDeleteTextures(), and textureValid().


Member Function Documentation

void GLTextureCubeMap::draw ( bool  force = false  )  [virtual]

Implements GLTextureBase.

Definition at line 45 of file GLTextureCubeMap.cpp.

References GLTextureBase::lastBind_.

bool GLTextureCubeMap::create ( Image bitmap,
bool  mipMap = true 
)

Definition at line 53 of file GLTextureCubeMap.cpp.

References Image::getAlignment(), Image::getBits(), Image::getComponents(), Image::getHeight(), Image::getWidth(), GL_LUMINANCE, GL_RGB, and GL_RGBA.

Referenced by Water2Renderer::generate().

bool GLTextureCubeMap::create ( const void *  data,
GLint  width,
GLint  height,
GLint  components,
GLint  alignment,
GLenum  format,
bool  mipMap 
)

Definition at line 71 of file GLTextureCubeMap.cpp.

References createTexture(), cubeTexNum_, GL_TEXTURE_CUBE_MAP_EXT, glBindTexture(), glGenTextures(), and textureValid().

bool GLTextureCubeMap::textureValid (  ) 

Definition at line 40 of file GLTextureCubeMap.cpp.

References cubeTexNum_, GL_TRUE, and glIsTexture().

Referenced by create(), and ~GLTextureCubeMap().

bool GLTextureCubeMap::createTexture ( const void *  data,
GLint  width,
GLint  height,
GLint  components,
GLint  alignment,
GLenum  format,
bool  mipMap 
) [protected]

Definition at line 96 of file GLTextureCubeMap.cpp.

References GL_LINEAR, GL_LINEAR_MIPMAP_LINEAR, GL_MODULATE, GL_REPEAT, GL_TEXTURE_CUBE_MAP_EXT, GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT, GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT, GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT, GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT, GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_UNPACK_ALIGNMENT, GL_UNPACK_ROW_LENGTH, GL_UNPACK_SKIP_PIXELS, GL_UNPACK_SKIP_ROWS, GL_UNSIGNED_BYTE, glPixelStorei(), glTexEnvf(), glTexImage2D(), and glTexParameterf().

Referenced by create().


Member Data Documentation

GLuint GLTextureCubeMap::cubeTexNum_[6] [protected]

Definition at line 48 of file GLTextureCubeMap.h.

Referenced by create(), GLTextureCubeMap(), textureValid(), and ~GLTextureCubeMap().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:02 2009 for Scorched3D by  doxygen 1.5.3