|
TSharedState & | state () |
|
void | start () override |
|
std::string | name () |
|
virtual void | prepare () |
| prepares domains and configuration More...
|
|
void | registerDynamicScene (DynamicScene &scene) |
|
Graphics & | graphics () override |
|
Window & | defaultWindow () override |
|
Viewpoint & | view () override |
|
Pose & | pose () override |
|
Lens & | lens () override |
|
Nav & | nav () override |
|
NavInputControl & | navControl () override |
|
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 () |
|
void | fps (double f) |
|
Keyboard & | keyboard () |
| Get current keyboard state.
|
|
Mouse & | mouse () |
| Get current mouse state.
|
|
double | aspect () |
| Get aspect ratio (width divided by height)
|
|
bool | created () |
|
Window::Cursor | cursor () |
| Get current cursor type.
|
|
void | cursor (Window::Cursor v) |
| Set cursor type.
|
|
bool | cursorHide () |
| Whether the cursor is hidden.
|
|
void | cursorHide (bool v) |
| Set cursor hiding.
|
|
Window::Dim | dimensions () |
| Get current dimensions of window.
|
|
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.
|
|
Window::DisplayMode | displayMode () |
| Get current display mode.
|
|
void | displayMode (Window::DisplayMode v) |
|
bool | enabled (Window::DisplayMode v) |
| Get whether display mode flag is set.
|
|
bool | fullScreen () |
| Get whether window is in fullscreen.
|
|
void | fullScreen (bool on) |
|
const std::string & | title () |
| Get title of window.
|
|
void | title (const std::string &v) |
| Set title.
|
|
bool | visible () |
| Get whether window is visible.
|
|
bool | vsync () |
| Get whether v-sync is enabled.
|
|
void | vsync (bool v) |
|
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 | decorated (bool b) |
|
void | cursorHideToggle () |
| Toggle cursor hiding.
|
|
void | append (WindowEventHandler &handler) |
|
void | prepend (WindowEventHandler &handler) |
|
void | remove (WindowEventHandler &handler) |
|
AudioIO & | audioIO () |
|
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) |
|
ParameterServer & | parameterServer () |
|
std::shared_ptr< OSCDomain > | oscDomain () |
|
std::shared_ptr< AudioDomain > | audioDomain () |
|
std::shared_ptr< OpenGLGraphicsDomain > | graphicsDomain () |
|
std::shared_ptr< SimulationDomain > | simulationDomain () |
|
std::shared_ptr< GLFWOpenGLWindowDomain > | defaultWindowDomain () |
|
bool | hasCapability (Capability cap) |
|
bool | isPrimary () |
|
void | setRole (std::string role) |
|
template<class TSharedState>
class al::DistributedAppWithState< TSharedState >
Provides a class to ditribute synchronous state. By default, OSC blobs are used which are currently limited in size by the osc library, so it wil fail even with small states. If cuttlebone is available through al_ext/stateditribution you can have this app use cuttlebone instead.
If you are feeling adventurous, you can modify oscpack to allow larger packet buffer.
Currently, the state simulation domain is injected as a subdomain of the graphics domain i.e. it runs synchronously to graphics domain, calling onAnimate() within the graphics loop. This architure will allow running onAnimate() on a separate thrad if desired.
Definition at line 124 of file al_DistributedApp.hpp.