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.
int32 CreateColorBuffer( int32 PixelFormat, int32 Width, int32 Height, int32 Index )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | PixelFormat | The desired pixel format of the color buffer. |
int32 | Width | The desired width of the color buffer. |
int32 | Height | The desired height of the color buffer. |
int32 | Index | Reserved. This value must be 0 at present. |
None published. Please look for an example in the Scenome Scripting Language code base.