Join Pablo Colapinto for an in-depth discussion in this video Understanding OpenGL, part of Learning OpenGL.
The GL in OpenGL stands for graphics library. It specifies a protocol for rendering graphics on your computer screen. Provides an API for transferring data between your CPU and your GPU, or graphics processing unit. The ultimate goal of OpenGL is to effectively generate pixels on your screen. We call this administration of data transfer the OpenGL pipeline. And we'll be investigating that pipeline in this course. As an open standard, OpenGL works on a variety of platforms.
From PCs to Linux boxes to MacBooks. And various flavors of it, such as OpenGL|ES work on embedded devices like iPhones and Android tablets. WebGL, another flavor is a version of OpenGL that works online. To give us more flexibility as developers, we cover basic OpenGL best practices here, so that the lessons and techniques that you learn will be applicable to those other environments, and will help you generate all sorts of visual content on all sorts of devices.
So if you're looking for a way to program real-time interactive graphics on a variety of platforms and devices, learning OpenGL is essential. OpenGL has been undergoing constant revisions and updates and will likely continue to do so. As of this tutorial, OpenGL is on version 4. Your graphics card may be using versions 2 or 3. Add to that the various flavors of OpenGL used on phones and on the web, and what we have is a lot of ways of doing things. So what is the right way? This course is designed to clarify and highlight the correct way to render graphics using OpenGL.
The methods we cover work on OpenGL 2 and above, and represent the best practices for sending data to your graphics card for rending onto your screen. Ready? Let's get started.
- 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" ..