omegalib  13.1
omega::Platform Class Reference

Contains generic information about the platform (software, hardware and runtime), obtained by parsing the 'config/platform' section in the system configuration file. More...

#include <Platform.h>

Static Public Member Functions

static void setup (const Setting &s)
 
static bool is (const String &name)
 returns true if the flag with the specified name is set. More...
 

Static Public Attributes

static float scale
 The user interface / 2D graphics scale that should be used on this platform. More...
 
static bool deprecationWarnings
 When set to true, print warning about deprecated functionality being used. More...
 

Detailed Description

Contains generic information about the platform (software, hardware and runtime), obtained by parsing the 'config/platform' section in the system configuration file.

Platform settings are globally accessible and are hints that user code can use to customize its execution on different platforms.

Member Function Documentation

static bool omega::Platform::is ( const String name)
static

returns true if the flag with the specified name is set.

static void omega::Platform::setup ( const Setting s)
static

Member Data Documentation

bool omega::Platform::deprecationWarnings
static

When set to true, print warning about deprecated functionality being used.

float omega::Platform::scale
static

The user interface / 2D graphics scale that should be used on this platform.

Read from config/platform/scale, defaults to 1.


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