TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Classes | Functions
app Namespace Reference

Classes

struct  AppConfig
 
struct  AppContext
 

Functions

ni::tBool AppStartup (AppContext *apContext, ni::iOSWindow *apWindow, ni::iRunnable *apOnStarted, ni::iRunnable *apOnShutdown)
 Initialize the application using the specified window and OnStarted runnable. More...
 
void AppShutdown (AppContext *apContext)
 Shutdowns the application. More...
 
ni::tBool AppUpdate (AppContext *apContext)
 Update the application. More...
 
void AppRender (AppContext *apContext)
 Render the application. More...
 
ni::tBool AppParseCommandLine (const char *aaszCmdLine, ni::cString *apInputFileName=NULL, ni::tStringCVec *apOtherArgs=NULL)
 Parse the command line. More...
 
ni::tBool AppNativeStartup (AppContext *apContext, const ni::achar *aaszTitle, ni::tI32 anWidth, ni::tI32 anHeight, ni::iRunnable *apOnStarted, ni::iRunnable *apOnShutdown)
 Creates a native window and then calls AppStartup with the window and the specified OnStarted runnable. More...
 
int AppNativeMainLoop (AppContext *apContext)
 A simple app main function. More...
 

Function Documentation

ni::tBool app::AppStartup ( AppContext *  apContext,
ni::iOSWindow apWindow,
ni::iRunnable apOnStarted,
ni::iRunnable apOnShutdown 
)

Initialize the application using the specified window and OnStarted runnable.

void app::AppShutdown ( AppContext *  apContext)

Shutdowns the application.

ni::tBool app::AppUpdate ( AppContext *  apContext)

Update the application.

void app::AppRender ( AppContext *  apContext)

Render the application.

ni::tBool app::AppParseCommandLine ( const char *  aaszCmdLine,
ni::cString apInputFileName = NULL,
ni::tStringCVec apOtherArgs = NULL 
)

Parse the command line.

Remarks
example: app::AppParseCommandLine(ni::GetOSProcessManager()->GetCurrentProcess()->GetCommandLine())
ni::tBool app::AppNativeStartup ( AppContext *  apContext,
const ni::achar aaszTitle,
ni::tI32  anWidth,
ni::tI32  anHeight,
ni::iRunnable apOnStarted,
ni::iRunnable apOnShutdown 
)

Creates a native window and then calls AppStartup with the window and the specified OnStarted runnable.

int app::AppNativeMainLoop ( AppContext *  apContext)

A simple app main function.

Remarks
Example usage: int main() { return app::AppNativeMain(MyOnStarted); }
This takes care of calling AppUpdate, AppRender and AppShutdown.