Panda3D
Public Types | 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__ ()
 
PNUint64 getAvailablePageFileSize ()
 
PNUint64 getAvailablePhysicalMemory ()
 
PNUint64 getAvailableProcessVirtualMemory ()
 
unsigned int getCpuBrandIndex ()
 
str getCpuBrandString ()
 
PNUint64 getCpuFrequency ()
 
unsigned int getCpuIdData (int index)
 Returns part of cpu id binary data based on the index. More...
 
int getCpuIdSize ()
 Returns the number of 32-bit values for cpu id binary data. More...
 
int getCpuIdVersion ()
 
PNUint64 getCpuTime ()
 
str getCpuVendorString ()
 
unsigned int getCpuVersionInformation ()
 
PNUint64 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 ()
 
PNUint64 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. A hyperthreaded CPU counts once here. More...
 
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. 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...
 
PNUint64 getPageFaultCount ()
 
PNUint64 getPageFileSize ()
 
PNUint64 getPageFileUsage ()
 
PNUint64 getPeakPageFileUsage ()
 
PNUint64 getPeakProcessMemory ()
 
PNUint64 getPhysicalMemory ()
 
PNUint64 getProcessMemory ()
 
PNUint64 getProcessVirtualMemory ()
 
int getShaderModel ()
 
int getTextureMemory ()
 
int getTotalDisplayModes ()
 
int getVendorId ()
 
int getVideoMemory ()
 
int getWindowBitsPerPixel ()
 
 updateCpuFrequency (int processor_number)
 
 updateMemoryInformation ()
 

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__()

__init__ ( )

◆ getAvailablePageFileSize()

PNUint64 getAvailablePageFileSize ( )

◆ getAvailablePhysicalMemory()

PNUint64 getAvailablePhysicalMemory ( )

◆ getAvailableProcessVirtualMemory()

PNUint64 getAvailableProcessVirtualMemory ( )

◆ getCpuBrandIndex()

unsigned int getCpuBrandIndex ( )

◆ getCpuBrandString()

str getCpuBrandString ( )

◆ getCpuFrequency()

PNUint64 getCpuFrequency ( )

◆ getCpuIdData()

unsigned int getCpuIdData ( int  index)

Returns part of cpu id binary data based on the index.

◆ getCpuIdSize()

int getCpuIdSize ( )

Returns the number of 32-bit values for cpu id binary data.

◆ getCpuIdVersion()

int getCpuIdVersion ( )

◆ getCpuTime()

PNUint64 getCpuTime ( )

◆ getCpuVendorString()

str getCpuVendorString ( )

◆ getCpuVersionInformation()

unsigned int getCpuVersionInformation ( )

◆ getCurrentCpuFrequency()

PNUint64 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()

PNUint64 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()

PNUint64 getPageFaultCount ( )

◆ getPageFileSize()

PNUint64 getPageFileSize ( )

◆ getPageFileUsage()

PNUint64 getPageFileUsage ( )

◆ getPeakPageFileUsage()

PNUint64 getPeakPageFileUsage ( )

◆ getPeakProcessMemory()

PNUint64 getPeakProcessMemory ( )

◆ getPhysicalMemory()

PNUint64 getPhysicalMemory ( )

◆ getProcessMemory()

PNUint64 getProcessMemory ( )

◆ getProcessVirtualMemory()

PNUint64 getProcessVirtualMemory ( )

◆ getShaderModel()

int getShaderModel ( )

◆ getTextureMemory()

int getTextureMemory ( )

◆ getTotalDisplayModes()

int getTotalDisplayModes ( )

◆ getVendorId()

int getVendorId ( )

◆ getVideoMemory()

int getVideoMemory ( )

◆ getWindowBitsPerPixel()

int getWindowBitsPerPixel ( )

◆ updateCpuFrequency()

updateCpuFrequency ( int  processor_number)

◆ updateMemoryInformation()

updateMemoryInformation ( )