GFXGLCubemap
Engine/source/gfx/gl/gfxGLCubemap.h
Public Friends
class
class
Protected Attributes
Size of faces for a dynamic texture (used in resurrect)
mTextures [6]
Keep refs to our textures for resurrection of static cubemaps.
Public Functions
initDynamic(U32 texSize, GFXFormat faceFormat)
initStatic(DDSFile * dds)
Create a static cubemap from a DDS cubemap file.
initStatic(GFXTexHandle * faces)
Create a static cubemap from a list of 6 face textures.
Called by texCB; this is to ensure that all textures have been resurrected before we attempt to res the cubemap.
Public Static Functions
getEnumForFaceNumber(U32 face)
Performs lookup to get a GLenum for the given face number.
Protected Functions
The callback used to get texture events.
fillCubeTextures(GFXTexHandle * faces)
Copies the textures in faces into the cubemap.
setToTexUnit(U32 tuNum)
Binds the cubemap to the given texture unit.
Detailed Description
Public Friends
Protected Attributes
GLuint mCubemap
Internal GL handle.
Resource< DDSFile > mDDSFile
The backing DDSFile uses to restore the faces when the surface is lost.
U32 mDynamicTexSize
Size of faces for a dynamic texture (used in resurrect)
GFXFormat mFaceFormat
U32 mHeight
U32 mMipLevels
GFXTexHandle mTextures [6]
Keep refs to our textures for resurrection of static cubemaps.
U32 mWidth
Protected Static Attributes
GLenum faceList [6]
Lookup table.
Public Functions
GFXGLCubemap()
~GFXGLCubemap()
getFormat()
Reimplemented from: GFXCubemap
getHandle()
getHeight()
getNumMipLevels()
getSize()
Reimplemented from: GFXCubemap
getWidth()
initDynamic(U32 texSize, GFXFormat faceFormat)
Reimplemented from: GFXCubemap
initStatic(DDSFile * dds)
Reimplemented from: GFXCubemap
initStatic(GFXTexHandle * faces)
Reimplemented from: GFXCubemap
resurrect()
Reimplemented from: GFXResource
tmResurrect()
Called by texCB; this is to ensure that all textures have been resurrected before we attempt to res the cubemap.
zombify()
Reimplemented from: GFXResource
Public Static Functions
getEnumForFaceNumber(U32 face)
Performs lookup to get a GLenum for the given face number.
Protected Functions
_onTextureEvent(GFXTexCallbackCode code)
The callback used to get texture events.
bind(U32 textureUnit)
Notifies our owning device that we want to be set to the given texture unit (used for GL internal state tracking)
fillCubeTextures(GFXTexHandle * faces)
Copies the textures in faces into the cubemap.
setToTexUnit(U32 tuNum)
Reimplemented from: GFXCubemap
