Lua ConstPlatform: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
104.0 - add Platform global tables
 
Updated page with new anchorable templates
 
Line 2: Line 2:


= Platform =
= Platform =
string '''Platform.gpu''' full GPU device name


string '''Platform.gpuVendor''' one of "Nvidia", "Intel", "ATI", "Mesa", "Unknown"
{{LuaConstant
|type = string
|name = Platform.gpu
|info = full GPU device name
}}


number '''Platform.gpuMemorySize''' size of total GPU memory in MBs; only available for "Nvidia", (rest are 0)


string '''Platform.glVersionShort''' major.minor.buildNumber
{{LuaConstant
|type = string
|name = Platform.gpuVendor
|info = one of "Nvidia", "Intel", "ATI", "Mesa", "Unknown"
}}


string '''Platform.glslVersionShort''' major.minor


string '''Platform.glVersion''' full version
{{LuaConstant
|type = string
|name = Platform.glVersionShort
|info = major.minor.buildNumber
}}


string '''Platform.glVendor'''


string '''Platform.glRenderer'''
{{LuaConstant
|type = string
|name = Platform.glslVersionShort
|info = major.minor
}}


string '''Platform.glslVersion''' full version


string '''Platform.glewVersion'''
{{LuaConstant
|type = string
|name = Platform.glVersion
|info = full version
}}


number '''Platform.sdlVersionCompiledMajor'''


number '''Platform.sdlVersionCompiledMinor'''
{{LuaConstant
|type = string
|name = Platform.glVendor
|info =
}}


number '''Platform.sdlVersionCompiledPatch'''


number '''Platform.sdlVersionLinkedMajor'''
{{LuaConstant
|type = string
|name = Platform.glRenderer
|info =
}}


number '''Platform.sdlVersionLinkedMinor'''


number '''Platform.sdlVersionLinkedPatch'''
{{LuaConstant
|type = string
|name = Platform.glslVersion
|info = full version
}}


boolean '''Platform.glSupportNonPowerOfTwoTex'''


boolean '''Platform.glSupportTextureQueryLOD'''
{{LuaConstant
|type = string
|name = Platform.glewVersion
|info =
}}


boolean '''Platform.glSupport24bitDepthBuffer'''


boolean '''Platform.glSupportRestartPrimitive'''
{{LuaConstant
|type = string
|name = Platform.osName
|info = full name of the OS
}}


boolean '''Platform.glSupportClipSpaceControl'''


boolean '''Platform.glSupportFragDepthLayout'''
{{LuaConstant
|type = string
|name = Platform.osFamily
|info = one of "Windows", "Linux", "MacOSX", "FreeBSD", "Unknown"
}}


string '''Platform.osName''' full name of the OS


string '''Platform.osFamily''' one of "Windows", "Linux", "MacOSX", "FreeBSD", "Unknown"
{{LuaConstant
|type = number
|name = Platform.gpuMemorySize
|info = size of total GPU memory in MBs; only available for "Nvidia", (rest are 0)
}}
 
 
{{LuaConstant
|type = number
|name = Platform.sdlVersionCompiledMajor
|info =
}}
 
 
 
{{LuaConstant
|type = number
|name = Platform.sdlVersionCompiledMinor
|info =
}}
 
 
{{LuaConstant
|type = number
|name = Platform.sdlVersionCompiledPatch
|info =
}}
 
 
{{LuaConstant
|type = number
|name = Platform.sdlVersionLinkedMajor
|info =
}}
 
 
{{LuaConstant
|type = number
|name = Platform.sdlVersionLinkedMinor
|info =
}}
 
 
{{LuaConstant
|type = number
|name = Platform.sdlVersionLinkedPatch
|info =
}}
 
 
{{LuaConstant
|type = bool
|name = Platform.glSupportNonPowerOfTwoTex
|info =
}}
 
 
{{LuaConstant
|type = bool
|name = Platform.glSupportTextureQueryLOD
|info =
}}
 
 
{{LuaConstant
|type = bool
|name = Platform.glSupport24bitDepthBuffer
|info =
}}
 
 
{{LuaConstant
|type = bool
|name = Platform.glSupportRestartPrimitive
|info =
}}
 
 
{{LuaConstant
|type = bool
|name = Platform.glSupportClipSpaceControl
|info =
}}
 
 
{{LuaConstant
|type = bool
|name = Platform.glSupportFragDepthLayout
|info =
}}




[[category: Lua]]
[[category: Lua]]

Latest revision as of 18:19, 1 March 2021

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