GenerateMipChain Data Member Function

Generates an analytically correct MIP chain for the <Texture> object submitted to this function. This function is the same as GenerateMip1D(), GenerateMip2D(), and so on but it doesn't require the caller to understand the topology of the <Texture> object beforehand.

Prototype

int32 GenerateMipChain( Texture src, TypeBuffer dst )

Parameters

Parameter Type Parameter Name Documentation
<Texture>srcA pointer to the source <Texture> object.
<TypeBuffer>dstA pointer to the destination <TypeBuffer> that stores the image slices. This <TypeBuffer> object owns the pointers to the newly allocated <Image> objects.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.