Join Pablo Colapinto for an in-depth discussion in this video Generating Vertex Array Objects, part of Up and Running with OpenGL.
-The shader we've built and compiled in the last…lesson applies to every vertex that we're going…to send to the GPU.…There are still some steps to let the GPU know…exactly where our data is and how we expect it to handle it.…We exchange data with the GPU with vertex buffer objects.…We exchange data with the GPU about where those…buffer objects are with vertex array objects.…
We tell the GPU how to navigate that data…with vertex attribute pointers.…Let's take a look at how this all works.…The vertex array object allows us to find a…particular number, a "glu int" to a whole set…of data on the GPU.…On the CPU side, we can refer to a whole buffer…of data on the GPU by just binding this particular number.…The vertex array object is a number which represents…a whole set of vertex data.…
Here on lines 29 to 40, we're using our GL…extension wrangler "glu" to make sure that…we're calling the correct GL gen vertex arrays…and GL bind vertex array methods appropriate…to our particular platform.…On a Mac, we'll typically want to call GL gen…
- What is OpenGL?
- Setting up an OpenGL workflow
- Creating a window with GLFW
- Working with geometric primitives
- Rotating, translating, and scaling
- Understanding matrix transformations
- Creating mesh data structures
- Buffering mesh data
- Getting mouse and keyboard input
Skill Level Intermediate
Q: Why am I getting errors saying I don’t have GLEW installed when I try to create the Xcode projects with Cmake?
1) Download, Install, and Run Xcode
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install glew
./bootstrap && make && make install
brew install cmake
cd Exercise Filesmkdir xcodecd xcodecmake -G "Xcode" ..