#include <GLTextureCubeMap.h>

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] |
Definition at line 27 of file GLTextureCubeMap.h.
| GLTextureCubeMap::GLTextureCubeMap | ( | ) |
| GLTextureCubeMap::~GLTextureCubeMap | ( | ) | [virtual] |
Definition at line 31 of file GLTextureCubeMap.cpp.
References cubeTexNum_, glDeleteTextures(), and textureValid().
| 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().
GLuint GLTextureCubeMap::cubeTexNum_[6] [protected] |
Definition at line 48 of file GLTextureCubeMap.h.
Referenced by create(), GLTextureCubeMap(), textureValid(), and ~GLTextureCubeMap().
1.5.3