c++ Programming Glossary: gltranslatef
Glew problems, unresolved externals http://stackoverflow.com/questions/11059971/glew-problems-unresolved-externals positive Y up vector glRotatef orbitDegrees 0.f 1.0f 0.0f glTranslatef 0.0 0.0 20 We move the object forward the model matrix is multiplied.. buffer2 i glEnable GL_LIGHTING glPopMatrix glPushMatrix glTranslatef 5.0 0.0 20.0 objarray 1 render glPopMatrix glFlush This force..
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 pDC If the current view is perspective... glLoadIdentity glTranslatef 0.0f 0.0f m_fZoom glTranslatef m_fPosX m_fPosY 0.0f glRotatef.. glLoadIdentity glTranslatef 0.0f 0.0f m_fZoom glTranslatef m_fPosX m_fPosY 0.0f glRotatef m_fRotX 1.0f 0.0f 0.0f glRotatef..
object loader in opengl http://stackoverflow.com/questions/14887012/object-loader-in-opengl double h glutGet GLUT_WINDOW_HEIGHT double ar w h glTranslatef curTrans.x w 2 curTrans.y h 2 0 gluPerspective 60 ar 0.1 100.. 60 ar 0.1 100 glMatrixMode GL_MODELVIEW glLoadIdentity glTranslatef 0 0 10 glPushMatrix glRotatef curRot.x 360 0 1 0 glRotatef curRot.y..
OpenGL and GLUT in Eclipse on OS X http://stackoverflow.com/questions/2068693/opengl-and-glut-in-eclipse-on-os-x matrix glLoadIdentity Multiply in translation matrix glTranslatef 0 0 10 Multiply in rotation matrix glRotatef angle 0 0 1 Render..
C/C++ macro/template blackmagic to generate unique name http://stackoverflow.com/questions/2419650/c-c-macro-template-blackmagic-to-generate-unique-name GLTranslate float x float y float z glPushMatrix glTranslatef x y z ~GlTranslate glPopMatrix Manual solution GlTranslate..
opengl texturing http://stackoverflow.com/questions/5380717/opengl-texturing keyboard unsigned char key int x int y switch key case 'a' glTranslatef 5.0 0.0 0.0 break case 'd' glTranslatef 5.0 0.0 0.0 break case.. key case 'a' glTranslatef 5.0 0.0 0.0 break case 'd' glTranslatef 5.0 0.0 0.0 break case 'w' glTranslatef 0.0 0.0 5.0 break case.. 0.0 break case 'd' glTranslatef 5.0 0.0 0.0 break case 'w' glTranslatef 0.0 0.0 5.0 break case 's' glTranslatef 0.0 0.0 5.0 break display..
Opengl: 2d HUD over 3D http://stackoverflow.com/questions/5467218/opengl-2d-hud-over-3d 0 0 x y glClear GL_COLOR_BUFFER_BIT glLoadIdentity glTranslatef 0.0 0.5 6.0 glPushMatrix ..Draw some 3d stuff... glPopMatrix..
mouse movement opengl http://stackoverflow.com/questions/5734794/mouse-movement-opengl 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 20 20 glEnd..
Creating a 3D sphere in Opengl using Visual C++ http://stackoverflow.com/questions/5988686/creating-a-3d-sphere-in-opengl-using-visual-c y GLfloat z glMatrixMode GL_MODELVIEW glPushMatrix glTranslatef x y z glEnableClientState GL_VERTEX_ARRAY glEnableClientState..
Problems converting YV12 to RGB through GLSL http://stackoverflow.com/questions/8977489/problems-converting-yv12-to-rgb-through-glsl 1.0 10.0 100.0 glMatrixMode GL_MODELVIEW glLoadIdentity glTranslatef 0.0 0.0 15.0 static void Key unsigned char key int x int y void..
Image scaling (KeepAspectRatioByExpanding) through OpenGL http://stackoverflow.com/questions/9011108/image-scaling-keepaspectratiobyexpanding-through-opengl glLoadIdentity glMatrixMode GL_MODELVIEW glLoadIdentity glTranslatef 1 1 0 glScalef 2.0f p_viewport 2 2.0f p_viewport 3 1.0 just..
Using Quaternions for OpenGL Rotations http://stackoverflow.com/questions/9715776/using-quaternions-for-opengl-rotations the object that is supposed to display it. glPushMatrix glTranslatef m_Position.x m_Position.y m_Position.z glMultMatrixf m_RotationMatrix..
|