reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

ofAppNoWindow.h
Go to the documentation of this file.
1#pragma once
2
3#include "ofAppBaseWindow.h"
4
5class ofBaseApp;
7
9
10public:
13
14 static bool doesLoop(){ return false; }
15 static bool allowsMultiWindow(){ return false; }
16 static void loop(){};
17 static bool needsPolling(){ return false; }
18 static void pollEvents(){};
19
20 void run(ofBaseApp * appPtr);
21
22 static void exitApp();
23 void setup(const ofWindowSettings & settings);
24 void update();
25 void draw();
26
27 glm::vec2 getWindowPosition();
28 glm::vec2 getWindowSize();
29 glm::vec2 getScreenSize();
30
31 int getWidth();
32 int getHeight();
33
35 std::shared_ptr<ofBaseRenderer> & renderer();
36
37private:
38 int width, height;
39
40 ofBaseApp * ofAppPtr;
41 std::unique_ptr<ofCoreEvents> coreEvents;
42 std::shared_ptr<ofBaseRenderer> currentRenderer;
43};
Definition ofAppBaseWindow.h:21
Definition ofAppNoWindow.h:8
static bool needsPolling()
Definition ofAppNoWindow.h:17
static void loop()
Definition ofAppNoWindow.h:16
glm::vec2 getScreenSize()
Definition ofAppNoWindow.cpp:292
int getHeight()
Definition ofAppNoWindow.cpp:303
void run(ofBaseApp *appPtr)
std::shared_ptr< ofBaseRenderer > & renderer()
Definition ofAppNoWindow.cpp:313
static void pollEvents()
Definition ofAppNoWindow.h:18
ofAppNoWindow()
Definition ofAppNoWindow.cpp:215
void setup(const ofWindowSettings &settings)
Definition ofAppNoWindow.cpp:225
ofCoreEvents & events()
Definition ofAppNoWindow.cpp:309
static bool doesLoop()
Definition ofAppNoWindow.h:14
void draw()
Definition ofAppNoWindow.cpp:264
glm::vec2 getWindowPosition()
Definition ofAppNoWindow.cpp:282
glm::vec2 getWindowSize()
Definition ofAppNoWindow.cpp:287
~ofAppNoWindow()
Definition ofAppNoWindow.h:12
static bool allowsMultiWindow()
Definition ofAppNoWindow.h:15
static void exitApp()
Definition ofAppNoWindow.cpp:269
int getWidth()
Definition ofAppNoWindow.cpp:298
void update()
Definition ofAppNoWindow.cpp:231
Definition ofBaseApp.h:14
The base renderer interface.
Definition ofGraphicsBaseTypes.h:279
Definition ofEvents.h:326
Definition ofWindowSettings.h:38