d3d to support renderstate D§DRENDERSTATE_ANTIALIAS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There are two ways to do this:
1. using glHint like I did
2. using glEnable
What is preferable?
As I am a newbie to D3D is there something else to be done to make this really 
work?

Changelog:
   support D3DRENDERSTATE_ANTIALIAS

Index: dlls/ddraw/mesa.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/mesa.c,v
retrieving revision 1.36
diff -u -r1.36 mesa.c
--- dlls/ddraw/mesa.c	12 Feb 2003 21:35:07 -0000	1.36
+++ dlls/ddraw/mesa.c	2 Mar 2003 00:04:18 -0000
@@ -106,7 +106,17 @@
 					    ICOM_INTERFACE(tex, IDirectDrawSurface7));
 		ENTER_GL();
 	    } break;
-	      
+	    case D3DRENDERSTATE_ANTIALIAS: {      /*  2 */
+	        if (dwRenderState) {
+		    glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
+		    glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);
+		    glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST);
+		} else {
+		    glHint(GL_LINE_SMOOTH_HINT, GL_FASTEST);
+		    glHint(GL_POINT_SMOOTH_HINT, GL_FASTEST);
+		    glHint(GL_POLYGON_SMOOTH_HINT, GL_FASTEST);
+		}
+	    } break;
 	    case D3DRENDERSTATE_TEXTUREADDRESSU:  /* 44 */
 	    case D3DRENDERSTATE_TEXTUREADDRESSV:  /* 45 */
 	    case D3DRENDERSTATE_TEXTUREADDRESS: { /*  3 */



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux