178 qglClearColor (1,0, 0.5 , 0.5);
179 qglCullFace(GL_FRONT);
180 qglEnable(GL_TEXTURE_2D);
182 qglEnable(GL_ALPHA_TEST);
183 qglAlphaFunc(GL_GREATER, 0.666);
185 qglDisable (GL_DEPTH_TEST);
186 qglDisable (GL_CULL_FACE);
187 qglDisable (GL_BLEND);
189 qglColor4f (1,1,1,1);
191 qglPolygonMode (GL_FRONT_AND_BACK, GL_FILL);
192 qglShadeModel (GL_FLAT);
198 qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,
gl_filter_min);
199 qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER,
gl_filter_max);
201 qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
202 qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
204 qglBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
208 if ( qglPointParameterfEXT )
210 float attenuations[3];
216 qglEnable( GL_POINT_SMOOTH );
219 qglPointParameterfvEXT( GL_DISTANCE_ATTENUATION_EXT, attenuations );