Database web hosting - Page 478 OpenGL Super Bible! glTexCoord2f(4.0, 0.8); glVertex3fv(sky_top[0]);
Page 478 OpenGL Super Bible! glTexCoord2f(4.0, 0.8); glVertex3fv(sky_top[0]); glEnd(); }; /* * Setup lighting */ glEnable(GL_LIGHTING); glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE); glEnable(GL_LIGHT0); glLightfv(GL_LIGHT0, GL_POSITION, sunpos); glLightfv(GL_LIGHT0, GL_DIFFUSE, suncolor); glLightfv(GL_LIGHT0, GL_AMBIENT, sunambient); if (Moving || Drawing) glEnable(GL_COLOR_MATERIAL); else glDisable(GL_COLOR_MATERIAL); /* * Then the terrain */ type = TerrainType[0]; height = TerrainHeight[0]; n = TerrainNormal[0]; for (y = 0; y < (TERRAIN_SIZE - 1); y ++) { last_type = -1; for (x = 0; x < TERRAIN_SIZE; x ++, type ++, height ++, n ++) { if (last_type != *type) { /* * If the type of terrain changes, end any existing * strip of quads and reset color/texture parameters */ if (last_type != -1) glEnd(); switch (*type) { case IDC_WATER : if (Moving || Drawing) glColor3f(0.0, 0.0, 0.5); else glCallList(WaterTexture); break; case IDC_GRASS :
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.