CreateColorBuffer Data Member Function

Creates a color buffer of the specified format, width and height. This color buffer can then be attached to a frame buffer using the rendering device's AttachColorBuffer function. It can also be applied to a dynamic texture handle using the rendering device's GetColorBufferTextureHandle function.

Prototype

int32 CreateColorBuffer( int32 PixelFormat, int32 Width, int32 Height, int32 Index )

Parameters

Parameter Type Parameter Name Documentation
int32PixelFormatThe desired pixel format of the color buffer.
int32WidthThe desired width of the color buffer.
int32HeightThe desired height of the color buffer.
int32IndexReserved. This value must be 0 at present.

Examples

Copy Text To Clipboard

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