openGL에서 List는 일련의 명령어들을 저장해 놓는 기능을 한다(고 한다)
glGenLists() 를 통해 배열을 만들고
glNewList() 와 glEndList() 사이의 gl 명령어들을 저장한다.
그리고 리스트는 glCallList()를 통해 사용한다.
New가 있으면 Delete가 있듯, glDeleteLists()로 생성한 List를 삭제하면 된다.
이러한 list에는 상태관련 명령어는 들어가지 못한다.
[링크 : http://ivis.cwnu.ac.kr/wiki/index.php/MultipleViewport]
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glCallList.xml]
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glCallLists.xml]
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glGenLists.xml] glGenLists
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glNewList.xml] glNewList
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glEndList.xml] glEndList
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glDeleteLists.xml]
glGenLists() 를 통해 배열을 만들고
glNewList() 와 glEndList() 사이의 gl 명령어들을 저장한다.
그리고 리스트는 glCallList()를 통해 사용한다.
New가 있으면 Delete가 있듯, glDeleteLists()로 생성한 List를 삭제하면 된다.
이러한 list에는 상태관련 명령어는 들어가지 못한다.
| Remember that you cannot place any client state commands in the display list, therefore,glEnableClientState(), glVertexPointer() and glNormalPointer() should not be included in the display list. [링크 : http://www.songho.ca/opengl/gl_displaylist.html] |
Some OpenGL commands cannot be stored in a display list; for example:
glColorPointer()
glDeleteLists()
glDisableClientState()
glFlush()
glGenLists()
glGet*()
glNormalPointer()
glPixelStore()
glReadPixels()
- Commands that set client state and commands that retrieve state values are executed immediately
- Calling glNewList within a glNewList / glEndList pair will generate an error
|
[링크 : http://ivis.cwnu.ac.kr/wiki/index.php/MultipleViewport]
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glCallList.xml]
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glCallLists.xml]
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glGenLists.xml] glGenLists
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glNewList.xml] glNewList
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glEndList.xml] glEndList
[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glDeleteLists.xml]
'Programming > openGL' 카테고리의 다른 글
| webGL (0) | 2011.09.24 |
|---|---|
| depth buffer (0) | 2011.09.02 |
| glutIdleFunc (0) | 2011.05.13 |
| openGL 좌표계 (0) | 2011.05.06 |
| openGL - DoF (2) | 2011.05.03 |