background preloader

References

Facebook Twitter

OpenFrameworks. This class contains all the information and functionality of a geometrical point.

openFrameworks

It can be a 2D or 3D point. ofPoint allow users perform graphical operations, set positions and more with a better organization and control. void ofPoint::ofPoint(float _x, float _y, float _z) void ofPoint::ofPoint(const ofPoint & pnt) bool ofPoint::operator! =(const ofPoint & pnt) ! After this dif=true; ofPoint ofPoint::operator*(const ofPoint & pnt) Considering two points p1=(p1x,p1y,p1z) and p2=(p2x,p2y,p2z) the operator * performs the arithmetic multiplication for each point component: p1p2=(p1xp2x,p1yp2y,p1zp2z) ofPoint ofPoint::operator*(const float & val) Considering two points p1=(p1x,p1y,p1z) and a value val the operator * performs the arithmetic multiplication between each point coordinate and the value: p1val=(p1xval,p1yval,p1zval) ofPoint & ofPoint::operator*=(const ofPoint & pnt) Considering two points p1=(p1x,p1y,p1z) and p2=(p2x,p2y,p2z) the operator *= performs the following operation: Now p=(-10,-5,3)

Vanderlin/ofxBox2d. OpenFrameworks. OpenFrameworks. Bool ofDoesHWOrientation() This returns whether your current device does hardware orientation.

openFrameworks

An iPhone, for instance, does hardware orientation, which you might notice when you tilt your iPhone to the side, hence ofDoesHWOrientation() would return true. Tilting your laptop to the side does not do the same thing, hence ofDoesHWOrientation() would return false. void ofExit(int status=0) This exits your app, causing it to quit. ofBaseApp ofGetAppPtr() Useful to access the variables in the main app from other classes. Int ofGetFrameNum() This returns the current frame as an int, counting up to (depending on your system) 2147483647 before rolling over back to 0. Float ofGetFrameRate() note: this code is implemented inside the ofAppRunner. int ofGetHeight() This gets the height of your ofApp window.

Double ofGetLastFrameTime() ofOrientation ofGetOrientation() int ofGetScreenHeight() note: this code is implemented inside the ofAppRunner. OpenFrameworks. Base class for all windowing classes.

openFrameworks

In OF we're extending this to create a different version of the default window in oF, like the ofAppEGLWindow or the ofAppGLFWWindow instances. For those interested in the under-the-hood details, you can always get a reference to the base graphics context from the ofAppBaseWindow, like getEGLContext() for those on Linux or getGLXContext() for those using GLFW. This is where your methods like setFullscreen() are implemented but other than that you're probably not going to be deeply interested in the ofAppBaseWindow since it's extended by every window system that you actually use (i.e. getX11Display() and getWin32Window()). void ofAppBaseWindow::disableSetupScreen() bool ofAppBaseWindow::doesHWOrientation() void ofAppBaseWindow::enableSetupScreen() int ofAppBaseWindow::getHeight() ofOrientation ofAppBaseWindow::getOrientation()

OpenFrameworks. Roxlu’s Presentations on SlideShare. OpenFrameworks 007 - GL. OpenFrameworks. Main Page - OF wiki. OpenFrameworks.