Panda3D
Public Types | Public Member Functions | Static Public Member Functions | List of all members
DisplayInformation Class Reference

This class contains various display information. More...

Public Types

enum  DetectionState {
  DS_unknown = 0, DS_success = 1, DS_direct_3d_create_error = 2, DS_create_window_error = 3,
  DS_create_device_error = 4
}
 

Public Member Functions

 __init__ ()
 
 __init__ (const DisplayInformation)
 
uint64_t getAvailablePageFileSize ()
 
uint64_t getAvailablePhysicalMemory ()
 
uint64_t getAvailableProcessVirtualMemory ()
 
unsigned int getCpuBrandIndex ()
 
str getCpuBrandString ()
 
uint64_t getCpuFrequency ()
 
str getCpuVendorString ()
 
unsigned int getCpuVersionInformation ()
 
uint64_t getCurrentCpuFrequency ()
 
int getDeviceId ()
 
const DisplayMode getDisplayMode (int display_index)
 
int getDisplayModeBitsPerPixel (int display_index)
 
int getDisplayModeFullscreenOnly (int display_index)
 
int getDisplayModeHeight (int display_index)
 
int getDisplayModeRefreshRate (int display_index)
 
list getDisplayModes ()
 
int getDisplayModeWidth (int display_index)
 
int getDisplayState ()
 
int getDriverBuild ()
 
int getDriverDateDay ()
 
int getDriverDateMonth ()
 
int getDriverDateYear ()
 
int getDriverProduct ()
 
int getDriverSubVersion ()
 
int getDriverVersion ()
 
uint64_t getMaximumCpuFrequency ()
 
int getMaximumWindowHeight ()
 
int getMaximumWindowWidth ()
 
int getMemoryLoad ()
 
int getNumCpuCores ()
 Returns the number of individual CPU cores in the system, or 0 if this number is not available. More...
 
int getNumLogicalCpus ()
 Returns the number of logical CPU's in the system, or 0 if this number is not available. More...
 
int getOsPlatformId ()
 Returns -1 if not set. More...
 
int getOsVersionBuild ()
 Returns -1 if not set. More...
 
int getOsVersionMajor ()
 Returns -1 if not set. More...
 
int getOsVersionMinor ()
 Returns -1 if not set. More...
 
uint64_t getPageFaultCount ()
 
uint64_t getPageFileSize ()
 
uint64_t getPageFileUsage ()
 
uint64_t getPeakPageFileUsage ()
 
uint64_t getPeakProcessMemory ()
 
uint64_t getPhysicalMemory ()
 
uint64_t getProcessMemory ()
 
uint64_t getProcessVirtualMemory ()
 
GraphicsStateGuardian::ShaderModel getShaderModel ()
 
int getTextureMemory ()
 
int getTotalDisplayModes ()
 
int getVendorId ()
 
int getVideoMemory ()
 
int getWindowBitsPerPixel ()
 
 updateCpuFrequency (int processor_number)
 
 updateMemoryInformation ()
 

Static Public Member Functions

static uint64_t getCpuTime ()
 Equivalent to the rdtsc processor instruction. More...
 

Detailed Description

This class contains various display information.

Member Enumeration Documentation

◆ DetectionState

Enumerator
DS_unknown 
DS_success 
DS_direct_3d_create_error 
DS_create_window_error 
DS_create_device_error 

Member Function Documentation

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( const  DisplayInformation)

◆ getAvailablePageFileSize()

uint64_t getAvailablePageFileSize ( )

◆ getAvailablePhysicalMemory()

uint64_t getAvailablePhysicalMemory ( )

◆ getAvailableProcessVirtualMemory()

uint64_t getAvailableProcessVirtualMemory ( )

◆ getCpuBrandIndex()

unsigned int getCpuBrandIndex ( )

◆ getCpuBrandString()

str getCpuBrandString ( )

◆ getCpuFrequency()

uint64_t getCpuFrequency ( )

◆ getCpuTime()

static uint64_t getCpuTime ( )
static

Equivalent to the rdtsc processor instruction.

◆ getCpuVendorString()

str getCpuVendorString ( )

◆ getCpuVersionInformation()

unsigned int getCpuVersionInformation ( )

◆ getCurrentCpuFrequency()

uint64_t getCurrentCpuFrequency ( )

◆ getDeviceId()

int getDeviceId ( )

◆ getDisplayMode()

const DisplayMode getDisplayMode ( int  display_index)

◆ getDisplayModeBitsPerPixel()

int getDisplayModeBitsPerPixel ( int  display_index)

◆ getDisplayModeFullscreenOnly()

int getDisplayModeFullscreenOnly ( int  display_index)

◆ getDisplayModeHeight()

int getDisplayModeHeight ( int  display_index)

◆ getDisplayModeRefreshRate()

int getDisplayModeRefreshRate ( int  display_index)

◆ getDisplayModes()

list getDisplayModes ( )

◆ getDisplayModeWidth()

int getDisplayModeWidth ( int  display_index)

◆ getDisplayState()

int getDisplayState ( )

◆ getDriverBuild()

int getDriverBuild ( )

◆ getDriverDateDay()

int getDriverDateDay ( )

◆ getDriverDateMonth()

int getDriverDateMonth ( )

◆ getDriverDateYear()

int getDriverDateYear ( )

◆ getDriverProduct()

int getDriverProduct ( )

◆ getDriverSubVersion()

int getDriverSubVersion ( )

◆ getDriverVersion()

int getDriverVersion ( )

◆ getMaximumCpuFrequency()

uint64_t getMaximumCpuFrequency ( )

◆ getMaximumWindowHeight()

int getMaximumWindowHeight ( )

◆ getMaximumWindowWidth()

int getMaximumWindowWidth ( )

◆ getMemoryLoad()

int getMemoryLoad ( )

◆ getNumCpuCores()

int getNumCpuCores ( )

Returns the number of individual CPU cores in the system, or 0 if this number is not available.

A hyperthreaded CPU counts once here.

◆ getNumLogicalCpus()

int getNumLogicalCpus ( )

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.

◆ getOsPlatformId()

int getOsPlatformId ( )

Returns -1 if not set.

◆ getOsVersionBuild()

int getOsVersionBuild ( )

Returns -1 if not set.

◆ getOsVersionMajor()

int getOsVersionMajor ( )

Returns -1 if not set.

◆ getOsVersionMinor()

int getOsVersionMinor ( )

Returns -1 if not set.

◆ getPageFaultCount()

uint64_t getPageFaultCount ( )

◆ getPageFileSize()

uint64_t getPageFileSize ( )

◆ getPageFileUsage()

uint64_t getPageFileUsage ( )

◆ getPeakPageFileUsage()

uint64_t getPeakPageFileUsage ( )

◆ getPeakProcessMemory()

uint64_t getPeakProcessMemory ( )

◆ getPhysicalMemory()

uint64_t getPhysicalMemory ( )

◆ getProcessMemory()

uint64_t getProcessMemory ( )

◆ getProcessVirtualMemory()

uint64_t getProcessVirtualMemory ( )

◆ getShaderModel()

◆ getTextureMemory()

int getTextureMemory ( )

◆ getTotalDisplayModes()

int getTotalDisplayModes ( )

◆ getVendorId()

int getVendorId ( )

◆ getVideoMemory()

int getVideoMemory ( )

◆ getWindowBitsPerPixel()

int getWindowBitsPerPixel ( )

◆ updateCpuFrequency()

updateCpuFrequency ( int  processor_number)

◆ updateMemoryInformation()

updateMemoryInformation ( )