-
Notifications
You must be signed in to change notification settings - Fork 5
Home
alekso56 edited this page Feb 9, 2014
·
9 revisions
CCLights2 is an Open Source Minecraft mod that adds a GPU peripheral, and monitors to suit your need. Unlike CCGPU, this mod does not use OpenGL, but it is Multiplayer Compatible.
Please note; this documentation will always try to stay up to date with the github repo, so it might not fit your build :P
<tr>
<td style="width: 100px; background: #E0E0E0; padding: .4em; font-weight:bold;">Returns</td>
<td style="width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;">Method Name</td>
<td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Description</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.fill()</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Fills the current binded texture with the GPU color. NOTE: This method will fully replace the contents of the texture.</td></tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> textureid</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.createTexture(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> width, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> height)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Creates a texture and returns the texture id. This function will error if there is no more room for the texture.</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> freememory</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.getFreeMemory()</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Returns the amount of free memory that the GPU has to use. This can be expanded by right clicking the GPU with RAM. </td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> totalmemory</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.getTotalMemory()</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Returns the amount of memory that the GPU has. This can be expanded by right clicking the GPU with RAM.</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> usedmemory</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.getUsedMemory()</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Returns the amount of memory that the GPU is using. This value is changed by allocating textures with gpu.createTexture and freeing textures with gpu.freeTexture.</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.bindTexture(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> textureid)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Bind the texture at textureid, this method will error if invalid values are used. Texture 0 is the screen.</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.plot(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Sets the pixel on x,y to the the GPU's current color. (Remember, all drawing command work on the current binded texture)</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.drawTexture(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> textureid, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y[, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> startX, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> startY, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> width, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> height])</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Draws the texture <var>textureid</var> to x and y, and if startX, startY, width, and height is defined, it will render only that area of the texture. (Remember: You can render the texture to itself)</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.freeTexture(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> textureid)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Frees the texture defined by <var>textureid</var></td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.line(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x0, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y0, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x1, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y1)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Draws a line from x0 and y0 to x1 and y1.</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> width, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> height</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.getSize([ <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> textureid])</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Returns the texture size of <var>textureid</var> or the current binded texture. Using texture 0 will give you the screen size.</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> red, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> green, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> blue, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> alpha</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.getPixels(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Returns the color of the pixel in the currently binded texture. Out of bound pixels have an undefined side effect.</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.rectangle(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> width, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> height)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Draws the outline of a rectangle from x, y to x+width, y+height.</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.filledRectangle(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> width, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> height)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Draws a filled rectangle from x, y to x+width, y+height.</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.setColor(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> red, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> green, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> blue[, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> alpha])</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Sets the GPU's current drawing color</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> slot</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.getBindedTexture()</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Gets the GPU's currently binded texture</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.setPixelsRaw(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> width, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> height, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y, Optional: <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> red,<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> green,<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> blue)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">takes an array and writes each pixel to the image. this method is accelerated by java and is faster than multiple gpu.plot calls.</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.setPixelsRawYX(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> width, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> height, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y, Optional: <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> red,<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> green,<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> blue)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"> takes an array and writes each pixel to the image. this method is accelerated by java and is faster than multiple gpu.plot calls. This method will read in the inverse order of setPixelsRaw (each row is first, not columns)</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.flipTextureV()</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">flips the texture vertically</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">number</span></a> textureid</td></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.import(<a href="/wiki/String_(type)" title="String (type)"><span style="color: darkgreen; font-style: italic">string</span></a> imagestoredinCC,<a href="/wiki/String_(type)" title="String (type)"><span style="color: darkgreen; font-style: italic">string</span></a> file format)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">decodes an imagefile and makes it ready for texture binding.</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.export(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> textureid, <a href="/wiki/String_(type)" title="String (type)"><span style="color: darkgreen; font-style: italic">string</span></a> file format)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">encodes an imagefile and makes it ready for saving.</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.drawText(<a href="/wiki/String_(type)" title="String (type)"><span style="color: darkgreen; font-style: italic">string</span></a> text to write, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x,<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">writes text from pixel x,y</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> textWidth</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.getTextWidth()</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Gets Text width</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.setColor(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> red,<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> green,<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> blue, optional; <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> alpha)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Sets the GPU's current color</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> red, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> green, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> blue, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> alpha</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.getColor()</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Gets the GPU's current color</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.transelate(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x,<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">transelates the texture in two dimensions</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.rotate(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> degrees)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">rotates the texture in two dimensions</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.rotateAround(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> degrees,<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x,<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">rotates the texture around pixel x,y</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.scale(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x-axis size,<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y-axis size)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">scales the texture to specs</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.push()</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">store transformation commands from here on and push them to the storestack</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.pop()</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">process stored transformation input</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.getMonitor()</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Get monitor object</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.blur(<a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> blur amount)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">makes the texture blurry</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="http://computercraft.info/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.startFrame()</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Starts a new frame (use this if you plan to draw large amounts of data)</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="http://computercraft.info/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.endFrame()</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">ends the frame (ends the frame and sends the data, use this if you plan to draw large amounts of data)</td>
</tr>
<tr style="background-color: #FFFFFF;">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"><a href="/wiki/Nil_(type)" title="Nil (type)"><span style="color: darkgreen; font-style: italic">nil</span></a></td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">gpu.clearRect(<a href="http://computercraft.info/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> x, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> y, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> width, <a href="/wiki/Number_(type)" title="Number (type)"><span style="color: darkgreen; font-style: italic">number</span></a> height)</td>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Clear rectangle entirely to alpha 255</td>
</tr>
GPU Methods |