PixelBuffer


Description:

public PixelBuffer (uint size)

Declares a new PixelBuffer of size bytes to contain arrays of pixels.

Once declared, data can be set using set_data or by mapping it into the application's address space using map.

If data isn't null then size bytes will be read from data and immediately copied into the new buffer.

Parameters:

size

The number of bytes to allocate for the pixel data.

context

A CoglContext

data

An optional pointer to vertex data to upload immediately

Returns:

a newly allocated PixelBuffer