Newbie help! OpenGL
Hi Guys,
I'm very new to OpenGL and co, so forgive me if I ask some really draft questions!
How do make a dot about 8 pixels in size.
thanks
Quote:Original post by shaolinfTake a look at glBegin() and glEnd() (you'll want to use the GL_POINTS enum), glVertex2*(), and glPointSize().
Hi Guys,
I'm very new to OpenGL and co, so forgive me if I ask some really draft questions!
How do make a dot about 8 pixels in size.
thanks
If you need more info than that, you may need to clarify your question a bit.
glPointSize (8); glBegin (GL_POINTS); glVertex2f (0.0f,0.0f); glEnd ();
This renders a pixel to the center of the screen.
If you prefer, there are alternative routines that you can use besides the glVertex2f version (For example, glVetex2i() (For integers), glVertex2iv() (Integers), et al.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement