Can anybody refer me some pdf or ebook that i should follow for basic 2d programming and texture ,shaders and other gaming elements details in depth.By which i can easily get through the 2d game programming.

Thanks, Balraj.

  • \$\begingroup\$ What platform do you want to make games for ? \$\endgroup\$
    – dbomb101
    Commented Jan 16, 2012 at 13:11
  • \$\begingroup\$ I want to use them on Mac os x or later with ios programming \$\endgroup\$
    – balraj
    Commented Jan 16, 2012 at 13:18
  • 2
    \$\begingroup\$ The type of book you choose to start with might be affected by your current programming experience and platform preferences, especially which languages you're comfortable with. For instance if you were strong in C# I'd recommend that you to start with XNA. \$\endgroup\$
    – Nic Foster
    Commented Jan 16, 2012 at 15:43

1 Answer 1


Since "2D Programming" is really now just 3D Programming, but with an orthographic viewpoint, what you need to look for is how to draw 2D things in 3D, using OpenGL.

When I did this I found the websites out there were often incomplete, too old or were written for the "wrong" OpenGL.

And that's what you need to choose first - do you want to write things on a Mac, or do you want to write things on an iOS device? Don't try to do both at once - for your first attempt don't even think about porting your code, stay focused on one platform and learn it. If you want to use an iOS device which OpenGL do you want to use? OpenGL ES 1.1 or OpenGL ES 2.0? If you don't understand the difference there's plenty of answers on this site.

Once you've decided all of that, just start Googling for things like "OpenGL orthographic projection" and "2D drawing in OpenGL" etc and find a site that makes sense to you. The key words are "orthographic projection". Also buy the correct OpenGL book which would be a great follow-up question - "What OpenGL book should I get for learning OpenGL "


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .