00001 //---------------------------------------------------------------------------- 00002 /** @file SgPlatform.h */ 00003 //---------------------------------------------------------------------------- 00004 00005 #ifndef SG_PLATFORM_H 00006 #define SG_PLATFORM_H 00007 00008 #include <cstddef> 00009 00010 //---------------------------------------------------------------------------- 00011 00012 /** Get information about the current computer. */ 00013 namespace SgPlatform 00014 { 00015 00016 /** Get total amount of memory available on the system. 00017 @return The total memory in bytes or 0 if the memory cannot be 00018 determined. */ 00019 std::size_t TotalMemory(); 00020 00021 } 00022 00023 //---------------------------------------------------------------------------- 00024 00025 #endif // SG_PLATFORM_H