Skip to main content
gamedev.net
🔒 Locked

API programming?

Started by DaveE9th Jul 19, 2003 at 3:22 AM 1 replies 450+ views
Original Post
DaveE9th
DaveE9th
I''m presently reading the book, "Windows Programming 5th Edition" by Charles Petzold. Is this the book I should be reading to create games. I''m a bit confused on the API. Can you just program video games directly from the API? I believe the answer is yes, but am not sure. Are most 3D video games programmed this way? If not, then how? In the book, Charles Petzold shows you how to make a few lines, curves, etc, etc...but how does that turn into a complete video game down the road. It apparently takes a ton of work just to make a few lines and curves. So how do developers create games so fast? Am I on the right track with this book or should I be reading another instead (or with this one)? Also, the book is written in C, what about C++? Is it ok for the book to focus on the C language? I''m abit confused on all this. Sure would appreciate a few pointers. Thanks, Dave
VC++ 6.0
JohnyBoy
JohnyBoy
Hahahah I just downloaded that book and am also reading it. The examples are in C but that doesn''t matter because most of the stuff...no all the stuff still applies to C++.
Game programming these days is all done using the windows API like directX and openGL but before you can tackle these you should learn the windows API. Like your doing now i guess .
A direct answer to your question is yes you can program video games directly from the API and how do developers create games so fast well firstly they have a team of programmers and also they use alot of already created reusable objects.

I hope this has anwered your question.
Uberapan
Uberapan
I would recommend you finish that book, or at least read the most important parts of it. If you have no idea of how the windows API works, you cannot make games under Windows. Then, you have to learn a 3d API, such as OpenGL or DirectX.

But before you do, make sure you have a good grasp of the Win API and c/c++. At least make sure you understand chapters 1-7 of Petzold''s book.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.