Render3D.CreateColorBuffer

This page contains reference documentation for the CreateColorBuffer function. This 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

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

Parameters

Function parameters are as follows:

  • PixelFormat: The desired pixel format of the color buffer.
  • Width: The desired width of the color buffer.
  • Height: The desired height of the color buffer.
  • Index: Reserved. This value must be 0 at present.