Join Pablo Colapinto for an in-depth discussion in this video Creating a context and getting version info, part of Learning OpenGL.
In this lesson, we'll examine how to us GLFW…to initialize an open GL context,…and then, how to query OpenGL to find out…what version of it is running on your graphics card.…OpenGL itself is strictly a graphics API.…It doesn't include any commands…for opening or closing a window on your platform's desktop.…That is, it requires us to establish a context.…So, what is a GL context?…A GL context is a platform-specific object,…which contains and enables OpenGL's functionality.…
This varies from platform to platform,…which is why we use libraries such as GLFW…for managing window contexts.…We can also think of OpenGL context as a window.…You can have many windows on your screen,…so we need to pick one to be the current context.…That's pretty much…all we need to know right now to get started.…So let's take a look at the code.…On line 20, we include the standard library.…This is something that we need to use in Visual Studio.…
On lines 21 and 22, we include something called Glue.…Glue is something we're going to talk about in a little bit,…
- 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" ..