Panda3D
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
DisplayInformation Class Reference

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 DisplayModeget_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.
 

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 _current_display_mode_index
 
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_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
 

Detailed Description

This class contains various display information.

Definition at line 36 of file displayInformation.h.

Member Enumeration Documentation

◆ DetectionState

enum DisplayInformation::DetectionState

Definition at line 38 of file displayInformation.h.

Constructor & Destructor Documentation

◆ ~DisplayInformation()

DisplayInformation::~DisplayInformation ( )

Definition at line 65 of file displayInformation.cxx.

◆ DisplayInformation()

DisplayInformation::DisplayInformation ( )

Definition at line 75 of file displayInformation.cxx.

Member Function Documentation

◆ get_available_page_file_size()

uint64_t DisplayInformation::get_available_page_file_size ( )

Definition at line 356 of file displayInformation.cxx.

◆ get_available_physical_memory()

uint64_t DisplayInformation::get_available_physical_memory ( )

Definition at line 340 of file displayInformation.cxx.

◆ get_available_process_virtual_memory()

uint64_t DisplayInformation::get_available_process_virtual_memory ( )

Definition at line 372 of file displayInformation.cxx.

◆ get_cpu_brand_index()

unsigned int DisplayInformation::get_cpu_brand_index ( )

Definition at line 524 of file displayInformation.cxx.

◆ get_cpu_brand_string()

const std::string & DisplayInformation::get_cpu_brand_string ( ) const

Definition at line 508 of file displayInformation.cxx.

◆ get_cpu_frequency()

uint64_t DisplayInformation::get_cpu_frequency ( )

Definition at line 532 of file displayInformation.cxx.

◆ get_cpu_time()

uint64_t DisplayInformation::get_cpu_time ( )
static

Equivalent to the rdtsc processor instruction.

Definition at line 540 of file displayInformation.cxx.

◆ get_cpu_vendor_string()

const std::string & DisplayInformation::get_cpu_vendor_string ( ) const

Definition at line 500 of file displayInformation.cxx.

◆ get_cpu_version_information()

unsigned int DisplayInformation::get_cpu_version_information ( )

Definition at line 516 of file displayInformation.cxx.

◆ get_current_cpu_frequency()

uint64_t DisplayInformation::get_current_cpu_frequency ( )

Definition at line 566 of file displayInformation.cxx.

◆ get_current_display_mode_index()

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.

◆ get_device_id()

int DisplayInformation::get_device_id ( )

Definition at line 436 of file displayInformation.cxx.

◆ get_display_mode_bits_per_pixel()

int DisplayInformation::get_display_mode_bits_per_pixel ( int display_index)

Definition at line 253 of file displayInformation.cxx.

◆ get_display_mode_fullscreen_only()

int DisplayInformation::get_display_mode_fullscreen_only ( int display_index)

Definition at line 283 of file displayInformation.cxx.

◆ get_display_mode_height()

int DisplayInformation::get_display_mode_height ( int display_index)

Definition at line 238 of file displayInformation.cxx.

◆ get_display_mode_refresh_rate()

int DisplayInformation::get_display_mode_refresh_rate ( int display_index)

Definition at line 268 of file displayInformation.cxx.

◆ get_display_mode_width()

int DisplayInformation::get_display_mode_width ( int display_index)

Definition at line 223 of file displayInformation.cxx.

◆ get_display_state()

int DisplayInformation::get_display_state ( )

Definition at line 161 of file displayInformation.cxx.

◆ get_driver_build()

int DisplayInformation::get_driver_build ( )

Definition at line 468 of file displayInformation.cxx.

◆ get_driver_date_day()

int DisplayInformation::get_driver_date_day ( )

Definition at line 484 of file displayInformation.cxx.

◆ get_driver_date_month()

int DisplayInformation::get_driver_date_month ( )

Definition at line 476 of file displayInformation.cxx.

◆ get_driver_date_year()

int DisplayInformation::get_driver_date_year ( )

Definition at line 492 of file displayInformation.cxx.

◆ get_driver_product()

int DisplayInformation::get_driver_product ( )

Definition at line 444 of file displayInformation.cxx.

◆ get_driver_sub_version()

int DisplayInformation::get_driver_sub_version ( )

Definition at line 460 of file displayInformation.cxx.

◆ get_driver_version()

int DisplayInformation::get_driver_version ( )

Definition at line 452 of file displayInformation.cxx.

◆ get_maximum_cpu_frequency()

uint64_t DisplayInformation::get_maximum_cpu_frequency ( )

Definition at line 558 of file displayInformation.cxx.

◆ get_maximum_window_height()

int DisplayInformation::get_maximum_window_height ( )

Definition at line 176 of file displayInformation.cxx.

◆ get_maximum_window_width()

int DisplayInformation::get_maximum_window_width ( )

Definition at line 168 of file displayInformation.cxx.

◆ get_memory_load()

int DisplayInformation::get_memory_load ( )

Definition at line 380 of file displayInformation.cxx.

◆ get_num_cpu_cores()

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.

◆ get_num_logical_cpus()

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.

◆ get_os_platform_id()

int DisplayInformation::get_os_platform_id ( )

Returns -1 if not set.

Definition at line 626 of file displayInformation.cxx.

◆ get_os_version_build()

int DisplayInformation::get_os_version_build ( )

Returns -1 if not set.

Definition at line 618 of file displayInformation.cxx.

◆ get_os_version_major()

int DisplayInformation::get_os_version_major ( )

Returns -1 if not set.

Definition at line 602 of file displayInformation.cxx.

◆ get_os_version_minor()

int DisplayInformation::get_os_version_minor ( )

Returns -1 if not set.

Definition at line 610 of file displayInformation.cxx.

◆ get_page_fault_count()

uint64_t DisplayInformation::get_page_fault_count ( )

Definition at line 388 of file displayInformation.cxx.

◆ get_page_file_size()

uint64_t DisplayInformation::get_page_file_size ( )

Definition at line 348 of file displayInformation.cxx.

◆ get_page_file_usage()

uint64_t DisplayInformation::get_page_file_usage ( )

Definition at line 412 of file displayInformation.cxx.

◆ get_peak_page_file_usage()

uint64_t DisplayInformation::get_peak_page_file_usage ( )

Definition at line 420 of file displayInformation.cxx.

◆ get_peak_process_memory()

uint64_t DisplayInformation::get_peak_process_memory ( )

Definition at line 404 of file displayInformation.cxx.

◆ get_physical_memory()

uint64_t DisplayInformation::get_physical_memory ( )

Definition at line 332 of file displayInformation.cxx.

◆ get_process_memory()

uint64_t DisplayInformation::get_process_memory ( )

Definition at line 396 of file displayInformation.cxx.

◆ get_process_virtual_memory()

uint64_t DisplayInformation::get_process_virtual_memory ( )

Definition at line 364 of file displayInformation.cxx.

◆ get_shader_model()

GraphicsStateGuardian::ShaderModel DisplayInformation::get_shader_model ( )

Definition at line 298 of file displayInformation.cxx.

◆ get_texture_memory()

int DisplayInformation::get_texture_memory ( )

Definition at line 314 of file displayInformation.cxx.

◆ get_vendor_id()

int DisplayInformation::get_vendor_id ( )

Definition at line 428 of file displayInformation.cxx.

◆ get_video_memory()

int DisplayInformation::get_video_memory ( )

Definition at line 306 of file displayInformation.cxx.

◆ get_window_bits_per_pixel()

int DisplayInformation::get_window_bits_per_pixel ( )

Definition at line 184 of file displayInformation.cxx.

◆ update_cpu_frequency()

void DisplayInformation::update_cpu_frequency ( int processor_number)

Definition at line 574 of file displayInformation.cxx.

◆ update_memory_information()

void DisplayInformation::update_memory_information ( )

Definition at line 322 of file displayInformation.cxx.

Member Data Documentation

◆ _available_page_file_size

uint64_t DisplayInformation::_available_page_file_size

Definition at line 135 of file displayInformation.h.

◆ _available_physical_memory

uint64_t DisplayInformation::_available_physical_memory

Definition at line 133 of file displayInformation.h.

◆ _available_process_virtual_memory

uint64_t DisplayInformation::_available_process_virtual_memory

Definition at line 137 of file displayInformation.h.

◆ _cpu_brand_index

unsigned int DisplayInformation::_cpu_brand_index

Definition at line 163 of file displayInformation.h.

◆ _cpu_brand_string

std::string DisplayInformation::_cpu_brand_string

Definition at line 161 of file displayInformation.h.

◆ _cpu_frequency

uint64_t DisplayInformation::_cpu_frequency

Definition at line 165 of file displayInformation.h.

◆ _cpu_vendor_string

std::string DisplayInformation::_cpu_vendor_string

Definition at line 160 of file displayInformation.h.

◆ _cpu_version_information

unsigned int DisplayInformation::_cpu_version_information

Definition at line 162 of file displayInformation.h.

◆ _current_cpu_frequency

uint64_t DisplayInformation::_current_cpu_frequency

Definition at line 168 of file displayInformation.h.

◆ _current_display_mode_index

int DisplayInformation::_current_display_mode_index

Definition at line 121 of file displayInformation.h.

◆ _device_id

int DisplayInformation::_device_id

Definition at line 148 of file displayInformation.h.

◆ _display_mode_array

DisplayMode* DisplayInformation::_display_mode_array

Definition at line 127 of file displayInformation.h.

◆ _driver_build

int DisplayInformation::_driver_build

Definition at line 153 of file displayInformation.h.

◆ _driver_date_day

int DisplayInformation::_driver_date_day

Definition at line 156 of file displayInformation.h.

◆ _driver_date_month

int DisplayInformation::_driver_date_month

Definition at line 155 of file displayInformation.h.

◆ _driver_date_year

int DisplayInformation::_driver_date_year

Definition at line 157 of file displayInformation.h.

◆ _driver_product

int DisplayInformation::_driver_product

Definition at line 150 of file displayInformation.h.

◆ _driver_sub_version

int DisplayInformation::_driver_sub_version

Definition at line 152 of file displayInformation.h.

◆ _driver_version

int DisplayInformation::_driver_version

Definition at line 151 of file displayInformation.h.

◆ _get_device_caps_state

int DisplayInformation::_get_device_caps_state

Definition at line 122 of file displayInformation.h.

◆ _get_memory_information_function

void(* DisplayInformation::_get_memory_information_function) (DisplayInformation *display_information)

Definition at line 173 of file displayInformation.h.

◆ _maximum_cpu_frequency

uint64_t DisplayInformation::_maximum_cpu_frequency

Definition at line 167 of file displayInformation.h.

◆ _maximum_window_height

int DisplayInformation::_maximum_window_height

Definition at line 124 of file displayInformation.h.

◆ _maximum_window_width

int DisplayInformation::_maximum_window_width

Definition at line 123 of file displayInformation.h.

◆ _memory_load

int DisplayInformation::_memory_load

Definition at line 145 of file displayInformation.h.

◆ _num_cpu_cores

int DisplayInformation::_num_cpu_cores

Definition at line 170 of file displayInformation.h.

◆ _num_logical_cpus

int DisplayInformation::_num_logical_cpus

Definition at line 171 of file displayInformation.h.

◆ _os_platform_id

int DisplayInformation::_os_platform_id

Definition at line 179 of file displayInformation.h.

◆ _os_version_build

int DisplayInformation::_os_version_build

Definition at line 178 of file displayInformation.h.

◆ _os_version_major

int DisplayInformation::_os_version_major

Definition at line 176 of file displayInformation.h.

◆ _os_version_minor

int DisplayInformation::_os_version_minor

Definition at line 177 of file displayInformation.h.

◆ _page_fault_count

uint64_t DisplayInformation::_page_fault_count

Definition at line 139 of file displayInformation.h.

◆ _page_file_size

uint64_t DisplayInformation::_page_file_size

Definition at line 134 of file displayInformation.h.

◆ _page_file_usage

uint64_t DisplayInformation::_page_file_usage

Definition at line 142 of file displayInformation.h.

◆ _peak_page_file_usage

uint64_t DisplayInformation::_peak_page_file_usage

Definition at line 143 of file displayInformation.h.

◆ _peak_process_memory

uint64_t DisplayInformation::_peak_process_memory

Definition at line 141 of file displayInformation.h.

◆ _physical_memory

uint64_t DisplayInformation::_physical_memory

Definition at line 132 of file displayInformation.h.

◆ _process_memory

uint64_t DisplayInformation::_process_memory

Definition at line 140 of file displayInformation.h.

◆ _process_virtual_memory

uint64_t DisplayInformation::_process_virtual_memory

Definition at line 136 of file displayInformation.h.

◆ _shader_model

GraphicsStateGuardian::ShaderModel DisplayInformation::_shader_model

Definition at line 128 of file displayInformation.h.

◆ _state

DetectionState DisplayInformation::_state

Definition at line 120 of file displayInformation.h.

◆ _texture_memory

int DisplayInformation::_texture_memory

Definition at line 130 of file displayInformation.h.

◆ _total_display_modes

int DisplayInformation::_total_display_modes

Definition at line 126 of file displayInformation.h.

◆ _update_cpu_frequency_function

int(* DisplayInformation::_update_cpu_frequency_function) (int processor_number, DisplayInformation *display_information)

Definition at line 174 of file displayInformation.h.

◆ _vendor_id

int DisplayInformation::_vendor_id

Definition at line 147 of file displayInformation.h.

◆ _video_memory

int DisplayInformation::_video_memory

Definition at line 129 of file displayInformation.h.

◆ _window_bits_per_pixel

int DisplayInformation::_window_bits_per_pixel

Definition at line 125 of file displayInformation.h.

◆ get_display_mode

const DisplayMode & DisplayInformation::get_display_mode

Definition at line 58 of file displayInformation.h.

◆ get_total_display_modes

int DisplayInformation::get_total_display_modes

Definition at line 58 of file displayInformation.h.


The documentation for this class was generated from the following files: