… | |
… | |
101 | glEnable (GL_POLYGON_OFFSET_FILL); |
101 | glEnable (GL_POLYGON_OFFSET_FILL); |
102 | glPolygonOffset (0, 1); |
102 | glPolygonOffset (0, 1); |
103 | glDepthFunc (GL_LESS); |
103 | glDepthFunc (GL_LESS); |
104 | glDisable (GL_LIGHTING); |
104 | glDisable (GL_LIGHTING); |
105 | glColorMask (0, 0, 0, 0); |
105 | glColorMask (0, 0, 0, 0); |
106 | //cgGLDisableProfile (CG_PROFILE_ARBVP1); |
106 | //cgGLDisableProfile (vsh_profile); |
107 | cgGLDisableProfile (CG_PROFILE_ARBFP1); |
107 | cgGLDisableProfile (fsh_profile); |
108 | } |
108 | } |
109 | else |
109 | else |
110 | { |
110 | { |
111 | #if 0 |
111 | #if 0 |
112 | glEnable (GL_MINMAX); |
112 | glEnable (GL_MINMAX); |
113 | #endif |
113 | #endif |
114 | glDisable (GL_POLYGON_OFFSET_FILL); |
114 | glDisable (GL_POLYGON_OFFSET_FILL); |
115 | glDepthFunc (GL_LESS); |
115 | glDepthFunc (GL_LESS); |
116 | glDepthMask (0); |
116 | glDepthMask (0); |
117 | cgGLEnableProfile (CG_PROFILE_ARBVP1); |
117 | cgGLEnableProfile (vsh_profile); |
118 | cgGLEnableProfile (CG_PROFILE_ARBFP1); |
118 | cgGLEnableProfile (fsh_profile); |
119 | } |
119 | } |
120 | |
120 | |
121 | for (vector<octant *>::iterator i = vislist.begin (); i != vislist.end (); ++i) |
121 | for (vector<octant *>::iterator i = vislist.begin (); i != vislist.end (); ++i) |
122 | (*i)->display (*this); |
122 | (*i)->display (*this); |
123 | |
123 | |