You.i Engine
CYIAppContext Class Reference

Detailed Description

Holds on to Surface and Screen that is given to us by the framework. CYIApp will receive updates to these parameters, will do necessary updates to all the components in the system, and will update CYIAppContext for all components on the system to be able to query from

#include <framework/YiAppContext.h>

Public Member Functions

 ~CYIAppContext ()
 
CYISurfaceGetSurface ()
 
CYIScreenGetScreen ()
 
CYIAppGetApp ()
 
void SetApp (CYIApp *pApp)
 
void SetSurface (CYISurface *pSurface)
 
void SetScreen (CYIScreen *pScreen)
 
bool IsSurfaceUndefined () const
 

Static Public Member Functions

static CYIAppContextGetInstance ()
 

Constructor & Destructor Documentation

CYIAppContext::~CYIAppContext ( )

Member Function Documentation

CYIApp* CYIAppContext::GetApp ( )

Returns the application object

static CYIAppContext* CYIAppContext::GetInstance ( )
static
CYIScreen* CYIAppContext::GetScreen ( )

Returns the active screen

CYISurface* CYIAppContext::GetSurface ( )

Returns the active surface

bool CYIAppContext::IsSurfaceUndefined ( ) const
void CYIAppContext::SetApp ( CYIApp pApp)

Set the application object

void CYIAppContext::SetScreen ( CYIScreen pScreen)

Updates the platform-specific screen

void CYIAppContext::SetSurface ( CYISurface pSurface)

Updates the platform-specific surface


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