Join Pablo Colapinto for an in-depth discussion in this video Drawing geometric primitives, part of Learning OpenGL.
-In this lesson we're going to take a look…at a quick and easy way to get some content…into the window that we've created.…We're going to do this with something called…immediate mode, or the fixed function pipeline.…This is Legacy old-school OpenGL,…and it's actually been deprecated as a version three,…so we're not going to talk about it too much;…however, I do find it's useful for de-bugging…purposes, and it's really useful for you…to be able to recognize it when you see it.…So, let's get started.…
On line 27 we call a draw function.…In the draw function, we have four new GL…commands I'd like to introduce you to.…The first is GL begin.…GL begin takes as an argument a type…of GL primitive.…This could be triangles, lines, points.…We'll talk about the different options in a little bit.…GL color three f takes three floating point values,…one for the red, one for the green,…and one for the blue.…In this case on line 30 we're specifying…the color red.…
GL vertex three f takes three floating point values…that specify a coordinate, one for the x,…
- 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" ..