Allolib  1.0
C++ Components For Interactive Multimedia
al::App Class Reference

Simple App class. More...

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/app/al_App.hpp>

Inheritance diagram for al::App:
al::DistributedApp al::DistributedAppWithState< TSharedState >

Classes

struct  StandardWindowAppKeyControls
 

Public Member Functions

template<class DomainType >
std::shared_ptr< DomainType > newDomain ()
 
virtual void onInit ()
 
virtual void onCreate ()
 
virtual void onAnimate (double dt)
 
virtual void onDraw (Graphics &g)
 
virtual void onSound (AudioIOData &io)
 
virtual void onMessage (osc::Message &m)
 
virtual void onExit ()
 
virtual bool onKeyDown (Keyboard const &)
 
virtual bool onKeyUp (Keyboard const &)
 
virtual bool onMouseDown (Mouse const &)
 
virtual bool onMouseUp (Mouse const &)
 
virtual bool onMouseDrag (Mouse const &)
 
virtual bool onMouseMove (Mouse const &)
 
virtual bool onMouseScroll (Mouse const &)
 
virtual void onResize (int, int)
 
void quit ()
 Requests domain to quit.
 
bool shouldQuit ()
 
virtual WindowdefaultWindow ()
 
virtual Graphicsgraphics ()
 
virtual Viewpointview ()
 
virtual Posepose ()
 
virtual Lenslens ()
 
virtual Navnav ()
 
virtual NavInputControlnavControl ()
 
void fps (double f)
 
Keyboardkeyboard ()
 Get current keyboard state.
 
Mousemouse ()
 Get current mouse state.
 
double aspect ()
 Get aspect ratio (width divided by height)
 
bool created ()
 
Window::Cursor cursor ()
 Get current cursor type.
 
bool cursorHide ()
 Whether the cursor is hidden.
 
Window::Dim dimensions ()
 Get current dimensions of window.
 
Window::DisplayMode displayMode ()
 Get current display mode.
 
bool enabled (Window::DisplayMode v)
 Get whether display mode flag is set.
 
bool fullScreen ()
 Get whether window is in fullscreen.
 
const std::string & title ()
 Get title of window.
 
bool visible ()
 Get whether window is visible.
 
bool vsync ()
 Get whether v-sync is enabled.
 
void fullScreenToggle ()
 Toggle fullscreen.
 
void hide ()
 Hide window (if showing)
 
void iconify ()
 Iconify window.
 
int height ()
 Get window height, in pixels.
 
int width ()
 Get window width, in pixels.
 
int fbHeight ()
 
int fbWidth ()
 
float highresFactor ()
 
bool decorated ()
 
void cursor (Window::Cursor v)
 Set cursor type.
 
void cursorHide (bool v)
 Set cursor hiding.
 
void cursorHideToggle ()
 Toggle cursor hiding.
 
void dimensions (const Window::Dim &v)
 Set dimensions.
 
void dimensions (int w, int h)
 Set dimensions.
 
void dimensions (int x, int y, int w, int h)
 Set dimensions.
 
void displayMode (Window::DisplayMode v)
 
void fullScreen (bool on)
 
void title (const std::string &v)
 Set title.
 
void vsync (bool v)
 
void decorated (bool b)
 
void append (WindowEventHandler &handler)
 
void prepend (WindowEventHandler &handler)
 
void remove (WindowEventHandler &handler)
 
AudioIOaudioIO ()
 
void configureAudio (double audioRate=44100, int audioBlockSize=512, int audioOutputs=-1, int audioInputs=-1)
 
void configureAudio (AudioDevice &dev, double audioRate=-1, int audioBlockSize=512, int audioOutputs=-1, int audioInputs=-1)
 
ParameterServerparameterServer ()
 
virtual void start ()
 
std::shared_ptr< OSCDomainoscDomain ()
 
std::shared_ptr< AudioDomainaudioDomain ()
 
std::shared_ptr< OpenGLGraphicsDomaingraphicsDomain ()
 
std::shared_ptr< SimulationDomainsimulationDomain ()
 
std::shared_ptr< GLFWOpenGLWindowDomaindefaultWindowDomain ()
 

Public Attributes

StandardWindowAppKeyControls stdControls
 
std::shared_ptr< GLFWOpenGLWindowDomainmDefaultWindowDomain
 
std::shared_ptr< OSCDomainmOSCDomain
 
std::shared_ptr< AudioDomainmAudioDomain
 
std::shared_ptr< OpenGLGraphicsDomainmOpenGLGraphicsDomain
 
std::shared_ptr< SimulationDomainmSimulationDomain
 

Protected Member Functions

void initializeDomains ()
 

Protected Attributes

std::vector< std::shared_ptr< AsynchronousDomain > > mDomainList
 
std::stack< std::shared_ptr< AsynchronousDomain > > mRunningDomains
 

Detailed Description

Simple App class.

Definition at line 29 of file al_App.hpp.

Member Function Documentation

◆ created()

bool al::App::created ( )

Whether window has been created providing a valid graphics context

◆ displayMode()

void al::App::displayMode ( Window::DisplayMode  v)

Set display mode; will recreate window if different from current

◆ fullScreen()

void al::App::fullScreen ( bool  on)

This will make the window go fullscreen without borders and, if posssible, without changing the display resolution.

◆ vsync()

void al::App::vsync ( bool  v)

Set whether to sync the frame rate to the monitor's refresh rate


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