This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofEvents.cpp File Reference
#include "ofEvents.h"
#include "ofAppRunner.h"
#include "ofAppBaseWindow.h"
#include "ofLog.h"
#include "ofGraphics.h"
Namespaces | |
namespace | of |
namespace | of::priv |
Functions | |
void | ofSetFrameRate (int targetRate) |
float | ofGetFrameRate () |
float | ofGetTargetFrameRate () |
double | ofGetLastFrameTime () |
uint64_t | ofGetFrameNum () |
Get the number of frames rendered since the program started. | |
bool | ofGetMousePressed (int button) |
bool | ofGetKeyPressed (int key) |
int | ofGetMouseX () |
int | ofGetMouseY () |
int | ofGetPreviousMouseX () |
int | ofGetPreviousMouseY () |
bool | ofSendMessage (ofMessage msg) |
bool | ofSendMessage (std::string messageString) |
Function Documentation
◆ ofGetFrameNum()
uint64_t ofGetFrameNum | ( | ) |
Get the number of frames rendered since the program started.
- Returns
- the number of frames rendered since the program started.
◆ ofGetFrameRate()
float ofGetFrameRate | ( | ) |
◆ ofGetKeyPressed()
bool ofGetKeyPressed | ( | int | key | ) |
◆ ofGetLastFrameTime()
double ofGetLastFrameTime | ( | ) |
◆ ofGetMousePressed()
bool ofGetMousePressed | ( | int | button | ) |
◆ ofGetMouseX()
int ofGetMouseX | ( | ) |
◆ ofGetMouseY()
int ofGetMouseY | ( | ) |
◆ ofGetPreviousMouseX()
int ofGetPreviousMouseX | ( | ) |
◆ ofGetPreviousMouseY()
int ofGetPreviousMouseY | ( | ) |
◆ ofGetTargetFrameRate()
float ofGetTargetFrameRate | ( | ) |
◆ ofSendMessage() [1/2]
bool ofSendMessage | ( | ofMessage | msg | ) |
◆ ofSendMessage() [2/2]
bool ofSendMessage | ( | std::string | messageString | ) |
◆ ofSetFrameRate()
void ofSetFrameRate | ( | int | targetRate | ) |