#include <stdarg.h>
//#define ZSTEP (1/65536.0)
-#define ZSTEP (1/4.0)
+#define ZSTEP (1/32.0)
typedef struct _fontlist {
gfxfont_t*font;
{
const GLubyte *estring;
estring = gluErrorString(errorCode);
- dbg("Tessellation Error: %s\n", estring);
+ printf("Tessellation Error: %s\n", estring);
exit(0);
}
void CALLBACK beginCallback(GLenum which)
{
- glBegin(which);
+ glBegin(which);
}
void CALLBACK endCallback(void)
{
double z;
dbg("fill");
internal_t*i = (internal_t*)dev->internal;
-
+
+ glDisable(GL_TEXTURE_2D);
glColor4f(color->r/255.0, color->g/255.0, color->b/255.0, color->a/255.0);
i->currentz ++;
gluTessCallback(i->tesselator, GLU_TESS_VERTEX, (callbackfunction_t)vertexCallback);
gluTessCallback(i->tesselator, GLU_TESS_BEGIN, (callbackfunction_t)beginCallback);
gluTessCallback(i->tesselator, GLU_TESS_END, (callbackfunction_t)endCallback);
- //gluTessCallback(i->tesselator, GLU_TESS_COMBINE, (callbackfunction_t)combineCallback);
+ gluTessCallback(i->tesselator, GLU_TESS_COMBINE, (callbackfunction_t)combineCallback);
i->tesselator_line = gluNewTess();
gluTessCallback(i->tesselator_line, GLU_TESS_ERROR, (callbackfunction_t)errorCallback);