Jump to content
  • Advertisement

Archived

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

falklian

Finding out what's stored in a palette.

This topic is 5962 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

Ok, I''m reading through a book teaching me the basics of how to program games using direct x. I''ve had two years of CS classes in C++ as well as a little I''ve learned on my own. I''ve never really programmed games other than on my TI-83 calculator in math class and those were all text-based. Anyways, the project in the first chapter of the book is how to display a 640 * 480 bitmap on the screen in 256 colors. I''ve finished the project and have been messing around with the palette, changing entries to alter what the bitmap looks like. What I want to know, is how do I find out exactly what''s stored in the palette''s entries? I thought about outputting the RGB values into a text file, firing up MS Paint, and finding out the entries like that, we did the fstream/ofstream stuff in my CS classes although I can''t remember how to do it since we hardly used it and I hardly use it, and the help files for VC++ just confuse me. This, to me, would be ideal since it seems to be the most helpful, but is there another way to find out what''s stored in a palette? Any method would be helpful, I''m just curious as to what''s stored in that thing Falklian Holydawn, that which plays too much EverQuest ;p

Share this post


Link to post
Share on other sites
Advertisement
A palette is just a look up table of indices and rgb color values. Check the MSDN docs and revisit your lessons on fileio

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!