As most of game programming is done - I read on this very site - in C/C++ I was wondering if there is any learning/studying material for C/C++ that would target specifically game programming.

I am not looking for material about "developing games" or "software architecture for games", but rather for material that uses "game programming" as the CONTEXT for introducing and illustrating C/C++ features, idioms, programming techniques, etc...

With a simile: think to the GOF book on design patterns. There, they used "developing a text-editor" as a context for introducing design patterns, but the book is most definitively not a book about "developing text-editors".

EDIT: The book should contain code examples that are not dependant on proprietary technologies (e.g.: it should use OpenGL rather than DirectX, a dialect of C known to gcc rather than needing a specific commercial compiler, etc...)

Thanks in advance for your time and advice!

PS: My background: I am a programmer with a solid experience in OO scripting languages and only some experience in C and Assembler (on AVR microcontrollers), so I am thinking to mid-to-advanced level material, rather than tutorials for beginners, although it might be interesting to take a look to the latter ones if nothing else is available.

closed as off-topic by Josh May 9 '16 at 16:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about "how to get started," "what to learn next," or "which technology to use" are discussion-oriented questions which involve answers that are either based on opinion, or which are all equally valid. Those kinds of questions are outside the scope of this site. Visit our help center for more information." – Josh
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 6 down vote accepted

There's Beginning C++ Through Game Programming..I found it to be a good book. All the examples it works on are small, text-based games.

If you're talking more advanced, I haven't seen anything like that.

  • Reading Amazon's reviews it looks like I'm looking for something fairly more advanced. Yet, +1 because this is exactly the kind of book that I am looking for. – mac Jun 29 '11 at 9:19
  • @mac: Well, which is it? You want a beginner's book that teaches C++, or something advanced? – BlueRaja - Danny Pflughoeft Jul 1 '11 at 21:28
  • 1
    @BlueRaja I'm pretty sure he's looking for the equivalent of an advanced C++ book with a gamedev setting. – The Communist Duck Jul 2 '11 at 9:53
  • @BlueRaja - Read the question again (last paragraph!) ;) – mac Jul 2 '11 at 10:28

There's C++ For Game Programmers but maybe Game Coding Complete will be a better match (although it does not focus on C++ only but there are some good chapters on C++ specific problems).

  • 1
    On one hand, I recommend Game Coding Complete hugely. Absolutely great book on a number of topics. However, the OP is looking for a book where the focus is C++ with a gamedev context, rather than the other way around which GCC is. – The Communist Duck Jun 29 '11 at 10:31
  • From what I understand from the Amazon reviews, C++ for game programmers seem to be a good fit (+1). Game coding complete - OTOH - seems a bit off my priorities right now, but I keep on reading (here and elsewhere) that it's a very good book, so maybe not now but in a little while... :) – mac Jun 29 '11 at 13:00

I really enjoyed this book

this starts with windows programming then direct x in 2d then 3d.

a brilliant book to follow Beginning C++ Through Game Programming

  • Thanks for this. I did not specify this in my original question (I am going to do it now!) but a book which is tightly coupled to Windows is a no-go for me, as my development platform is GNU/Linux. – mac Jun 29 '11 at 12:52
  • @mac in that case check out the authors other books the guy programs in a whole bunch of stuff – Skeith Jun 29 '11 at 13:01

Here you go: 20 online lessons. It starts from "zero", but you can skip/skim the beginner parts. Also perhaps the school offers more advanced material.

Introduction to C++ with Game Development

Learning C++ in the context of game development

Welcome to the first article of Learning C++ tutorial series, provided by the IGAD program of the NHTV University! These tutorials are designed to take you from zero to block 3 entry level of IGAD's program in a somewhat smooth fashion. We start at the absolute basics: all that you need to get started is some decent equipment, a fair bit of time, and quite a bit of dedication.


A quick blurb about us: IGAD stands for "International Game Architecture & Design". We are a Dutch accredited course for game development, ran almost exclusively by teachers with game industry experience. We started in 2005, and so far, it's awesome. About the authors


This tutorial is written by Jacco Bikker, Brian Beuken, Nils Deslé, and Carlos Bott. Look us up on the internet to find out about we did and still do related to games development.

  • 1
    With no discussion of templates, inheritance, virtual functions, or operator overloading, I would be hard-pressed to call that an introduction to C++. It's an introduction to the absolute basics of programming. – user744 Jul 1 '11 at 23:48
  • @Joe, @Leftium - I understand the rationale behind the downvote, yet the material (although being for ultimate noobs and so being of little if no use for me) takes precisely the approach that I asked for. +1 for me, as other people looking for something in the line of what I asked could find this answer useful. – mac Jul 2 '11 at 10:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.