본문 바로가기

그래픽스 관련

(OpenGL) Get Matrix

참조 위치: http://www.lighthouse3d.com/opengl/billboarding/index.php?billCheat

float modelview[16];
int i,j;

// save the current modelview matrix
glPushMatrix();

// get the current modelview matrix
glGetFloatv(GL_MODELVIEW_MATRIX , modelview);