8-bit BMP in Directdraw
I''ve been reading Andre''s TOTWGPG, and I''ve (finally) reached the point where he "explains" how to load in a bitmap. The explanation he gives on loading bitmaps (and setting up the clipper) is horrible! He only SKIMS across the details, and when you see it in code, it hardly makes any sense (to me at least). So, does anyone know of websites/tutorials that THOROUGHLY teach how to load in bitmaps (and the clipper, if at all possible)? This has really chapped my hide
There are three types of people in the world; those who can count, and those who can't.
Well, the explanation is actually really good. Are you at the part of the book where he just shows you the function and leaves it at that? Well, I have good news! Later in the book when he starts describing his game engine, he explains everything thoroughly! Maybe you should look at this part. I don''t know why he does this; I guess so he can get into better detail on the other things involved with BMP''s.
Just to let you know, I have "Windows Game Programming For Dummies" and I hear the books are very similar.
-ALex
Just to let you know, I have "Windows Game Programming For Dummies" and I hear the books are very similar.
-ALex
You can convert those .bmp files into a linear raw format by using paint shop pro at www.jasc.com. This way you need to know the size of the graphic (no problem) and how to integrate RGB values into your 8 bit palette. or use PCX it's 100% easier to make a loader for than bitmap files.
The way Mr. Lamothe explains loading bitmaps is very detailed and he did skim over some stuff due to a size limitation (look in the CD and you'll se the extra chapters)
.. but overall it is a very informative book.
Edited by - goofprog on June 14, 2000 9:53:39 PM
The way Mr. Lamothe explains loading bitmaps is very detailed and he did skim over some stuff due to a size limitation (look in the CD and you'll se the extra chapters)
.. but overall it is a very informative book.
Edited by - goofprog on June 14, 2000 9:53:39 PM
I have Window Game Programming for Dummies as well- what pages does he thoroughly describe it?
There are three types of people in the world; those who can count, and those who can't.
There are three types of people in the world; those who can count, and those who can't.
pages 201 - 211 or even better just look at his source code and print it out for those chapters. He explains the structures on pages 204-211. Do I really use the code?.. nope.. I used the code from Teach Yourself DirectX7 in 21 Days which is cool. It loads a bitmap from a file and converts it to the desired bit depth. It is automatic for any bit depth. But then again.. creating a bitmap loader is a great learning experience and I guess that is what LaMothe wanted to explain to the readers.
Edited by - goofprog on June 15, 2000 9:11:04 AM
Edited by - goofprog on June 15, 2000 9:11:04 AM
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement