Listen and read

Step into an infinite world of stories

  • Listen and read as much as you want
  • Over 400 000+ titles
  • Bestsellers in 10+ Indian languages
  • Exclusive titles + Storytel Originals
  • Easy to cancel anytime
Subscribe now
Details page - Device banner - 894x1036

OpenGL Game Development By Example

Language
English
Format
Category

Non-Fiction

Design and code your own 2D and 3D games efficiently using OpenGL and C++

About This Book

• Create 2D and 3D games completely, through a series of end-to-end game projects

• Learn to render high performance 2D and 3D graphics using OpenGL

• Implement a rudimentary game engine using step-by-step code

Who This Book Is For

If you are a prospective game developer with some experience using C++, then this book is for you. Both prospective and experienced game programmers will find nuggets of wisdom and practical advice as they learn to code two full games using OpenGL, C++, and a host of related tools.

What You Will Learn • Set up your development environment in Visual Studio using OpenGL

• Use 2D and 3D coordinate systems

• Implement an input system to handle the mouse and the keyboard

• Create a state machine to handle complex changes in the game

• Load, display, and manipulate both 2D and 3D graphics

• Implement collision detection and basic physics

• Discover the key components needed to complete a polished game

• Handle audio files and implement sound effects and music

In Detail

OpenGL is one of the most popular rendering SDKs used to develop games. OpenGL has been used to create everything from 3D masterpieces running on desktop computers to 2D puzzles running on mobile devices. You will learn to apply both 2D and 3D technologies to bring your game idea to life.

There is a lot more to making a game than just drawing pictures and that is where this book is unique! It provides a complete tutorial on designing and coding games from the setup of the development environment to final credits screen, through the creation of a 2D and 3D game.

The book starts off by showing you how to set up a development environment using Visual Studio, and create a code framework for your game. It then walks you through creation of two games–a 2D platform game called Roboracer 2D and a 3D first-person space shooter game–using OpenGL to render both 2D and 3D graphics using a 2D coordinate system. You'll create sprite classes, render sprites and animation, and navigate and control the characters. You will also learn how to implement input, use audio, and code basic collision and physics systems. From setting up the development environment to creating the final credits screen, the book will take you through the complete journey of creating a game engine that you can extend to create your own games.

Style and approach

An easy-to-follow guide full of code examples to illustrate every concept and help you build a 2D and 3D game from scratch, while learning the key tools that surround a typical OpenGL project.

© 2016 Packt Publishing (Ebook): 9781783288205

Release date

Ebook: 8 March 2016

Others also enjoyed ...

  1. Python Computer Programming: Simple Step-By-Step Introduction to the Python Object-Oriented Programming. Quick Start Guide for beginners. Alex Campbell
  2. Java Programming Simplified: Fundamental of Object-Oriented Language and Addition of a Guide on the C++ Language Eddy Romansky
  3. GROKKING ALGORITHMS: A Comprehensive Beginner's Guide, Tips and Tricks, Simple and Effective methods and Advanced methods to learn and use Grokking Algorithms and Data structures for Programming Eric Schmidt
  4. Programming Interviews For Dummies Eric Butow
  5. Deep Learning: Guide to Machine Learning and Artificial Intelligence David Feldspar
  6. Coders: Who They Are, What They Think and How They Are Changing Our World Clive Thompson
  7. Data Science John D. Kelleher
  8. The Technological Singularity Murray Shanahan
  9. How Smart Machines Think Sean Gerrish
  10. YouTube Channels For Dummies: 2nd Edition Rich Murphy
  11. The Encyclopedia of Aerodynamics Frank Hitchens
  12. 100 Circuits - Audio 1 Newton C. Braga
  13. 101 Amazing Facts about Chocolate Jack Goldstein
  14. Coding for Kids Ages 9-15: Simple HTML, CSS and JavaScript lessons to get you started with Programming from Scratch Bob Mather
  15. 3D Printing John M. Jordan
  16. Getting Gamers: The Psychology of Video Games and Their Impact on the People who Play Them Jamie Madigan
  17. Console Wars: Sega, Nintendo, and the Battle that Defined a Generation Blake J. Harris
  18. Foundation Isaac Asimov
  19. Blood, Sweat, and Pixels: The Triumphant, Turbulent Stories Behind How Video Games Are Made Jason Schreier
  20. Other Minds: The Octopus and the Evolution of Intelligent Life Peter Godfrey-Smith
  21. The Hitchhiker's Guide to the Galaxy: The 42nd Anniversary Edition of Douglas Adams's International Bestseller Douglas Adams
  22. Norse Mythology Neil Gaiman
  23. Energy and Civilization: A History Vaclav Smil
  24. The Red Thread: Buddhist Approaches to Sexuality Bernard Faure
  25. Electronic Health Records for Dummies Anita Samarth
  26. Virtual Reality Samuel Greengard
  27. Solutions Architect's Handbook: Kick-start your career as a solutions architect by learning architecture design principles and strategies Saurabh Shrivastava
  28. Collaborative Society Dariusz Jemielniak
  29. Three Stones Make a Wall: The Story of Archaeology Eric H. Cline
  30. Future Minds: The Rise of Intelligence, from the Big Bang to the End of the Universe Richard Yonck
  31. Inner City Pressure: The Story of Grime Dan Hancox
  32. In Pain: A Bioethicist’s Personal Struggle with Opioids Travis Rieder
  33. Why Buddhism is True: The Science and Philosophy of Meditation and Enlightenment Robert Wright
  34. Seveneves Neal Stephenson
  35. The Obsoletes: A Novel Simeon Mills
  36. The Office and Philosophy: Scenes from the Unexamined Life J. Jeremy Wisnewski
  37. Science, Religion, and Ethics in Twenty-First Century Biomedical Discoveries: Which Way Is Forward? Kevin FitzGerald
  38. The History of the Future: Oculus, Facebook, and the Revolution That Swept Virtual Reality Blake J. Harris
  39. Doctor Sax Jack Kerouac
  40. Driven: The Race to Create the Autonomous Car Alex Davies
  41. We Had a Little Real Estate Problem: The Unheralded Story of Native Americans & Comedy Kliph Nesteroff
  42. EVOLUTION OF CANINE SOCIAL BEHAVIOR, 2ND EDITION Roger Abrantes
  43. Arguing with Idiots: How to Stop Small Minds and Big Government Glenn Beck