Public Member Functions

Tiny2D::App::Callbacks Class Reference

App callbacks to be implemented by the user. More...

#include <Tiny2D.h>

List of all members.

Public Member Functions

virtual ~Callbacks ()
virtual bool OnStartup (int numArguments, const char **arguments, const SystemInfo &systemInfo, StartupParams &outParams)
 Invoked before app startup to allow user set up application startup parameters; expects true returned on success; on false application is stopped.
virtual bool OnInit ()
 Invoked after successful Tiny2D system startup to allow an app to initialize itself; expects true returned on success; on false application is stopped.
virtual void OnDeinit ()
 Invoked just before application shutdown; note: it's totally okay too to destroy all game resources in a destructor.
virtual void OnActivated (bool activated)
 Invoked when app gets activated/restored or deactivated.
virtual void OnUpdate (float deltaTime)
 Invoked each frame to update an application by 'deltaTime' seconds.
virtual void OnDraw (Texture &renderTarget)
 Invoked each frame to draw application; given render target is where the rendering shall be done.
virtual void OnDrawAfterPostprocessing (Texture &renderTarget)
 Invoked each frame after built-in post-processing rendering is done; this is to allow for rendering some parts of the game (e.g. UI) without any post-processing applied to it.

Detailed Description

App callbacks to be implemented by the user.


Constructor & Destructor Documentation

virtual Tiny2D::App::Callbacks::~Callbacks (  ) [inline, virtual]

Member Function Documentation

virtual void Tiny2D::App::Callbacks::OnActivated ( bool  activated ) [inline, virtual]

Invoked when app gets activated/restored or deactivated.

virtual void Tiny2D::App::Callbacks::OnDeinit (  ) [inline, virtual]

Invoked just before application shutdown; note: it's totally okay too to destroy all game resources in a destructor.

virtual void Tiny2D::App::Callbacks::OnDraw ( Texture renderTarget ) [inline, virtual]

Invoked each frame to draw application; given render target is where the rendering shall be done.

virtual void Tiny2D::App::Callbacks::OnDrawAfterPostprocessing ( Texture renderTarget ) [inline, virtual]

Invoked each frame after built-in post-processing rendering is done; this is to allow for rendering some parts of the game (e.g. UI) without any post-processing applied to it.

virtual bool Tiny2D::App::Callbacks::OnInit (  ) [inline, virtual]

Invoked after successful Tiny2D system startup to allow an app to initialize itself; expects true returned on success; on false application is stopped.

virtual bool Tiny2D::App::Callbacks::OnStartup ( int  numArguments,
const char **  arguments,
const SystemInfo systemInfo,
StartupParams outParams 
) [inline, virtual]

Invoked before app startup to allow user set up application startup parameters; expects true returned on success; on false application is stopped.

virtual void Tiny2D::App::Callbacks::OnUpdate ( float  deltaTime ) [inline, virtual]

Invoked each frame to update an application by 'deltaTime' seconds.


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