• Advertisement

Archived

This topic is now archived and is closed to further replies.

Changing to 16, 24-bit color.

This topic is 5919 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have been programming directx for awhile now and I have books like Ian Parberry´s "game programming with dx 7.0" and André Lamothe´s "windows game programming". But these books only brings up 8-bit color modes. Now I want to use more colors. Is it very difficult to do this? Every advice would be nice. Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
No, infact my experience is that working with 16,24,32-bit modes is easyer then working with 8-bit modes In the book "Game programming for windows" of Andre Lamothe is explained how to use different color modes, he also provides you with a library for 16-bit color modes.

Share this post


Link to post
Share on other sites
dont use 24bit mode, its much slower then 16bit or 32bit (because memory accesses are not aligned). if you want speed use 16bit, if you want more colors use 32bit.

Share this post


Link to post
Share on other sites
Plus some cards don''t support 24bit natively and that would make it even slower.

---
Make it work.
Make it right.
Make it fast.

Share this post


Link to post
Share on other sites

  • Advertisement