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_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. More... | |
int | get_num_logical_cpus () |
Returns the number of logical CPU's in the system, or 0 if this number is not available. More... | |
int | get_os_platform_id () |
Returns -1 if not set. More... | |
int | get_os_version_build () |
Returns -1 if not set. More... | |
int | get_os_version_major () |
Returns -1 if not set. More... | |
int | get_os_version_minor () |
Returns -1 if not set. More... | |
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. More... | |
Public Attributes | |
uint64_t | _available_page_file_size |
uint64_t | _available_physical_memory |
uint64_t | _available_process_virtual_memory |
unsigned int | _cpu_brand_index |
std::string | _cpu_brand_string |
uint64_t | _cpu_frequency |
std::string | _cpu_vendor_string |
unsigned int | _cpu_version_information |
uint64_t | _current_cpu_frequency |
int | _device_id |
DisplayMode * | _display_mode_array |
int | _driver_build |
int | _driver_date_day |
int | _driver_date_month |
int | _driver_date_year |
int | _driver_product |
int | _driver_sub_version |
int | _driver_version |
int | _get_adapter_display_mode_state |
int | _get_device_caps_state |
void(* | _get_memory_information_function )(DisplayInformation *display_information) |
uint64_t | _maximum_cpu_frequency |
int | _maximum_window_height |
int | _maximum_window_width |
int | _memory_load |
int | _num_cpu_cores |
int | _num_logical_cpus |
int | _os_platform_id |
int | _os_version_build |
int | _os_version_major |
int | _os_version_minor |
uint64_t | _page_fault_count |
uint64_t | _page_file_size |
uint64_t | _page_file_usage |
uint64_t | _peak_page_file_usage |
uint64_t | _peak_process_memory |
uint64_t | _physical_memory |
uint64_t | _process_memory |
uint64_t | _process_virtual_memory |
GraphicsStateGuardian::ShaderModel | _shader_model |
DetectionState | _state |
int | _texture_memory |
int | _total_display_modes |
int(* | _update_cpu_frequency_function )(int processor_number, DisplayInformation *display_information) |
int | _vendor_id |
int | _video_memory |
int | _window_bits_per_pixel |
get_display_mode | |
get_total_display_modes | |
This class contains various display information.
Definition at line 36 of file displayInformation.h.
|
static |
Equivalent to the rdtsc processor instruction.
Definition at line 533 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 578 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 587 of file displayInformation.cxx.
int DisplayInformation::get_os_platform_id | ( | ) |
Returns -1 if not set.
Definition at line 619 of file displayInformation.cxx.
int DisplayInformation::get_os_version_build | ( | ) |
Returns -1 if not set.
Definition at line 611 of file displayInformation.cxx.
int DisplayInformation::get_os_version_major | ( | ) |
Returns -1 if not set.
Definition at line 595 of file displayInformation.cxx.
int DisplayInformation::get_os_version_minor | ( | ) |
Returns -1 if not set.
Definition at line 603 of file displayInformation.cxx.