Using Two Textures: Output Window Doesn't Retain On Screen
问题 This code initially uses one texture. I duplicated some functions to use two textures. There doesn't seem to be any errors but when I run I only see the black command window for a bit then it closes. Is there any additional line that I should add? #include <GL/glut.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include "support.h" using namespace std; /* GLUT callback Handlers */ MYPOINT*ptsW,*ptsR; MYFACE *faceW,*faceR; GLuint *images; GLubyte *image; GLuint texture; void