clan::Application Class Reference - ClanLib SDK
Description: clan::Application Class Reference

Public Member Functions | Static Public Member Functions | List of all members
clan::Application Class Reference
clanApp System

Base class for the application object. More...

`#include <clanapp.h>`

## Public Member Functions
virtual | ~Application ()
virtual bool | update ()
| Main loop update handler.

## Static Public Member Functions
static const std::vector< std::string > & | main_args ()
| Returns the command line arguments passed to the application.
static void | use_timeout_timing (int timeout_ms)
| Set update handler to wait a certain amount of milliseconds between each update.

## Detailed Description

Base class for the application object.

All applications using the clanApp module need to inherit from this class. See ApplicationInstance for more information.

## Constructor & Destructor Documentation

## ◆ ~Application()

virtual clan::Application::~Application | ( |  | ) |
| inlinevirtual

## Member Function Documentation

## ◆ main_args()

const std::vector< std::string > & clan::Application::main_args | ( |  | ) |
| static

Returns the command line arguments passed to the application.

## ◆ update()

virtual bool clan::Application::update | ( |  | ) |
| inlinevirtual

Main loop update handler.

Once the target environment has been initialized this function is called continously to update and render the application. If the function returns false the main loop will end and the application will exit.

## ◆ use_timeout_timing()

void clan::Application::use_timeout_timing | ( | int | timeout_ms | ) |
| static

Set update handler to wait a certain amount of milliseconds between each update.

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

- clanapp.h