GPU (API)

From ComputerCraft Wiki
Revision as of 00:58, 18 March 2012 by Mast3rPlan (Talk | contribs)

Jump to: navigation, search

The GPU api provides interaction with and is part of the CCGPU peripheral.
Arguments surrounded with square brackets are optional.

API Methods

These methods can be used in any ComputerCraft program if the CCGPU api is installed.

Method name Description
gpu.setRenderCode([side], renderCode) Sets the gpu rendering code, this code is ran every frame.

@param side the side the gpu is connected to
@param renderCode the code as a string
@return nil

Render Methods

These methods can be used in the render code when set using gpu.setRenderCode.

Method name Description
gpuCreateBuffer(width, height) Coming soon
gpuClearBuffer() Coming soon
gpuBindBuffer(id) Coming soon
gpuBindOutputBuffer(id) Coming soon