Public Member Functions | Public Attributes

Tiny2D::App::DisplaySettings Struct Reference

Application display settings. More...

#include <Tiny2D.h>

Inheritance diagram for Tiny2D::App::DisplaySettings:
Tiny2D::App::StartupParams

List of all members.

Public Member Functions

 DisplaySettings ()
 Sets up default display settings.
void SetiPhoneResolution ()
 Sets up iPhone non-retina display resolution (480x320)
void SetiPhoneRetinaResolution ()
 Sets up iPhone retina resolution (960x640)
void SetiPadResolution ()
 Sets up iPad non-retina display resolution (1024x768)
void SetiPadRetinaResolution ()
 Sets up iPad retina display resolution (2048x1536)

Public Attributes

std::string textureVersion
 Optional texture version name suffix; defaults to empty string.
float textureVersionSizeMultiplier
 Optional texture version size multiplier; defaults to 2.0f; only used when 'textureVersion' is set.
int width
 Desired display width; 0 indicates to use default/native width; defaults to 0.
int height
 Desired display height; 0 indicates to use default/native height; defaults to 0.
int virtualWidth
 Virtual display width; 0 indicates to make it equal to display width; defaults to 0.
int virtualHeight
 Virtual display height; 0 indicates to make it equal to display height; defaults to 0.
bool fullscreen
 Enable fullscreen mode? Only used on desktop platforms; defaults to true in release and false in debug.

Detailed Description

Application display settings.


Constructor & Destructor Documentation

Tiny2D::App::DisplaySettings::DisplaySettings (  )

Sets up default display settings.


Member Function Documentation

void Tiny2D::App::DisplaySettings::SetiPadResolution (  )

Sets up iPad non-retina display resolution (1024x768)

void Tiny2D::App::DisplaySettings::SetiPadRetinaResolution (  )

Sets up iPad retina display resolution (2048x1536)

void Tiny2D::App::DisplaySettings::SetiPhoneResolution (  )

Sets up iPhone non-retina display resolution (480x320)

void Tiny2D::App::DisplaySettings::SetiPhoneRetinaResolution (  )

Sets up iPhone retina resolution (960x640)


Member Data Documentation

Enable fullscreen mode? Only used on desktop platforms; defaults to true in release and false in debug.

Desired display height; 0 indicates to use default/native height; defaults to 0.

Optional texture version name suffix; defaults to empty string.

Optional texture version size multiplier; defaults to 2.0f; only used when 'textureVersion' is set.

Virtual display height; 0 indicates to make it equal to display height; defaults to 0.

Virtual display width; 0 indicates to make it equal to display width; defaults to 0.

Desired display width; 0 indicates to use default/native width; defaults to 0.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines