Classes | Public Types | Static Public Member Functions

Tiny2D::App Class Reference

Application/base functionality. More...

#include <Tiny2D.h>

List of all members.

Classes

class  Callbacks
 App callbacks to be implemented by the user. More...
struct  DisplayMode
 Display mode. More...
struct  DisplaySettings
 Application display settings. More...
struct  StartupParams
 Applicationn startup parameters. More...
struct  SystemInfo
 System information. More...

Public Types

enum  MessageBoxType { MessageBoxType_Info = 0, MessageBoxType_Warning, MessageBoxType_Error, MessageBoxType_COUNT }
 

Native message box types.

More...

Static Public Member Functions

static bool ModifyDisplaySettings (const DisplaySettings &settings)
 Changes application display settings (resolution, fullscreen mode etc.)
static void Quit ()
 Quits an app.
static const std::vector
< std::string > & 
GetRootDataDirs ()
 Gets root data directory.
static int GetWidth ()
 Gets rendering width (possibly virtual resolution width)
static int GetHeight ()
 Gets rendering height (possibly virtual resolution height)
static bool IsFullscreen ()
 Checks if the app is in fullscreen mode.
static TextureGetMainRenderTarget ()
 Gets main/default render target.
static TextureGetCurrentRenderTarget ()
 Gets current render target.
static MaterialGetDefaultMaterial ()
 Gets default material (used to draw textures and sprites)
static FontGetDefaultFont ()
 Gets default font.
static const std::string & GetLanguageSymbol ()
 Gets app language symbol.
static void ShowMessageBox (const std::string &message, MessageBoxType type=MessageBoxType_Info)
 Shows message box.
static void EnableOnScreenDebugInfo (bool enable)
 Enables basic visual app stats including FPS.
static void Sleep (float seconds)
 Puts current thread to sleep.
static void RunCommand (const std::string &command)
 Runs command; for example setting command to "http://www.pixelelephant.com" will open webpage in a browser; note: currently only works on Windows.

Detailed Description

Application/base functionality.


Member Enumeration Documentation

Native message box types.

Enumerator:
MessageBoxType_Info 

Information.

MessageBoxType_Warning 

Warning.

MessageBoxType_Error 

Error.

MessageBoxType_COUNT 

Member Function Documentation

static void Tiny2D::App::EnableOnScreenDebugInfo ( bool  enable ) [static]

Enables basic visual app stats including FPS.

static Texture& Tiny2D::App::GetCurrentRenderTarget (  ) [static]

Gets current render target.

static Font& Tiny2D::App::GetDefaultFont (  ) [static]

Gets default font.

static Material& Tiny2D::App::GetDefaultMaterial (  ) [static]

Gets default material (used to draw textures and sprites)

static int Tiny2D::App::GetHeight (  ) [static]

Gets rendering height (possibly virtual resolution height)

static const std::string& Tiny2D::App::GetLanguageSymbol (  ) [static]

Gets app language symbol.

static Texture& Tiny2D::App::GetMainRenderTarget (  ) [static]

Gets main/default render target.

static const std::vector<std::string>& Tiny2D::App::GetRootDataDirs (  ) [static]

Gets root data directory.

static int Tiny2D::App::GetWidth (  ) [static]

Gets rendering width (possibly virtual resolution width)

static bool Tiny2D::App::IsFullscreen (  ) [static]

Checks if the app is in fullscreen mode.

static bool Tiny2D::App::ModifyDisplaySettings ( const DisplaySettings settings ) [static]

Changes application display settings (resolution, fullscreen mode etc.)

static void Tiny2D::App::Quit (  ) [static]

Quits an app.

static void Tiny2D::App::RunCommand ( const std::string &  command ) [static]

Runs command; for example setting command to "http://www.pixelelephant.com" will open webpage in a browser; note: currently only works on Windows.

static void Tiny2D::App::ShowMessageBox ( const std::string &  message,
MessageBoxType  type = MessageBoxType_Info 
) [static]

Shows message box.

static void Tiny2D::App::Sleep ( float  seconds ) [static]

Puts current thread to sleep.


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