As I''m still working on my DirectX wrapper I''ve came to the point that I can start with loading bitmaps. I use "Tricks of the Windows Game Programming Gurus" and LaMothe''s bitmap code is incorrect. So does anyone has a good tutorial on howto load bitmaps. I want a tutorial because that way it''s easier for me to later load JPG/GIF/TGA/etc. as I already know a little.
My wrapper also supports 8 bpp modes. But what is the best way of storing the palette? Get the palette from the first loaded bitmap or have a special function to load it from a .PAL file? If I choose the last method, what is the best way of saving this file? Binary with a struct or textfile?
Thx,
Sand Hawk
----------------
-Earth is 98% full. Please delete anybody you can.
My Site
Loading a palette and bitmaps
I think, therefore I am. I think? - "George Carlin"
My Website: Indie Game Programming
My Twitter: https://twitter.com/indieprogram
My Book: http://amzn.com/1305076532
Not really what I was looking for. I was more looking for a tutorial on manually reading the bitmap file using streams and read it in. That code can be altered to read JPG/GIF/TGA/etc.
Sand Hawk
----------------
-Earth is 98% full. Please delete anybody you can.
My Site
Sand Hawk
----------------
-Earth is 98% full. Please delete anybody you can.
My Site
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement