Lua ConstPlatform

From Spring
Jump to navigationJump to search

Development < Lua Scripting < Lua ConstPlatform

Platform

string Platform.gpu

full GPU device name


string Platform.gpuVendor

one of "Nvidia", "Intel", "ATI", "Mesa", "Unknown"


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


string Platform.osName

full name of the OS


string Platform.osFamily

one of "Windows", "Linux", "MacOSX", "FreeBSD", "Unknown"


number Platform.gpuMemorySize

size of total GPU memory in MBs; only available for "Nvidia", (rest are 0)


number Platform.sdlVersionCompiledMajor


number Platform.sdlVersionCompiledMinor


number Platform.sdlVersionCompiledPatch


number Platform.sdlVersionLinkedMajor


number Platform.sdlVersionLinkedMinor


number Platform.sdlVersionLinkedPatch


bool Platform.glSupportNonPowerOfTwoTex


bool Platform.glSupportTextureQueryLOD


bool Platform.glSupport24bitDepthBuffer


bool Platform.glSupportRestartPrimitive


bool Platform.glSupportClipSpaceControl


bool Platform.glSupportFragDepthLayout