GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


A Paste by Anonymous
1
 
    glPushMatrix();
        glMatrixMode(GL_MODELVIEW);     
        glLoadIdentity();        
        gluLookAt(100, 121, 232,
                 232, 11, 23,
                 0, 1, 0);
 
        glEnable(GL_TEXTURE_2D);    
 
        glBindTexture(GL_TEXTURE_2D,g_Texture[789]);
 
        glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, 512,512, 0);
        glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); 
        glTexGenf(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
        glTexGenf(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
    glPopMatrix();