Torque3D Documentation / _generateds / GFXCubemapArray

GFXCubemapArray

Engine/source/gfx/gfxCubemap.h

Cubemap array - data lives on the GPU only with this class, but the data is not immutable so it can be updated.

More...

Public Friends

Protected Attributes

number of mip levels

number of cubemaps in the array

cubemap face size

Protected Functions

should only be called by GFXDevice

Public Functions

copyTo(GFXCubemapArray * pDstCubemap)

Copy this cubemap to another - destination must be same format, same face size & at-least the same size(or larger)

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

Returns the format.

Get the number of mip maps.

Return number of textures in the array.

Returns the size of the faces.

init(const U32 cubemapCount, const U32 cubemapFaceSize, const GFXFormat format)

Initialize cubemapCount number of blank cubemaps in the array.

init(GFXCubemapHandle * cubemaps, const U32 cubemapCount)

Initialize from an array of cubemaps.

Update cubemap in the array.

Detailed Description

Cubemap array - data lives on the GPU only with this class, but the data is not immutable so it can be updated.

Public Friends

Protected Attributes

GFXFormat mFormat 

format

U32 mMipMapLevels 

number of mip levels

U32 mNumCubemaps 

number of cubemaps in the array

U32 mSize 

cubemap face size

Protected Functions

setToTexUnit(U32 tuNum)

should only be called by GFXDevice

Reimplemented by: GFXD3D11CubemapArray, GFXGLCubemapArray, GFXNullCubemapArray

Public Functions

GFXCubemapArray()

~GFXCubemapArray()

copyTo(GFXCubemapArray * pDstCubemap)

Copy this cubemap to another - destination must be same format, same face size & at-least the same size(or larger)

Reimplemented by: GFXD3D11CubemapArray, GFXGLCubemapArray, GFXNullCubemapArray

describeSelf()

Reimplemented from: GFXResource

getFormat()

Returns the format.

getMipMapLevels()

Get the number of mip maps.

getNumCubemaps()

Return number of textures in the array.

getSize()

Returns the size of the faces.

init(const U32 cubemapCount, const U32 cubemapFaceSize, const GFXFormat format)

Initialize cubemapCount number of blank cubemaps in the array.

Reimplemented by: GFXD3D11CubemapArray, GFXGLCubemapArray, GFXNullCubemapArray

init(GFXCubemapHandle * cubemaps, const U32 cubemapCount)

Initialize from an array of cubemaps.

Reimplemented by: GFXD3D11CubemapArray, GFXGLCubemapArray, GFXNullCubemapArray

updateTexture(const GFXCubemapHandle & cubemap, const U32 slot)

Update cubemap in the array.

Reimplemented by: GFXD3D11CubemapArray, GFXGLCubemapArray, GFXNullCubemapArray