Panda3D
|
This class contains various display information. More...
#include "displayInformation.h"
Public Types | |
enum | DetectionState { DS_unknown , DS_success , DS_direct_3d_create_error , DS_create_window_error , DS_create_device_error } |
Public Member Functions | |
uint64_t | get_available_page_file_size () |
uint64_t | get_available_physical_memory () |
uint64_t | get_available_process_virtual_memory () |
unsigned int | get_cpu_brand_index () |
const std::string & | get_cpu_brand_string () const |
uint64_t | get_cpu_frequency () |
const std::string & | get_cpu_vendor_string () const |
unsigned int | get_cpu_version_information () |
uint64_t | get_current_cpu_frequency () |
int | get_current_display_mode_index () const |
Returns the index of the current display mode (determined at the time of application start) in the display mode array, or -1 if this could not be determined. | |
int | get_device_id () |
const DisplayMode & | get_display_mode (int display_index) |
int | get_display_mode_bits_per_pixel (int display_index) |
int | get_display_mode_fullscreen_only (int display_index) |
int | get_display_mode_height (int display_index) |
int | get_display_mode_refresh_rate (int display_index) |
int | get_display_mode_width (int display_index) |
int | get_display_state () |
int | get_driver_build () |
int | get_driver_date_day () |
int | get_driver_date_month () |
int | get_driver_date_year () |
int | get_driver_product () |
int | get_driver_sub_version () |
int | get_driver_version () |
uint64_t | get_maximum_cpu_frequency () |
int | get_maximum_window_height () |
int | get_maximum_window_width () |
int | get_memory_load () |
int | get_num_cpu_cores () |
Returns the number of individual CPU cores in the system, or 0 if this number is not available. | |
int | get_num_logical_cpus () |
Returns the number of logical CPU's in the system, or 0 if this number is not available. | |
int | get_os_platform_id () |
Returns -1 if not set. | |
int | get_os_version_build () |
Returns -1 if not set. | |
int | get_os_version_major () |
Returns -1 if not set. | |
int | get_os_version_minor () |
Returns -1 if not set. | |
uint64_t | get_page_fault_count () |
uint64_t | get_page_file_size () |
uint64_t | get_page_file_usage () |
uint64_t | get_peak_page_file_usage () |
uint64_t | get_peak_process_memory () |
uint64_t | get_physical_memory () |
uint64_t | get_process_memory () |
uint64_t | get_process_virtual_memory () |
GraphicsStateGuardian::ShaderModel | get_shader_model () |
int | get_texture_memory () |
int | get_total_display_modes () |
int | get_vendor_id () |
int | get_video_memory () |
int | get_window_bits_per_pixel () |
void | update_cpu_frequency (int processor_number) |
void | update_memory_information () |
Static Public Member Functions | |
static uint64_t | get_cpu_time () |
Equivalent to the rdtsc processor instruction. | |
This class contains various display information.
Definition at line 36 of file displayInformation.h.
enum DisplayInformation::DetectionState |
Definition at line 38 of file displayInformation.h.
DisplayInformation::~DisplayInformation | ( | ) |
Definition at line 65 of file displayInformation.cxx.
DisplayInformation::DisplayInformation | ( | ) |
Definition at line 75 of file displayInformation.cxx.
uint64_t DisplayInformation::get_available_page_file_size | ( | ) |
Definition at line 356 of file displayInformation.cxx.
uint64_t DisplayInformation::get_available_physical_memory | ( | ) |
Definition at line 340 of file displayInformation.cxx.
uint64_t DisplayInformation::get_available_process_virtual_memory | ( | ) |
Definition at line 372 of file displayInformation.cxx.
unsigned int DisplayInformation::get_cpu_brand_index | ( | ) |
Definition at line 524 of file displayInformation.cxx.
const std::string & DisplayInformation::get_cpu_brand_string | ( | ) | const |
Definition at line 508 of file displayInformation.cxx.
uint64_t DisplayInformation::get_cpu_frequency | ( | ) |
Definition at line 532 of file displayInformation.cxx.
|
static |
Equivalent to the rdtsc processor instruction.
Definition at line 540 of file displayInformation.cxx.
const std::string & DisplayInformation::get_cpu_vendor_string | ( | ) | const |
Definition at line 500 of file displayInformation.cxx.
unsigned int DisplayInformation::get_cpu_version_information | ( | ) |
Definition at line 516 of file displayInformation.cxx.
uint64_t DisplayInformation::get_current_cpu_frequency | ( | ) |
Definition at line 566 of file displayInformation.cxx.
int DisplayInformation::get_current_display_mode_index | ( | ) | const |
Returns the index of the current display mode (determined at the time of application start) in the display mode array, or -1 if this could not be determined.
Definition at line 215 of file displayInformation.cxx.
int DisplayInformation::get_device_id | ( | ) |
Definition at line 436 of file displayInformation.cxx.
int DisplayInformation::get_display_mode_bits_per_pixel | ( | int | display_index | ) |
Definition at line 253 of file displayInformation.cxx.
int DisplayInformation::get_display_mode_fullscreen_only | ( | int | display_index | ) |
Definition at line 283 of file displayInformation.cxx.
int DisplayInformation::get_display_mode_height | ( | int | display_index | ) |
Definition at line 238 of file displayInformation.cxx.
int DisplayInformation::get_display_mode_refresh_rate | ( | int | display_index | ) |
Definition at line 268 of file displayInformation.cxx.
int DisplayInformation::get_display_mode_width | ( | int | display_index | ) |
Definition at line 223 of file displayInformation.cxx.
int DisplayInformation::get_display_state | ( | ) |
Definition at line 161 of file displayInformation.cxx.
int DisplayInformation::get_driver_build | ( | ) |
Definition at line 468 of file displayInformation.cxx.
int DisplayInformation::get_driver_date_day | ( | ) |
Definition at line 484 of file displayInformation.cxx.
int DisplayInformation::get_driver_date_month | ( | ) |
Definition at line 476 of file displayInformation.cxx.
int DisplayInformation::get_driver_date_year | ( | ) |
Definition at line 492 of file displayInformation.cxx.
int DisplayInformation::get_driver_product | ( | ) |
Definition at line 444 of file displayInformation.cxx.
int DisplayInformation::get_driver_sub_version | ( | ) |
Definition at line 460 of file displayInformation.cxx.
int DisplayInformation::get_driver_version | ( | ) |
Definition at line 452 of file displayInformation.cxx.
uint64_t DisplayInformation::get_maximum_cpu_frequency | ( | ) |
Definition at line 558 of file displayInformation.cxx.
int DisplayInformation::get_maximum_window_height | ( | ) |
Definition at line 176 of file displayInformation.cxx.
int DisplayInformation::get_maximum_window_width | ( | ) |
Definition at line 168 of file displayInformation.cxx.
int DisplayInformation::get_memory_load | ( | ) |
Definition at line 380 of file displayInformation.cxx.
int DisplayInformation::get_num_cpu_cores | ( | ) |
Returns the number of individual CPU cores in the system, or 0 if this number is not available.
A hyperthreaded CPU counts once here.
Definition at line 585 of file displayInformation.cxx.
int DisplayInformation::get_num_logical_cpus | ( | ) |
Returns the number of logical CPU's in the system, or 0 if this number is not available.
A hyperthreaded CPU counts as two or more here.
Definition at line 594 of file displayInformation.cxx.
int DisplayInformation::get_os_platform_id | ( | ) |
Returns -1 if not set.
Definition at line 626 of file displayInformation.cxx.
int DisplayInformation::get_os_version_build | ( | ) |
Returns -1 if not set.
Definition at line 618 of file displayInformation.cxx.
int DisplayInformation::get_os_version_major | ( | ) |
Returns -1 if not set.
Definition at line 602 of file displayInformation.cxx.
int DisplayInformation::get_os_version_minor | ( | ) |
Returns -1 if not set.
Definition at line 610 of file displayInformation.cxx.
uint64_t DisplayInformation::get_page_fault_count | ( | ) |
Definition at line 388 of file displayInformation.cxx.
uint64_t DisplayInformation::get_page_file_size | ( | ) |
Definition at line 348 of file displayInformation.cxx.
uint64_t DisplayInformation::get_page_file_usage | ( | ) |
Definition at line 412 of file displayInformation.cxx.
uint64_t DisplayInformation::get_peak_page_file_usage | ( | ) |
Definition at line 420 of file displayInformation.cxx.
uint64_t DisplayInformation::get_peak_process_memory | ( | ) |
Definition at line 404 of file displayInformation.cxx.
uint64_t DisplayInformation::get_physical_memory | ( | ) |
Definition at line 332 of file displayInformation.cxx.
uint64_t DisplayInformation::get_process_memory | ( | ) |
Definition at line 396 of file displayInformation.cxx.
uint64_t DisplayInformation::get_process_virtual_memory | ( | ) |
Definition at line 364 of file displayInformation.cxx.
GraphicsStateGuardian::ShaderModel DisplayInformation::get_shader_model | ( | ) |
Definition at line 298 of file displayInformation.cxx.
int DisplayInformation::get_texture_memory | ( | ) |
Definition at line 314 of file displayInformation.cxx.
int DisplayInformation::get_vendor_id | ( | ) |
Definition at line 428 of file displayInformation.cxx.
int DisplayInformation::get_video_memory | ( | ) |
Definition at line 306 of file displayInformation.cxx.
int DisplayInformation::get_window_bits_per_pixel | ( | ) |
Definition at line 184 of file displayInformation.cxx.
void DisplayInformation::update_cpu_frequency | ( | int | processor_number | ) |
Definition at line 574 of file displayInformation.cxx.
void DisplayInformation::update_memory_information | ( | ) |
Definition at line 322 of file displayInformation.cxx.
uint64_t DisplayInformation::_available_page_file_size |
Definition at line 135 of file displayInformation.h.
uint64_t DisplayInformation::_available_physical_memory |
Definition at line 133 of file displayInformation.h.
uint64_t DisplayInformation::_available_process_virtual_memory |
Definition at line 137 of file displayInformation.h.
unsigned int DisplayInformation::_cpu_brand_index |
Definition at line 163 of file displayInformation.h.
std::string DisplayInformation::_cpu_brand_string |
Definition at line 161 of file displayInformation.h.
uint64_t DisplayInformation::_cpu_frequency |
Definition at line 165 of file displayInformation.h.
std::string DisplayInformation::_cpu_vendor_string |
Definition at line 160 of file displayInformation.h.
unsigned int DisplayInformation::_cpu_version_information |
Definition at line 162 of file displayInformation.h.
uint64_t DisplayInformation::_current_cpu_frequency |
Definition at line 168 of file displayInformation.h.
int DisplayInformation::_current_display_mode_index |
Definition at line 121 of file displayInformation.h.
int DisplayInformation::_device_id |
Definition at line 148 of file displayInformation.h.
DisplayMode* DisplayInformation::_display_mode_array |
Definition at line 127 of file displayInformation.h.
int DisplayInformation::_driver_build |
Definition at line 153 of file displayInformation.h.
int DisplayInformation::_driver_date_day |
Definition at line 156 of file displayInformation.h.
int DisplayInformation::_driver_date_month |
Definition at line 155 of file displayInformation.h.
int DisplayInformation::_driver_date_year |
Definition at line 157 of file displayInformation.h.
int DisplayInformation::_driver_product |
Definition at line 150 of file displayInformation.h.
int DisplayInformation::_driver_sub_version |
Definition at line 152 of file displayInformation.h.
int DisplayInformation::_driver_version |
Definition at line 151 of file displayInformation.h.
int DisplayInformation::_get_device_caps_state |
Definition at line 122 of file displayInformation.h.
void(* DisplayInformation::_get_memory_information_function) (DisplayInformation *display_information) |
Definition at line 173 of file displayInformation.h.
uint64_t DisplayInformation::_maximum_cpu_frequency |
Definition at line 167 of file displayInformation.h.
int DisplayInformation::_maximum_window_height |
Definition at line 124 of file displayInformation.h.
int DisplayInformation::_maximum_window_width |
Definition at line 123 of file displayInformation.h.
int DisplayInformation::_memory_load |
Definition at line 145 of file displayInformation.h.
int DisplayInformation::_num_cpu_cores |
Definition at line 170 of file displayInformation.h.
int DisplayInformation::_num_logical_cpus |
Definition at line 171 of file displayInformation.h.
int DisplayInformation::_os_platform_id |
Definition at line 179 of file displayInformation.h.
int DisplayInformation::_os_version_build |
Definition at line 178 of file displayInformation.h.
int DisplayInformation::_os_version_major |
Definition at line 176 of file displayInformation.h.
int DisplayInformation::_os_version_minor |
Definition at line 177 of file displayInformation.h.
uint64_t DisplayInformation::_page_fault_count |
Definition at line 139 of file displayInformation.h.
uint64_t DisplayInformation::_page_file_size |
Definition at line 134 of file displayInformation.h.
uint64_t DisplayInformation::_page_file_usage |
Definition at line 142 of file displayInformation.h.
uint64_t DisplayInformation::_peak_page_file_usage |
Definition at line 143 of file displayInformation.h.
uint64_t DisplayInformation::_peak_process_memory |
Definition at line 141 of file displayInformation.h.
uint64_t DisplayInformation::_physical_memory |
Definition at line 132 of file displayInformation.h.
uint64_t DisplayInformation::_process_memory |
Definition at line 140 of file displayInformation.h.
uint64_t DisplayInformation::_process_virtual_memory |
Definition at line 136 of file displayInformation.h.
GraphicsStateGuardian::ShaderModel DisplayInformation::_shader_model |
Definition at line 128 of file displayInformation.h.
DetectionState DisplayInformation::_state |
Definition at line 120 of file displayInformation.h.
int DisplayInformation::_texture_memory |
Definition at line 130 of file displayInformation.h.
int DisplayInformation::_total_display_modes |
Definition at line 126 of file displayInformation.h.
int(* DisplayInformation::_update_cpu_frequency_function) (int processor_number, DisplayInformation *display_information) |
Definition at line 174 of file displayInformation.h.
int DisplayInformation::_vendor_id |
Definition at line 147 of file displayInformation.h.
int DisplayInformation::_video_memory |
Definition at line 129 of file displayInformation.h.
int DisplayInformation::_window_bits_per_pixel |
Definition at line 125 of file displayInformation.h.
const DisplayMode & DisplayInformation::get_display_mode |
Definition at line 58 of file displayInformation.h.
int DisplayInformation::get_total_display_modes |
Definition at line 58 of file displayInformation.h.