Vivid
Loading...
Searching...
No Matches
Application Class Reference

Application class. More...

#include <Application.h>

Public Member Functions

bool IsRunning ()
 
void Run ()
 
WindowGetWindow ()
 
CameraGetCamera ()
 
char * GetTitle ()
 
void SetCamera (Camera *camera)
 
void Terminate ()
 
void SetRenderingInterface (RenderingInterface *renderingInterface)
 

Static Public Member Functions

static ApplicationGetInstance (int width=1920, int height=1080, const char *title="Vivid", Camera *camera=nullptr)
 

Detailed Description

Application class.

A class that contains functions to create an application, run the application, get the window, get the camera, get the title, set the camera, terminate the application, and set the rendering interface.

Definition at line 18 of file Application.h.

Member Function Documentation

◆ GetCamera()

Camera * Application::GetCamera ( )
inline

Definition at line 48 of file Application.h.

◆ GetInstance()

static Application * Application::GetInstance ( int  width = 1920,
int  height = 1080,
const char *  title = "Vivid",
Camera camera = nullptr 
)
inlinestatic

Definition at line 39 of file Application.h.

◆ GetTitle()

char * Application::GetTitle ( )
inline

Definition at line 50 of file Application.h.

◆ GetWindow()

Window & Application::GetWindow ( )
inline

Definition at line 46 of file Application.h.

◆ IsRunning()

bool Application::IsRunning ( )

Definition at line 25 of file Application.cpp.

◆ Run()

void Application::Run ( )

Definition at line 35 of file Application.cpp.

◆ SetCamera()

void Application::SetCamera ( Camera camera)
inline

Definition at line 52 of file Application.h.

◆ SetRenderingInterface()

void Application::SetRenderingInterface ( RenderingInterface renderingInterface)
inline

Definition at line 56 of file Application.h.

◆ Terminate()

void Application::Terminate ( )

Definition at line 30 of file Application.cpp.


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