【发布时间】:2019-05-20 06:41:15
【问题描述】:
// this is the display function it is called when ever you want to draw something all drawing should be called form here
void display() {
glClear(GL_COLOR_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
// draw background
drawBackground();
glPushMatrix();
// draw hot air balloon
drawAirBalloon();
// draw spray
drawSpray();
glPopMatrix();
// draw rain
drawRain();
// draw fire
drawSpray();
calcFPS();
counter++;
glFlush();
glutSwapBuffers();
glutPostRedisplay();
}
问题是我不能用我的热气球让火上升。我之所以只将代码放在上面(显示)是因为我认为问题与这个特定的代码有关。
要查看完整代码,请点击以下链接:
【问题讨论】:
标签: c++ visual-studio opengl