Windows GDI vs. own bitmap loader
I am currently trying to teach myself game programming by reading. I am currently using two books, Isometric Game Programming with DirectX and Tricks of the Windows Game Programming Gurus. Tricks of the Windows Game Programming Gurus suggest writing your own bitmap loader as opposed to using the Windows GDI version that Isometric GPWDX uses. Which is more common? Which do you think would work more effectively, or be considered better programming practice?
-----------------------------Weeks of programming can save you hours of planning.There are 10 kinds of people in this world-- those who understand binary and those who don't.
This is a personal opinion issue. If you were to write your own loader, it would be a good experience at understanding how it works. However, why reinvent the wheel; that is what APIs are for. The key issue here is that whichever method you choose, will not affect the performance of your game, as bitmaps are not loaded during gameplay, only at the begining or between levels.
---
Make it work.
Make it fast.
"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book
---
Make it work.
Make it fast.
"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book
"None of us learn in a vacuum; we all stand on the shoulders of giants such as Wirth and Knuth and thousands of others. Lend your shoulders to building the future!" - Michael Abrash[JavaGaming.org][The Java Tutorial][Slick][LWJGL][LWJGL Tutorials for NeHe][LWJGL Wiki][jMonkey Engine]
Well, you would have to write your own BMP loader if you want
your program running on other platforms than Windows.
Kami no Itte ga ore ni zettai naru!
your program running on other platforms than Windows.
Kami no Itte ga ore ni zettai naru!
神はサイコロを振らない!
Thanks, guys! For now, I plan to just develop on Windows, and after I have a firm grasp on that (long, long, long time from now), maybe I could move on to other platforms.
-----------------------------Weeks of programming can save you hours of planning.There are 10 kinds of people in this world-- those who understand binary and those who don't.
while reinventing the wheel is fun, you can''t reinvent everything due to time it will require. so think about it this way: do you think writing your own bitmap loader is interesting for you? if yes, go ahead and make one. otherwise, use existing functionality. concentrate on what most interests you at any given moment, and you''ll probably get the most out of programming.
Sometimes it''s not just reinventing the wheel. I got frustrated with how all the windows functions arranged and generally worked with bitmaps, so I decided to just bugger off and write my own loader. Wasn''t that hard to write, and now all my bitmap related code works a lot smoother, at least for my thought processes.
-Arek the Absolute
-Arek the Absolute
-Arek the Absolute"The full quartet is pirates, ninjas, zombies, and robots. Create a game which involves all four, and you risk being blinded by the sheer level of coolness involved." - Superpig
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement