RGB colors

Started by
4 comments, last by jocke 23 years, 10 months ago
Does DX7 have any functions for building up and reading RBG color based on the pixelformat on a surface?
Advertisement
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.
For a good time hit Alt-F4! Go ahead try it, all the cool people are doing it.
Which tutorial do you mean exactly?
The one that comes with directx in word form.

For a good time hit Alt-F4! Go ahead try it, all the cool people are doing it.
For a good time hit Alt-F4! Go ahead try it, all the cool people are doing it.
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

Thanks for the help guys!

This topic is closed to new replies.

Advertisement