[Gfx2CpuRenderTarget] target = gfx2.createCpuRenderTarget(width, height)


Creates a cpu render target, you can basically use most gfx2 things on it.
Except that you can then save it to disk or do whatever you want with the texture cpu or gpu side

Parameters


width

integer

The width of the render target

height

integer

The height of the render target

Return Value


target

Gfx2CpuRenderTarget

The created render target