Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Lua ConstPlatform: Difference between revisions

From Fightorder
luainter>Master-athmos
Updated page with new anchorable templates
 
m 1 revision imported
 
(No difference)

Latest revision as of 21:52, 23 February 2026

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

Contents