OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Class which provides the run-time platform information Ogre runs on. More...
#include <OgrePlatformInformation.h>
Public Types | |
enum | CpuFeatures { CPU_FEATURE_SSE = 1 << 0 , CPU_FEATURE_SSE2 = 1 << 1 , CPU_FEATURE_SSE3 = 1 << 2 , CPU_FEATURE_MMX = 1 << 3 , CPU_FEATURE_MMXEXT = 1 << 4 , CPU_FEATURE_3DNOW = 1 << 5 , CPU_FEATURE_3DNOWEXT = 1 << 6 , CPU_FEATURE_CMOV = 1 << 7 , CPU_FEATURE_TSC = 1 << 8 , CPU_FEATURE_FPU = 1 << 9 , CPU_FEATURE_PRO = 1 << 10 , CPU_FEATURE_HTT = 1 << 11 , CPU_FEATURE_NONE = 0 } |
Enum describing the different CPU features we want to check for, platform-dependent. More... | |
Static Public Member Functions | |
static uint | getCpuFeatures (void) |
Gets a or-masked of enum CpuFeatures that are supported by the CPU. | |
static const String & | getCpuIdentifier (void) |
Gets a string of the CPU identifier. | |
static uint32 | getNumLogicalCores (void) |
Returns the number of logical cores, including Hyper Threaded / SMT cores. | |
static bool | hasCpuFeature (CpuFeatures feature) |
Gets whether a specific feature is supported by the CPU. | |
static void | log (Log *pLog) |
Write the CPU information to the passed in Log. | |
Class which provides the run-time platform information Ogre runs on.
Enum describing the different CPU features we want to check for, platform-dependent.
Gets a or-masked of enum CpuFeatures that are supported by the CPU.
Gets a string of the CPU identifier.
Returns the number of logical cores, including Hyper Threaded / SMT cores.
|
static |
Gets whether a specific feature is supported by the CPU.
Write the CPU information to the passed in Log.