Archived

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

kappa

check bg color?

Recommended Posts

kappa    138
I am learning OpenGL and are making a game where I whant the collision detection to activate on a certain color. How should I accomplish this? any help would be appriciated.

Share this post


Link to post
Share on other sites
Oluseyi    2103
Get the pixels from the video buffer. Since OpenGL doesn''t directly provide or manage video contexts (relying instead on intermediaries like WGL, GLUT, SDL or DirectDraw), retrieve the pixel values from those sources.

Share this post


Link to post
Share on other sites