Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good books or tutorials for beginning Direct X with c++ [closed]

I'm pretty familiarity with c++. I'v made a few games like tetris and solitaire with it. But what I would really like is some nice textured graphics for those games :-p GDI just isn't doing it for me anymore.

Really, all I would need to know is:

  • DX scene initialization
  • making something simple like a round rectangle and basic shapes
  • ability to move those shapes in X and Y
  • add basic bitmap texture
  • dispose of the objects

anything that would cover these concepts would be really useful Thanks

like image 469
jmasterx Avatar asked Sep 20 '09 20:09

jmasterx


People also ask

What is the difference between DirectX and OpenGL?

OpenGL is a purebred graphics API, and this means that it doesn't deal with anything other than 2D and 3D graphics. DirectX, on the other hand, is a collection of graphics, audio, networking, and other hardware APIs that all work together.

What is DirectX in game programming?

DirectX is an application program interface (API) for creating and managing graphic images and multimedia effects in applications such as games or active Web pages that will run in Microsoft's Windows operating systems.


3 Answers

This is a good tutorial. I've started with it and it was helpful. That is not a book, but good enough tutorial with step-by-step explanations.

like image 127
Kirill V. Lyadvinsky Avatar answered Oct 18 '22 08:10

Kirill V. Lyadvinsky


I've got a copy of Beginning DirectX 10 Game Programming. I haven't done much with it (lack of time, mostly), but it is well-written and covers the basic concepts step-by-step and has the complete code you need to accomplish the tasks in the chapters.

I created a small 2D game (Othello for a school project) using PNGs loaded at run-time, and I could not have done it without the book (I am a complete beginner in Windows and DirectX programming :D).

like image 2
Cameron Avatar answered Oct 18 '22 07:10

Cameron


I would really suggest you to take a look at the DirectX SDK. There are tutorials on how to do all the basic stuff, like initializing a scene, simple primitives, transforming them and texturing them. Once you feel comfortable with that there's a LOT more to dig into, e.g. like how vertex, pixel and geometry shaders work.

like image 2
Tchami Avatar answered Oct 18 '22 06:10

Tchami