00001 // Filename: config_dxgsg7.h 00002 // Created by: drose (06Oct99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef CONFIG_DXGSG7_H 00020 #define CONFIG_DXGSG7_H 00021 00022 #include <pandabase.h> 00023 #include <notifyCategoryProxy.h> 00024 00025 NotifyCategoryDecl(dxgsg7, EXPCL_PANDADX, EXPTP_PANDADX); 00026 NotifyCategoryDecl(wdxdisplay7, EXPCL_PANDADX, EXPTP_PANDADX); 00027 00028 extern bool dx_full_screen; 00029 extern bool dx_sync_video; 00030 extern bool dx_cull_traversal; 00031 extern bool dx_no_vertex_fog; 00032 extern bool dx_full_screen_antialiasing; 00033 extern bool dx_auto_normalize_lighting; 00034 extern bool dx_use_rangebased_fog; 00035 extern bool dx_allow_software_renderer; 00036 extern bool dx_force_software_renderer; 00037 extern const bool link_tristrips; 00038 00039 // debug flags we might want to use in full optimized build 00040 extern bool dx_ignore_mipmaps; 00041 extern bool dx_mipmap_everything; 00042 extern bool dx_show_transforms; 00043 extern bool dx_force_16bpptextures; 00044 extern bool dx_no_dithering; 00045 extern bool dx_force_16bpp_zbuffer; 00046 extern bool dx_do_vidmemsize_check; 00047 extern bool dx_preserve_fpu_state; 00048 00049 extern bool dx_depth_offset_decals; 00050 00051 #ifndef NDEBUG 00052 extern int dx_force_backface_culling; 00053 #endif 00054 00055 #ifdef _DEBUG 00056 extern float dx_global_miplevel_bias; 00057 extern bool dx_debug_view_mipmaps; 00058 extern bool dx_force_anisotropic_filtering; 00059 #endif 00060 00061 // Ways to implement decals. 00062 enum DXDecalType { 00063 GDT_mask, // GL 1.0 style, involving three steps and double-draw of polygon 00064 GDT_blend, // As above, but slower; use blending to disable colorbuffer writes 00065 GDT_offset // The fastest, using GL 1.1 style glPolygonOffset 00066 }; 00067 extern DXDecalType dx_decal_type; 00068 00069 extern EXPCL_PANDADX void init_libdxgsg7(); 00070 00071 #endif