Torque3D Documentation / _generateds / GFXGLTextureObject

GFXGLTextureObject

Engine/source/gfx/gl/gfxGLTextureObject.h

More...

Private Types

Public Attributes

bool

Public Friends

Public Functions

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.

bool

Not implemented.

The resource should put a description of itself (number of vertices, size/width of texture, etc.) in buffer.

bool
lock(U32 mipLevel, RectI * inRect)

Get/set data from texture (for dynamic textures and render targets)

Reloads texture from zombie cache, used by GFXGLTextureManager to resurrect the texture.

When called the resource should restore all device sensitive information destroyed by zombify()

unlock(U32 mipLevel)

Releases a lock previously acquired.

When called the resource should destroy all device sensitive information (e.g. D3D resources in D3DPOOL_DEFAULT.

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)

return:

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

Private Functions

copyIntoCache()