(HardwareInfo) Added Cpuid to the public interface

Also improved the code


Former-commit-id: 07025657e01ff21a3581204ce74e180c3a5e7737
This commit is contained in:
Lynix
2015-02-24 17:28:02 +01:00
parent 60b6b2f4de
commit a67d66bbd8
4 changed files with 69 additions and 42 deletions

View File

@@ -14,6 +14,8 @@
class NAZARA_API NzHardwareInfo
{
public:
static void Cpuid(nzUInt32 functionId, nzUInt32 subFunctionId, nzUInt32 result[4]);
static NzString GetProcessorBrandString();
static unsigned int GetProcessorCount();
static nzProcessorVendor GetProcessorVendor();
@@ -23,6 +25,7 @@ class NAZARA_API NzHardwareInfo
static bool Initialize();
static bool IsCpuidSupported();
static bool IsInitialized();
static void Uninitialize();