Learn OpenGL
This is the code repository for Learn OpenGL, published by Packt.
Beginner's guide to 3D rendering and game development with OpenGL and C++
What is this book about?
Learn OpenGL is your one-stop reference guide to get started with OpenGL and C++ for game development. From setting up the development environment to getting started with basics of drawing and shaders, along with concepts such as lighting, model loading, and cube mapping, this book will get you up to speed with the fundamentals.
This book covers the following exciting features:
- Set up GLFW and GLEW on Windows and macOS with absolute, relative Linking
- Set up SDL and SFML on your system using absolute and relative Linking
- Draw using the simple shaders
- Create a camera and learn to populate your game world with objects
- Learn about color and lighting concepts to create an amazing game world
If you feel this book is for you, get your copy today!
Instructions and Navigations
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
Following is what you need for this book: This book is targeted towards anyone and everyone who is interested in creating games, learning how game engines work and most importantly for anyone who is interested in learning OpenGL. The ideal reader for this book would be anyone with a passion for learning game development or looking out for an OpenGL reference guide. The skills that you'll learn in this book will be applicable to all your game development needs. You'll require a strong foundation in C++ to understand and apply the concepts of this book.
With the following software and hardware list you can run all code files present in the book (Chapter 1-7).
Software and Hardware List
Chapter | Software required | OS required |
---|---|---|
1-7 | Visual Studio 2017 | Windows |
1-7 | Xcode | Mac |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Related products
Get to Know the Author
Frahaan Hussain is the CEO of Sonar Systems which is the world leader in educational material for the game engine Cocos2d-x, one of the best and the most popular game engines in the world. With years of experience in programming and running an online education platform (Sonar Learning), he enjoys to help and support new programmers like you. He is also a University Lecturer teaching a variety of topics in Games Programming from Games Design to OpenGL Shader Programming.
Other books by the authors
Suggestions and Feedback
Click here if you have any feedback or suggestions.