Difference between revisions of "GPU (API)"
From ComputerCraft Wiki
Mast3rPlan (Talk | contribs) |
Mast3rPlan (Talk | contribs) |
||
Line 4: | Line 4: | ||
!style="background:#EEE" width="*"|Description | !style="background:#EEE" width="*"|Description | ||
|- | |- | ||
− | | | + | |gpu.setRenderCode(<nowiki>[</nowiki>side<nowiki>]</nowiki>, renderCode) |
|Sets the gpu rendering code, this code is ran every frame.<br /> | |Sets the gpu rendering code, this code is ran every frame.<br /> | ||
''@param'' <nowiki>[</nowiki>'''side'''<nowiki>]</nowiki> the side the gpu is connected to<br /> | ''@param'' <nowiki>[</nowiki>'''side'''<nowiki>]</nowiki> the side the gpu is connected to<br /> |
Revision as of 00:53, 18 March 2012
The GPU api provides interaction with and is part of the CCGPU peripheral.
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 |