mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
Add vendor id and device id.
This commit is contained in:
parent
e177b34c23
commit
4f9ca2743b
@ -80,6 +80,9 @@ DisplayInformation() {
|
||||
_texture_memory = texture_memory;
|
||||
_physical_memory = physical_memory;
|
||||
_available_physical_memory = available_physical_memory;
|
||||
|
||||
_vendor_id = 0;
|
||||
_device_id = 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -265,3 +268,23 @@ PN_uint64 DisplayInformation::
|
||||
get_available_physical_memory() {
|
||||
return _available_physical_memory;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: DisplayInformation::get_vendor_id
|
||||
// Access: Published
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
int DisplayInformation::
|
||||
get_vendor_id() {
|
||||
return _vendor_id;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: DisplayInformation::get_device_id
|
||||
// Access: Published
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
int DisplayInformation::
|
||||
get_device_id() {
|
||||
return _device_id;
|
||||
}
|
||||
|
@ -72,6 +72,9 @@ PUBLISHED:
|
||||
PN_uint64 get_physical_memory();
|
||||
PN_uint64 get_available_physical_memory();
|
||||
|
||||
int get_vendor_id();
|
||||
int get_device_id();
|
||||
|
||||
public:
|
||||
DetectionState _state;
|
||||
int _get_adapter_display_mode_state;
|
||||
@ -86,6 +89,8 @@ public:
|
||||
int _texture_memory;
|
||||
PN_uint64 _physical_memory;
|
||||
PN_uint64 _available_physical_memory;
|
||||
int _vendor_id;
|
||||
int _device_id;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user