When in wireframe mode, render also the planets as wireframes.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1223 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
440776cd50
commit
b9b091e880
@ -1284,6 +1284,14 @@ static GLfloat texture_uv_array[10400 * 2];
|
||||
glMultMatrixf(rotMatrix); // rotate the clouds!
|
||||
case PLANET_TYPE_GREEN:
|
||||
case PLANET_TYPE_MINIATURE:
|
||||
if (gDebugFlags & DEBUG_WIREFRAME_GRAPHICS)
|
||||
{
|
||||
// Drop the detail level a bit, it still looks OK in wireframe and does not penalize
|
||||
// the system that much.
|
||||
subdivideLevel = 2;
|
||||
GLDebugWireframeModeOn();
|
||||
}
|
||||
|
||||
if (!translucent)
|
||||
{
|
||||
GLfloat mat1[] = { 1.0, 1.0, 1.0, 1.0 }; // opaque white
|
||||
@ -1462,6 +1470,9 @@ static GLfloat texture_uv_array[10400 * 2];
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
|
||||
}
|
||||
|
||||
if (gDebugFlags & DEBUG_WIREFRAME_GRAPHICS)
|
||||
GLDebugWireframeModeOff();
|
||||
break;
|
||||
|
||||
case PLANET_TYPE_SUN:
|
||||
|
Loading…
x
Reference in New Issue
Block a user