Gpu
Appearance
The GpuUD component is what allows for rendering to screens. It offers the following functionality:
| Name | Type | Read/Write | Description |
|---|---|---|---|
remainingVideoRam |
integer |
READ | The amount of video ram remaining. Every alive buffer requires a certain amount of video memory. |
| Name | Returns | Description |
|---|---|---|
:newBuffer(integer:width, integer:height)
|
textBufferUD
|
Attempts to allocate and return a new TextBuffer of the given size. |
:assignBuffer(textBufferUD, screenBlockUD:screenComponent)
|
void
|
Assigns the given textBuffer to the given Screen, displaying the contents on the screen. |
:freeAllBuffers()
|
int | Frees all buffers allocated by this GPU and returns the number of freed buffers. |