openframeworks/openFrameworks — Issue #930: ofSetupPerspective ofOrientation
Author: arturoc
Created: 2012-02-23 05:12:47+00:00
State: open

do we need the ofOrientation parameter in ofSetupPerspective?

it applies the rotation but if ofSetOrientation hasn't been called before passing the same orientation the results are not the expected.

to test it:

ofSetOrientation(OF_ORIENTATION_90_LEFT);
ofSetPerspective(ofGetWidth(), ofGetHeight(),OF_ORIENTATION_90_LEFT)

works as expected but calling only

ofSetPerspective(ofGetWidth(), ofGetHeight(),OF_ORIENTATION_90_LEFT)

applies a weird rotation cause the values of ofGetWidth(), ofGetHeight() are still the default ones

is there any case where it's useful to call setupPerspective with a different orientation that the window has?