Jump to content

Gpu

From Advanced Computers Wiki
Revision as of 01:36, 2 August 2026 by GHXX (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.