Skip to content

Instantly share code, notes, and snippets.

@kezzardrix
Created February 4, 2017 06:08
Show Gist options
  • Select an option

  • Save kezzardrix/8b688d17a4ca997925f99921b5d4361c to your computer and use it in GitHub Desktop.

Select an option

Save kezzardrix/8b688d17a4ca997925f99921b5d4361c to your computer and use it in GitHub Desktop.
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