Lua ConstPlatform
Development < Lua Scripting < Lua ConstPlatform
Platform
string Platform.gpu full GPU device name
string Platform.gpuVendor one of "Nvidia", "Intel", "ATI", "Mesa", "Unknown"
number Platform.gpuMemorySize size of total GPU memory in MBs; only available for "Nvidia", (rest are 0)
string Platform.glVersionShort major.minor.buildNumber
string Platform.glslVersionShort major.minor
string Platform.glVersion full version
string Platform.glVendor
string Platform.glRenderer
string Platform.glslVersion full version
string Platform.glewVersion
number Platform.sdlVersionCompiledMajor
number Platform.sdlVersionCompiledMinor
number Platform.sdlVersionCompiledPatch
number Platform.sdlVersionLinkedMajor
number Platform.sdlVersionLinkedMinor
number Platform.sdlVersionLinkedPatch
boolean Platform.glSupportNonPowerOfTwoTex
boolean Platform.glSupportTextureQueryLOD
boolean Platform.glSupport24bitDepthBuffer
boolean Platform.glSupportRestartPrimitive
boolean Platform.glSupportClipSpaceControl
boolean Platform.glSupportFragDepthLayout
string Platform.osName full name of the OS
string Platform.osFamily one of "Windows", "Linux", "MacOSX", "FreeBSD", "Unknown"