c++ Programming Glossary: glcolor3f
C++ OpenGL window only tracks background http://stackoverflow.com/questions/18477852/c-opengl-window-only-tracks-background GL_COLOR_BUFFER_BIT Set foreground or drawing color. glColor3f 0.0 0.0 0.0 Draw a polygon with specified vertices. glBegin..
Make openGL lines connected http://stackoverflow.com/questions/2751874/make-opengl-lines-connected GL_POLYGON Begin quadrilateral coordinates Trapezoid glColor3f 255 0 0 glVertex2f 0 0 glVertex2f 100 0 glVertex2f 100 100 glVertex2f.. GL_LINE_LOOP Begin quadrilateral coordinates Trapezoid glColor3f 0 255 0 glVertex2f 0 0 glVertex2f 100 0 glVertex2f 100 100 glVertex2f..
Easy framework for OpenGL Shaders in C/C++ http://stackoverflow.com/questions/2795044/easy-framework-for-opengl-shaders-in-c-c compiled shaders prog Draw something glBegin GL_TRIANGLES glColor3f 0.0f 0.0f 1.0f glVertex3f 1.0f 0.0f 1.0f glColor3f 0.0f 1.0f.. glColor3f 0.0f 0.0f 1.0f glVertex3f 1.0f 0.0f 1.0f glColor3f 0.0f 1.0f 0.0f glVertex3f 1.0f 0.0f 1.0f glColor3f 1.0f 0.0f.. 1.0f glColor3f 0.0f 1.0f 0.0f glVertex3f 1.0f 0.0f 1.0f glColor3f 1.0f 0.0f 0.0f glVertex3d 0.0 1.0 1.0 glEnd If you're going..
How to get VBO working http://stackoverflow.com/questions/3121472/how-to-get-vbo-working which is empty in this moment glClear GL_COLOR_BUFFER_BIT glColor3f 0.0f 0.0f 0.0f glBindBuffer GL_ARRAY_BUFFER ID glVertexPointer.. w 0.0f GLdouble h void display glClear GL_COLOR_BUFFER_BIT glColor3f 0.0f 0.0f 0.0f glBindBuffer GL_ARRAY_BUFFER ID glVertexPointer..
opengl texturing http://stackoverflow.com/questions/5380717/opengl-texturing y_offset float z_offset int color switch color case 1 glColor3f 1.0 0.0 0.0 break case 2 glColor3f 0.0 1.0 0.0 break case 3.. switch color case 1 glColor3f 1.0 0.0 0.0 break case 2 glColor3f 0.0 1.0 0.0 break case 3 glColor3f 0.0 0.0 1.0 break glBegin.. 0.0 0.0 break case 2 glColor3f 0.0 1.0 0.0 break case 3 glColor3f 0.0 0.0 1.0 break glBegin GL_QUADS glVertex3f xc x_offset yc..
Opengl: 2d HUD over 3D http://stackoverflow.com/questions/5467218/opengl-2d-hud-over-3d 0 1 1 glMatrixMode GL_MODELVIEW glLoadIdentity glColor3f 0.0f 255.0f 1.0f glBegin GL_QUADS glVertex2f 0.0 0.0 glVertex2f.. GL_CULL_FACE glClear GL_DEPTH_BUFFER_BIT glBegin GL_QUADS glColor3f 1.0f 0.0f 0.0 glVertex2f 0.0 0.0 glVertex2f 10.0 0.0 glVertex2f..
Creating a 3D sphere in Opengl using Visual C++ http://stackoverflow.com/questions/5988686/creating-a-3d-sphere-in-opengl-using-visual-c #include GL glu.h void display glClear GL_COLOR_BUFFER_BIT glColor3f 1.0 0.0 0.0 glLoadIdentity glutSolidSphere 5.0 20.0 20.0 glFlush.. 20.0 20.0 glFlush void myInit glClearColor 1.0 1.0 1.0 1.0 glColor3f 1.0 0.0 0.0 glMatrixMode GL_PROJECTION glLoadIdentity gluOrtho2D..
OpenGL 2D hud in 3D application http://stackoverflow.com/questions/8370537/opengl-2d-hud-in-3d-application glClear GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT glColor3f 0.0 0.0 1.0 glBegin GL_QUADS glVertex2f 50 50 glVertex2f 50..
|