Jump to content

Gpu: Difference between revisions

From Advanced Computers Wiki
Created page with "The GpuUD component is what allows for rendering to screens. It offers the following functionality: {| class="wikitable" |+ GpuUD component properties |- ! Name !! Type !! Read/Write !! Description |- | <code>remainingVideoRam</code> || <code>integer</code> || READ || The amount of video ram remaining. Every alive buffer requires a certain amount of video memory. |} {| class="wikitable" |+ GpuUD component methods |- ! Name !! Returns !! Description |- |<code>:newBuffer..."
 
mNo edit summary
Line 23: Line 23:
|-
|-
|<code>:freeAllBuffers()</code>
|<code>:freeAllBuffers()</code>
|int
|<code>int</code>
|Frees all buffers allocated by this GPU and returns the number of freed buffers.
|Frees all buffers allocated by this GPU and returns the number of freed buffers.
|}
|}


{{Navbox content}}
{{Navbox content}}

Revision as of 01:57, 2 August 2026

The GpuUD component is what allows for rendering to screens. It offers the following functionality:

GpuUD component properties
Name Type Read/Write Description
remainingVideoRam integer READ The amount of video ram remaining. Every alive buffer requires a certain amount of video memory.
GpuUD component methods
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.