Panda3D
config_dxgsg9.h
1 // Filename: config_dxgsg.h
2 // Created by: drose (06Oct99)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef CONFIG_DXGSG9_H
16 #define CONFIG_DXGSG9_H
17 
18 #include "pandabase.h"
19 #include "notifyCategoryProxy.h"
20 #include "dxgsg9base.h"
21 #include "configVariableBool.h"
22 #include "configVariableInt.h"
23 #include "configVariableDouble.h"
24 
25 NotifyCategoryDecl(dxgsg9, EXPCL_PANDADX, EXPTP_PANDADX);
26 NotifyCategoryDecl(wdxdisplay9, EXPCL_PANDADX, EXPTP_PANDADX);
27 
28 extern ConfigVariableBool dx_no_vertex_fog;
29 extern ConfigVariableBool dx_show_cursor_watermark;
30 extern ConfigVariableBool dx_full_screen_antialiasing;
31 extern ConfigVariableBool dx_use_rangebased_fog;
32 extern ConfigVariableBool link_tristrips;
33 extern ConfigVariableBool dx_use_triangle_mipgen_filter;
34 extern ConfigVariableBool dx_broken_max_index;
35 extern ConfigVariableBool dx_broken_depth_bias;
36 extern ConfigVariableDouble dx_depth_bias_scale;
37 extern ConfigVariableBool dx_count_all_cards_memory;
38 
39 // debug flags we might want to use in full optimized build
40 extern ConfigVariableBool dx_ignore_mipmaps;
41 extern ConfigVariableBool dx_mipmap_everything;
42 extern ConfigVariableBool dx_show_transforms;
43 extern ConfigVariableBool dx_no_dithering;
44 extern ConfigVariableBool dx_force_anisotropic_filtering;
45 extern ConfigVariableBool dx_force_16bpp_zbuffer;
46 extern ConfigVariableBool dx_do_vidmemsize_check;
47 extern ConfigVariableBool dx_preserve_fpu_state;
48 extern ConfigVariableInt dx_preferred_device_id;
49 
50 extern ConfigVariableBool dx_intel_compressed_texture_bug;
51 
52 #ifndef NDEBUG
53 extern ConfigVariableInt dx_force_backface_culling;
54 #endif
55 
56 #ifdef _DEBUG
57 extern ConfigVariableDouble dx_global_miplevel_bias;
58 extern ConfigVariableBool dx_debug_view_mipmaps;
59 #endif
60 
61 // LRU configuration variables
62 extern ConfigVariableBool dx_management;
63 extern ConfigVariableBool dx_texture_management;
64 extern ConfigVariableBool dx_lru_management;
65 extern ConfigVariableInt dx_lru_maximum_pages;
66 extern ConfigVariableInt dx_lru_free_memory_requirement;
67 extern ConfigVariableInt dx_lru_minimum_memory_requirement;
68 extern ConfigVariableInt dx_lru_maximum_memory_requirement;
69 extern ConfigVariableInt dx_lru_maximum_page_updates_per_frame;
70 
71 // LRU debug variables
72 extern ConfigVariableBool dx_lru_debug;
73 extern ConfigVariableInt dx_lru_debug_frames_til_output;
74 extern ConfigVariableBool dx_lru_debug_textures;
75 extern ConfigVariableBool dx_lru_debug_vertex_buffers;
76 
77 extern ConfigVariableBool dx_use_dynamic_textures;
78 
79 // DX device options
80 extern ConfigVariableBool dx_use_multithread;
81 extern ConfigVariableBool dx_use_puredevice;
82 extern ConfigVariableBool dx_disable_driver_management;
83 extern ConfigVariableBool dx_disable_driver_management_ex;
84 
85 // nVidia's performace heads up display
86 extern ConfigVariableBool dx_use_nvperfhud;
87 
88 extern EXPCL_PANDADX void init_libdxgsg9();
89 
90 #endif
This is a convenience class to specialize ConfigVariable as a boolean type.
This is a convenience class to specialize ConfigVariable as a floating-point type.
This is a convenience class to specialize ConfigVariable as an integer type.