Archived

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

jocke

RGB colors

Recommended Posts

Does DX7 have any functions for building up and reading RBG color based on the pixelformat on a surface?

Share this post


Link to post
Share on other sites
I don''t think there is. The tutorial says to use GDI functions (eck). I just wrote my own function. I didn''t fully test it, but it seems to work.

For a good time hit Alt-F4! Go ahead try it, all the cool people are doing it.

Share this post


Link to post
Share on other sites
Did you look in the gamedev resources. There are a few documents that deal with 16bit color. Go to the Direct X API Section under direct draw. I think that''s what you''re looking for.

http://www.gamedev.net/reference/articles/article541.asp

http://www.gamedev.net/reference/articles/article863.asp

Share this post


Link to post
Share on other sites