PDA

View Full Version : drawPixel problem, please help!



darron
01-20-2003, 09:44 AM
I am trying to draw pixels directly into frame buffer. I can do draw to a default starting position (0,0) by use glDrawPixels().

What I should do if I want to draw to a specific position? I tried glRasterPos2i, but it doesn't work like what I thought? So my questions is how to move the "pen" to a specific position, need I set any flags?

Can anyone help? Thanks

DarkLight
01-24-2003, 04:38 PM
glRasterPos2i should work, but if you type all code right and it doesn't work...
I suggest you using glTranslate() to change the 0,0 position to some other