14 #ifndef DISPLAYINFORMATION_H 15 #define DISPLAYINFORMATION_H 30 void output(std::ostream &out)
const;
42 DS_direct_3d_create_error,
43 DS_create_window_error,
44 DS_create_device_error,
50 int get_display_state();
52 int get_maximum_window_width();
53 int get_maximum_window_height();
54 int get_window_bits_per_pixel();
56 int get_total_display_modes();
57 const DisplayMode &get_display_mode(
int display_index);
58 MAKE_SEQ(get_display_modes, get_total_display_modes, get_display_mode);
61 int get_display_mode_width(
int display_index);
62 int get_display_mode_height(
int display_index);
63 int get_display_mode_bits_per_pixel(
int display_index);
64 int get_display_mode_refresh_rate(
int display_index);
65 int get_display_mode_fullscreen_only(
int display_index);
67 GraphicsStateGuardian::ShaderModel get_shader_model();
68 int get_video_memory();
69 int get_texture_memory();
71 void update_memory_information();
72 uint64_t get_physical_memory();
73 uint64_t get_available_physical_memory();
74 uint64_t get_page_file_size();
75 uint64_t get_available_page_file_size();
76 uint64_t get_process_virtual_memory();
77 uint64_t get_available_process_virtual_memory();
78 int get_memory_load();
79 uint64_t get_page_fault_count();
80 uint64_t get_process_memory();
81 uint64_t get_peak_process_memory();
82 uint64_t get_page_file_usage();
83 uint64_t get_peak_page_file_usage();
88 int get_driver_product();
89 int get_driver_version();
90 int get_driver_sub_version();
91 int get_driver_build();
93 int get_driver_date_month();
94 int get_driver_date_day();
95 int get_driver_date_year();
97 const std::string &get_cpu_vendor_string()
const;
98 const std::string &get_cpu_brand_string()
const;
99 unsigned int get_cpu_version_information();
100 unsigned int get_cpu_brand_index();
102 uint64_t get_cpu_frequency();
103 static uint64_t get_cpu_time();
105 uint64_t get_maximum_cpu_frequency();
106 uint64_t get_current_cpu_frequency();
107 void update_cpu_frequency(
int processor_number);
109 int get_num_cpu_cores();
110 int get_num_logical_cpus();
112 int get_os_version_major();
113 int get_os_version_minor();
114 int get_os_version_build();
115 int get_os_platform_id();
118 DetectionState _state;
119 int _get_adapter_display_mode_state;
120 int _get_device_caps_state;
121 int _maximum_window_width;
122 int _maximum_window_height;
123 int _window_bits_per_pixel;
124 int _total_display_modes;
126 GraphicsStateGuardian::ShaderModel _shader_model;
130 uint64_t _physical_memory;
131 uint64_t _available_physical_memory;
132 uint64_t _page_file_size;
133 uint64_t _available_page_file_size;
134 uint64_t _process_virtual_memory;
135 uint64_t _available_process_virtual_memory;
137 uint64_t _page_fault_count;
138 uint64_t _process_memory;
139 uint64_t _peak_process_memory;
140 uint64_t _page_file_usage;
141 uint64_t _peak_page_file_usage;
150 int _driver_sub_version;
153 int _driver_date_month;
154 int _driver_date_day;
155 int _driver_date_year;
158 std::string _cpu_vendor_string;
159 std::string _cpu_brand_string;
160 unsigned int _cpu_version_information;
161 unsigned int _cpu_brand_index;
163 uint64_t _cpu_frequency;
165 uint64_t _maximum_cpu_frequency;
166 uint64_t _current_cpu_frequency;
169 int _num_logical_cpus;
172 int (*_update_cpu_frequency_function) (
int processor_number,
DisplayInformation *display_information);
174 int _os_version_major;
175 int _os_version_minor;
176 int _os_version_build;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.