Created
February 4, 2017 06:08
-
-
Save kezzardrix/8b688d17a4ca997925f99921b5d4361c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ofPushView(); | |
| ofPushMatrix(); | |
| ofSetMatrixMode(OF_MATRIX_PROJECTION); | |
| ofLoadIdentityMatrix(); // glLoadIdentity()じゃダメだよ | |
| ofMultMatrix(mCam.getProjectionMatrix()); | |
| ofSetMatrixMode(OF_MATRIX_MODELVIEW); | |
| ofLoadIdentityMatrix(); | |
| ofMultMatrix(mCam.getModelViewMatrix()); | |
| ofDrawBox(0,0,0,100,100,100); | |
| ofPopMatrix(); | |
| ofPopView(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment