Vertex Buffer Object. Slides are adapted from:

Vertex Buffer Object Slides are adapted from: http://www.songho.ca/opengl/gl_vbo.html http://www.opengl.org/wiki/Vertex_Buffer_Objects CPU/Client D...
0 downloads 1 Views 77KB Size
Vertex Buffer Object Slides are adapted from: http://www.songho.ca/opengl/gl_vbo.html http://www.opengl.org/wiki/Vertex_Buffer_Objects

CPU/Client

Data for rendering

Main Memory

GPU/Server

Video Memory

Host to the main application

Host to the rendering task

Rendering speed depends on how fast data (vertices and vertex attributes) can be sent to the GPU. OpenGL tries to minimize the number of function calls needed for data transfer and rendering Display List GlBegin-GlEnd pair Vertex Array

Vertex Buffer Object

Immediate mode: using GlBegin() and GlEnd() What is the most basic way to render a model? glBegin(GL_TRIANGLES); for(int i=0; i

Suggest Documents