Ver código fonte

rest of prev chkin

cxgeorge 24 anos atrás
pai
commit
1cde0e2b8e
2 arquivos alterados com 5 adições e 0 exclusões
  1. 4 0
      panda/src/dxgsg/config_dxgsg.cxx
  2. 1 0
      panda/src/dxgsg/config_dxgsg.h

+ 4 - 0
panda/src/dxgsg/config_dxgsg.cxx

@@ -36,6 +36,10 @@ bool dx_full_screen = config_dxgsg.GetBool("dx-full-screen", false);
 //  irrespective of the video refresh.
 bool dx_sync_video = config_dxgsg.GetBool("sync-video", true);
 
+// enable this to turn on full-screen anti-aliasing, if the HW supports it
+// this var is also used in wdxGraphicsWindows.cxx
+bool dx_full_screen_antialiasing = config_dxgsg.GetBool("dx-antialias", false);
+
 // Configure this true to perform a cull traversal over the geometry
 // by default, false otherwise.  The cull traversal provides support
 // for state-sorting, z-sorting, and binning.

+ 1 - 0
panda/src/dxgsg/config_dxgsg.h

@@ -32,6 +32,7 @@ extern bool dx_ignore_mipmaps;
 extern bool dx_force_16bpp_screenbuffers;
 extern bool dx_show_fps_meter;
 extern bool dx_no_vertex_fog;
+extern bool dx_full_screen_antialiasing;
 extern float dx_fps_meter_update_interval;
 
 #ifdef _DEBUG