PDA

View Full Version : simple 2d



05-27-2002, 05:43 AM
OpenGL is a great lib for 3d-stuff, but is it possible to simply draw a pixel on the screen? I could create a triangle like (1,1,1)(1,1,1)(1,1,1) but I think it's quite uneffective.

Thanks for your help

05-27-2002, 05:46 AM
This was posted twice. I don't know why did this happen. Sorry.

mikael_aronsson
05-27-2002, 05:54 AM
Hi !

glBegin( GL_POINTS);
glVertex3d( x, y, 0);
glEnd();

In orthographic mode.

Mikael