Advertisement

Checking Pixels[X],[Y]

Started by April 12, 2001 04:20 PM
0 comments, last by Spitfir3 23 years, 10 months ago
Hi, I am a newbie to openGL and kinda much to cpp too.. : ) Anyway, I used borland builder for a long time and used the feature: eg. Canvas->Pixels[X][Y] == 0x000000 I made a great 2d game using this technique to check a black and white bitmap for collisions. Now after I completed 14 of NeHe's (GREAT!!) tutorials, I feel ready to make this old project into OpenGL. The problem is that I dont know how to check one pixels's color in OpenGL, and I am also not certain how to draw that large bitmaps to the screen. Some help would be appriciated! =) //Spitfire game (~1mb): http://match.wox.org/~spitfire/install.exe a winzip self-extractor, download! nice gfx : ) my icq #12335758 if anyone feel like it Edited by - Spitfir3 on April 12, 2001 5:30:18 PM
You can use glReadPixels, but since it has to access the video memory (as oppossed to the system memory) it isn''t promised to be fast .

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
Resist Windows XP''s Invasive Production Activation Technology!
http://druidgames.cjb.net/

This topic is closed to new replies.

Advertisement