GFXGLTextureObject
Engine/source/gfx/gl/gfxGLTextureObject.h
Private Types
Parent
Public Attributes
bool
Public Friends
class
Private Attributes
Pointer to owner device.
bool
Public Functions
GFXGLTextureObject(GFXDevice * aDevice, GFXTextureProfile * profile)
The resource should put a description of itself (number of vertices, size/width of texture, etc.) in buffer.
U8 *
getTextureData(U32 mip)
bool
isZombie()
Reloads texture from zombie cache, used by GFXGLTextureManager to resurrect the texture.
Private Functions
Detailed Description
Private Types
typedef GFXTextureObject Parent
Public Attributes
bool mIsNPoT2
Public Friends
Private Attributes
GLenum mBinding
GLuint mBuffer
U32 mBytesPerTexel
U32 mFrameAllocatorMark
U8 * mFrameAllocatorPtr
GFXGLDevice * mGLDevice
Pointer to owner device.
GLuint mHandle
Internal GL object.
bool mIsZombie
GFXLockedRect mLockedRect
RectI mLockedRectRect
bool mNeedInitSamplerState
GFXSamplerStateDesc mSampler
U8 * mZombieCache
Public Functions
GFXGLTextureObject(GFXDevice * aDevice, GFXTextureProfile * profile)
~GFXGLTextureObject()
bind(U32 textureUnit)
Binds the texture to the given texture unit and applies the current sampler state because GL tracks filtering and wrapper per object, while GFX tracks per sampler.
copyToBmp(GBitmap * )
Reimplemented from: GFXTextureObject
describeSelf()
Reimplemented from: GFXTextureObject
getBinding()
getBuffer()
getHandle()
getMaxUCoord()
Reimplemented from: GFXTextureObject
getMaxVCoord()
Reimplemented from: GFXTextureObject
getTextureData(U32 mip)
An array containing the texture data
note:You are responsible for deleting the returned data! (Use delete[])
initSamplerState(const GFXSamplerStateDesc & ssd)
isZombie()
lock(U32 mipLevel, RectI * inRect)
Reimplemented from: GFXTextureObject
reInit()
release()
reloadFromCache()
Reloads texture from zombie cache, used by GFXGLTextureManager to resurrect the texture.
resurrect()
Reimplemented from: GFXResource
unlock(U32 mipLevel)
Reimplemented from: GFXTextureObject
zombify()
Reimplemented from: GFXResource