DisplayInformation

class DisplayInformation

This class contains various display information.

Inheritance diagram

Inheritance diagram of DisplayInformation

enum DetectionState
enumerator DS_unknown = 0
enumerator DS_success = 1
enumerator DS_direct_3d_create_error = 2
enumerator DS_create_window_error = 3
enumerator DS_create_device_error = 4
DisplayInformation(void)
DisplayInformation(DisplayInformation const&) = default
uint64_t get_available_page_file_size(void)
uint64_t get_available_physical_memory(void)
uint64_t get_available_process_virtual_memory(void)
unsigned int get_cpu_brand_index(void)
std::string const &get_cpu_brand_string(void) const
uint64_t get_cpu_frequency(void)
static uint64_t get_cpu_time(void)

Equivalent to the rdtsc processor instruction.

std::string const &get_cpu_vendor_string(void) const
unsigned int get_cpu_version_information(void)
uint64_t get_current_cpu_frequency(void)
int get_current_display_mode_index(void) 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(void)
DisplayMode const &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)

Older interface for display modes.

int get_display_state(void)
int get_driver_build(void)
int get_driver_date_day(void)
int get_driver_date_month(void)
int get_driver_date_year(void)
int get_driver_product(void)
int get_driver_sub_version(void)
int get_driver_version(void)
uint64_t get_maximum_cpu_frequency(void)
int get_maximum_window_height(void)
int get_maximum_window_width(void)
int get_memory_load(void)
int get_num_cpu_cores(void)

Returns the number of individual CPU cores in the system, or 0 if this number is not available. A hyperthreaded CPU counts once here.

int get_num_logical_cpus(void)

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.

int get_os_platform_id(void)

Returns -1 if not set.

int get_os_version_build(void)

Returns -1 if not set.

int get_os_version_major(void)

Returns -1 if not set.

int get_os_version_minor(void)

Returns -1 if not set.

uint64_t get_page_fault_count(void)
uint64_t get_page_file_size(void)
uint64_t get_page_file_usage(void)
uint64_t get_peak_page_file_usage(void)
uint64_t get_peak_process_memory(void)
uint64_t get_physical_memory(void)
uint64_t get_process_memory(void)
uint64_t get_process_virtual_memory(void)
GraphicsStateGuardian::ShaderModel get_shader_model(void)
int get_texture_memory(void)
int get_total_display_modes(void)
int get_vendor_id(void)
int get_video_memory(void)
int get_window_bits_per_pixel(void)
void update_cpu_frequency(int processor_number)
void update_memory_information(void)