added code for enabling GL_LINE_SMOOTH (antialiased lines) in r_showtris mode, but...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 3 May 2005 10:38:55 +0000 (10:38 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 3 May 2005 10:38:55 +0000 (10:38 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5216 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c
glquake.h

index cb24fd3..595227d 100644 (file)
@@ -1705,6 +1705,7 @@ void SCR_DrawScreen (void)
                        GL_DepthMask(GL_FALSE);
                        memset(&m, 0, sizeof(m));
                        R_Mesh_State(&m);
+                       //qglEnable(GL_LINE_SMOOTH);
                        GL_ShowTrisColor(0.2,0.2,0.2,1);
                        r_showtrispass = 1;
                }
@@ -1770,6 +1771,7 @@ void SCR_DrawScreen (void)
                R_TimeReport("meshfinish");
        }
        r_showtrispass = 0;
+       //qglDisable(GL_LINE_SMOOTH);
 }
 
 void SCR_UpdateLoadingScreen (void)
index e1b3372..865379a 100644 (file)
--- a/glquake.h
+++ b/glquake.h
@@ -218,6 +218,10 @@ extern int gl_max_anisotropy;
 #define GL_POLYGON_OFFSET_POINT           0x2A01
 #define GL_POLYGON_OFFSET_LINE            0x2A02
 #define GL_POLYGON_OFFSET_FILL            0x8037
+
+#define GL_POINT_SMOOTH                         0x0B10
+#define GL_LINE_SMOOTH                          0x0B20
+#define GL_POLYGON_SMOOTH                       0x0B41
 #endif
 
 // GL_ARB_multitexture