c++ Programming Glossary: gl_quads
I'm seeing artifacts when I attempt to rotate an image http://stackoverflow.com/questions/1191093/im-seeing-artifacts-when-i-attempt-to-rotate-an-image calls refer to glBindTexture GL_TEXTURE_2D texture glBegin GL_QUADS Top left vertex corner glTexCoord2i 0 0 glVertex3f 64 0 0 Top..
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 Mode glPolygonMode GL_FRONT_AND_BACK GL_LINE glBegin GL_QUADS Front Side glVertex3f 1.0f 1.0f 1.0f glVertex3f 1.0f 1.0f..
Using SDL_ttf and OpenGL, TTF_RenderUTF8_Blended print Red rectangle http://stackoverflow.com/questions/12700085/using-sdl-ttf-and-opengl-ttf-renderutf8-blended-print-red-rectangle glEnable GL_TEXTURE_2D glEnable GL_BLEND glBegin GL_QUADS glTexCoord2f 0.0f 0.0f glVertex2f 0.0f 0.0f glTexCoord2f 0.0f..
OpenGL and GLUT in Eclipse on OS X http://stackoverflow.com/questions/2068693/opengl-and-glut-in-eclipse-on-os-x matrix glRotatef angle 0 0 1 Render colored quad glBegin GL_QUADS glColor3ub 255 000 000 glVertex2f 1 1 glColor3ub 000 255 000..
opengl texturing http://stackoverflow.com/questions/5380717/opengl-texturing else glClear GL_COLOR_BUFFER_BIT glBegin GL_QUADS glTexCoord2f 0.0 0.0 glVertex3f 75.0 0.0 400.0 glTexCoord2f.. 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 xc..
Opengl: 2d HUD over 3D http://stackoverflow.com/questions/5467218/opengl-2d-hud-over-3d glLoadIdentity glColor3f 0.0f 255.0f 1.0f glBegin GL_QUADS glVertex2f 0.0 0.0 glVertex2f 10.0 0.0 glVertex2f 10.0 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 10.0 0.0..
Creating a 3D sphere in Opengl using Visual C++ http://stackoverflow.com/questions/5988686/creating-a-3d-sphere-in-opengl-using-visual-c glTexCoordPointer 2 GL_FLOAT 0 texcoords 0 glDrawElements GL_QUADS indices.size GL_UNSIGNED_SHORT indices 0 glPopMatrix SolidSphere..
How do glPushMatrix() and glPopMatrix() keep the scene the same? http://stackoverflow.com/questions/7031842/how-do-glpushmatrix-and-glpopmatrix-keep-the-scene-the-same glTranslatef boxX 0.0f 0.0f draw a quad rectangle glBegin GL_QUADS glVertex2f 0.0f 0.0f glVertex2f 128.0f 0.0f glVertex2f 128.0f..
OpenGL 2D hud in 3D application http://stackoverflow.com/questions/8370537/opengl-2d-hud-in-3d-application GL_DEPTH_BUFFER_BIT glColor3f 0.0 0.0 1.0 glBegin GL_QUADS glVertex2f 50 50 glVertex2f 50 100 glVertex2f 100 100 glVertex2f..
Problems converting YV12 to RGB through GLSL http://stackoverflow.com/questions/8977489/problems-converting-yv12-to-rgb-through-glsl GLushort ImageYUV NULL static void DrawObject void glBegin GL_QUADS glTexCoord2f 0 0 glVertex2f 1.0 1.0 glTexCoord2f ImgWidth 0..
Image scaling (KeepAspectRatioByExpanding) through OpenGL http://stackoverflow.com/questions/9011108/image-scaling-keepaspectratiobyexpanding-through-opengl 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 ImgWidth.. ortho view for vertex coordinate to pixel matching glBegin GL_QUADS glTexCoord2f 0 0 glVertex2f offset_x offset_y glTexCoord2f img_width..
|