Header files for Tricks of the game programming gurus

Started by
6 comments, last by heavymetalman 20 years, 7 months ago
I have had the Tricks of the game programming gurus book for a long time and it has just been sitting on my shelf because I lack some header files it needs and for some reason they did not include them with the cd. I am missing graph.h and also a lot of the header files graph.h needs. I am using microsoft visual c++ 6.0 enterprise edition. If anyone knows where I can get all of the header files I need please tell me. I have seached the internet a few times and i found graph.h then it needed a different file so I went and got it then that file needed a file... so a collection of all of the header files would be great.
Advertisement
Check the site. A problem occured with OpenGL Game programming where sometimes the source code was jsut a bunch of empty folders. Sometimes they do make mistakes.

Scott Simontis
e-mail:ageofscott@comcast.net
AIM:ssimontis
Scott SimontisMy political blog
Thanks but I checked the site but this book is old and is not even on the site. I think it was published in 1994 so it is really old. Im going to buy the newest version of the book, soon anyway but this book is still good for some basic stuff like input devices etc. And I wanted to make some old style games anyway.
Try finding a copy of Borland Turbo C 3.1, I believe it has those headers.

(Someone gave me a copy without the CD, I just ripped out the VGA registers page and tossed the rest. LaMothe pisses me off )
I found a copy of turbo c but i dont think it is 3.1 I think it is 2 something but it had a file called graphics.h but that doesn''t work. What about LeMothe do you hate so much?
The book states that it uses Microsoft C compiler. The Worst compiler I have ever used. When I used the book I used Borland C++ 5.1 (Not Borland Builder V5). you have to do the following:

- chapters 3 and 4 uses the graph.h header so you could use the built in line and lineto functions. if you really want to compile, you have to change the code of these functions into their equivilant in the Borland Compiler that are located in the graphics.h header.

- Skip to Chapter 5 and you will see that the examples will not use the line and lineto functions. they will use a custom header instead that contains code from the book. so you will only need graph.h to switch the 320x200x265 graphics mode (13h mode). just change the code that does that with the following:

// Code that switches to 13h mode
asm mov ah,0
asm mov al,0x13
asm int 0x10

(I think you need to put ';' after each statement but I forgot if it is necessary. the asm{ } or _asm{ ) wont work)

// Code that switches back to text mode
asm mov ah,0
asm mov al,0x3
asm int 0x10

The reason why the examples wont work with VC++ is that it does not allow direct memory manipulation because it runs on protected mode. so your stuck with the borland C++ choice. You can edit your code on VC++ and compile on BC++. Oh yes one more thing, you have to change some other things like the inp and outp functions and some far declerations. If you wish I can send you a dummy program that contains the changes. I spent a lot of time to find the best changes.

you will enjoy the book, it is one of the best to learn the basics of Game programming.




[edited by - Master Mofo on September 3, 2003 4:55:42 AM]
Whatever
Thanks Master Mofo, that helps a lot and the dummy program would be appreciated.
If you need my e-mail: heavymetalman75672@yahoo.com

[edited by - heavymetalman on September 2, 2003 3:32:17 PM]
I have edited my post, I wrote the wrong Chapter numbers. but they are fixed now.

I will try to send the Dummy Program today.
Whatever

This topic is closed to new replies.

Advertisement