libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
Platform abstraction

The Platform composition root and the video, audio and thread driver interfaces the core library is written against. More...

Classes

class  AudioDriver
 Platform audio backend GuiSound delegates to: fixed one-shot PCM voices plus one background OGG stream. More...
 
struct  PixelColor
 8-bit-per-channel RGBA color used by the video interfaces. More...
 
struct  MeshVertex
 A single 2D vertex with its own color, in design-canvas coordinates. More...
 
struct  PlatformConfig
 Settings passed to Platform::init(). More...
 
class  Platform
 Composition root for a platform. More...
 
class  ThreadDriver
 Raw platform threading primitives. More...
 
class  VideoDriver
 Platform video backend owning the frame lifecycle (init/render/clear, screen size, refresh rate, delta time) and handing out an ImageRenderer and a GlyphRenderer. More...
 
class  ImageRenderer
 Platform image/texture backend GuiImageData and GuiImage delegate to. More...
 
class  GlyphRenderer
 Draws glyph textures and solid rectangles on behalf of GuiTextRenderer. More...
 

Enumerations

enum class  Status { Running , Paused , Exiting }
 Platform execution state. More...
 
enum class  SystemEvent { None , SystemEvent::ShutdownRequested , SystemEvent::ResetRequested }
 A hardware/OS-level system event a Platform can report. More...
 

Detailed Description

The Platform composition root and the video, audio and thread driver interfaces the core library is written against.

Enumeration Type Documentation

◆ Status

enum class Status
strong

Platform execution state.

Definition at line 26 of file Platform.h.

◆ SystemEvent

enum class SystemEvent
strong

A hardware/OS-level system event a Platform can report.

These are mutually exclusive by construction.

Enumerator
ShutdownRequested 

Power button pressed (console or, on Wii, a Wiimote) - or, on Wii U, the OS asking the app to exit.

Stop running as soon as practical.

ResetRequested 

Reset button pressed (Wii only).

Soft-reset the currently running game and keep going.

Definition at line 36 of file Platform.h.