From the course: Learning OpenGL
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Building an OpenGL project from scratch - OpenGL Tutorial
From the course: Learning OpenGL
Building an OpenGL project from scratch
I recommend for this course that you use CMake to automate the generation of your project files But, if you're having trouble using CMake, you can build your project from scratch. So, an Xcode for example, you wanna set your headers search paths to search in the exercise files include directory, the exercise files directory, and the exercise files/GLFW/include directory. You also need to make sure that you're linking to the correct libraries. You wanna make sure that you're linking to GLFW itself. GLFW will need to be built using CMake. so you'll need to CD into the GLFW directory, and build GLFW from there. You'll want to point to wherever GLU is installed on your system. And you'll need to link to the Cocoa OpenGL I/O kit, core foundation, and core video frameworks. If you're on a Windows machine, you need to make sure that you're linked to the GLU library and OpenGL 32.lib in addition to the GLFW library. Also make sure that your library search paths are set so that they search in…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.