관리 메뉴

Enjoy what you do!

OpenGL 3D 회전 본문

컴공 여러가지/OpenGL

OpenGL 3D 회전

쵸코맛 비비빅 2018. 4. 11. 12:51

https://skyfe79.gitbooks.io/opengl-tutorial/content/chapter9.html

void glRotatef( GLfloat angle, GLfloat x, GLfloat y, GLfloat z )

윈도우 창에서 z축 양의 방향은 화면에서 화면 밖방향(사람 방향). (그러니까 시계같은건 -1곱해서 회전해줘야 시계방향으로 돈다.)

Comments