-
Notifications
You must be signed in to change notification settings - Fork 23
/
SystemInfo.h
25 lines (22 loc) · 1.01 KB
/
SystemInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include <G3D/G3D.h>
/** Information about the system being used
The current implementation is heavily Windows-specific */
class SystemInfo {
public:
// Output/runtime read parameters
String hostName; ///< System host (PC) name
String userName; ///< System username
String cpuName; ///< The vendor name of the CPU being used
int coreCount; ///< Core count for the CPU being used
String gpuName; ///< The vendor name of the GPU being used
long memCapacityMB; ///< The capacity of memory (RAM) in MB
String displayName; ///< The vendor name of the display (not currently working)
int displayXRes; ///< The horizontal size of the display in pixels
int displayYRes; ///< The vertical size of the display in pixels
int displayXSize; ///< The horizontal size of the display in mm
int displayYSize; ///< The vertical size of the display in mm
static SystemInfo get(void); // Get the system info using (windows) calls
Any toAny(const bool forceAll = false) const;
void printToLog();
};