libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
PlatformConfig Struct Reference

Settings passed to Platform::init(). More...

#include <Platform.h>

Public Attributes

int canvasWidth
 Design canvas width in pixels (eg.
 
int canvasHeight
 Design canvas height in pixels (eg.
 
float assetScaleX = 1.0f
 Horizontal ratio of source art pixels to design-canvas pixels.
 
float assetScaleY = 1.0f
 Vertical counterpart of assetScaleX.
 

Detailed Description

Settings passed to Platform::init().

Examples
demo.cpp.

Definition at line 49 of file Platform.h.

Member Data Documentation

◆ assetScaleX

float PlatformConfig::assetScaleX = 1.0f

Horizontal ratio of source art pixels to design-canvas pixels.

GuiImageData divides a decoded PNG's width by this to get its design size. 1.0 means the art is authored at canvas resolution.

Examples
demo.cpp.

Definition at line 56 of file Platform.h.

◆ assetScaleY

float PlatformConfig::assetScaleY = 1.0f

Vertical counterpart of assetScaleX.

Examples
demo.cpp.

Definition at line 58 of file Platform.h.

◆ canvasHeight

int PlatformConfig::canvasHeight

Design canvas height in pixels (eg.

480)

Examples
demo.cpp.

Definition at line 52 of file Platform.h.

◆ canvasWidth

int PlatformConfig::canvasWidth

Design canvas width in pixels (eg.

640)

Examples
demo.cpp.

Definition at line 51 of file Platform.h.


The documentation for this struct was generated from the following file: