c++ Programming Glossary: glbegin
true isometric projection with opengl http://stackoverflow.com/questions/1059200/true-isometric-projection-with-opengl 1.0 0.0 which direction is up glMatrixMode GL_MODELVIEW glBegin GL_LINES glColor3d 1.0 0.0 0.0 glVertex3d 0.0 0.0 0.0 glVertex3d..
OpenGL two different 3d rendering picture control on single MFC dialog not working http://stackoverflow.com/questions/12227586/opengl-two-different-3d-rendering-picture-control-on-single-mfc-dialog-not-work Wireframe Mode glPolygonMode GL_FRONT_AND_BACK GL_LINE glBegin GL_QUADS Front Side glVertex3f 1.0f 1.0f 1.0f glVertex3f..
object loader in opengl http://stackoverflow.com/questions/14887012/object-loader-in-opengl 3 obj_file.close void DisplayModel model md glPushMatrix glBegin GL_TRIANGLES for int i 0 i md.faces i glVertex3f md.obj_points..
C++ OpenGL window only tracks background http://stackoverflow.com/questions/18477852/c-opengl-window-only-tracks-background 0.0 0.0 0.0 Draw a polygon with specified vertices. glBegin GL_POLYGON glVertex3f 20.0 20.0 0.0 glVertex3f 80.0 20.0 0.0..
OpenGL and GLUT in Eclipse on OS X http://stackoverflow.com/questions/2068693/opengl-and-glut-in-eclipse-on-os-x rotation matrix glRotatef angle 0 0 1 Render colored quad glBegin GL_QUADS glColor3ub 255 000 000 glVertex2f 1 1 glColor3ub 000..
Easy framework for OpenGL Shaders in C/C++ http://stackoverflow.com/questions/2795044/easy-framework-for-opengl-shaders-in-c-c color_shader Use the compiled shaders prog Draw something glBegin GL_TRIANGLES glColor3f 0.0f 0.0f 1.0f glVertex3f 1.0f 0.0f 1.0f..
Edges on polygon outlines not always correct http://stackoverflow.com/questions/3039026/edges-on-polygon-outlines-not-always-correct output.clear if input.size 2 return float w width 2.0f glBegin GL_TRIANGLES for size_t i 0 i input.size 1 i POINTFLOAT cur.. float width if polyline.size 2 return float w width 2.0f glBegin GL_TRIANGLES for size_t i 0 i polyline.size 1 i const Vector2f..
How to get VBO working http://stackoverflow.com/questions/3121472/how-to-get-vbo-working DrawArrays is render call something as you would call glBegin and glEnd . You tell what to draw and in which range. glFlush..
opengl texturing http://stackoverflow.com/questions/5380717/opengl-texturing GL_DEPTH_BUFFER_BIT else glClear GL_COLOR_BUFFER_BIT glBegin GL_QUADS glTexCoord2f 0.0 0.0 glVertex3f 75.0 0.0 400.0 glTexCoord2f.. 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 y_offset zc z_offset glVertex3f..
Opengl: 2d HUD over 3D http://stackoverflow.com/questions/5467218/opengl-2d-hud-over-3d GL_MODELVIEW glLoadIdentity glColor3f 0.0f 255.0f 1.0f glBegin GL_QUADS glVertex2f 0.0 0.0 glVertex2f 10.0 0.0 glVertex2f 10.0.. glDisable GL_CULL_FACE glClear GL_DEPTH_BUFFER_BIT glBegin GL_QUADS glColor3f 1.0f 0.0f 0.0 glVertex2f 0.0 0.0 glVertex2f..
mouse movement opengl http://stackoverflow.com/questions/5734794/mouse-movement-opengl is the cue i am trying to move via mouse input void cue glBegin glTranslatef 10 5 0 glRotatef 90 0 1 0 glutSolidCone 0.25 15..
Problems converting YV12 to RGB through GLSL http://stackoverflow.com/questions/8977489/problems-converting-yv12-to-rgb-through-glsl static GLushort ImageYUV NULL static void DrawObject void glBegin GL_QUADS glTexCoord2f 0 0 glVertex2f 1.0 1.0 glTexCoord2f ImgWidth..
Image scaling (KeepAspectRatioByExpanding) through OpenGL http://stackoverflow.com/questions/9011108/image-scaling-keepaspectratiobyexpanding-through-opengl Mirroring texture coordinates to flip the image vertically glBegin GL_QUADS glTexCoord2f 0.0f img_height glVertex2f offset_x gl_height.. just simple ortho view no fancy transform ... glBegin GL_QUADS glTexCoord2f 0 0 glVertex2f offset_x offset_y glTexCoord2f.. simple ortho view for vertex coordinate to pixel matching glBegin GL_QUADS glTexCoord2f 0 0 glVertex2f offset_x offset_y glTexCoord2f..
|