Difference between revisions of "love.graphics.getRendererInfo"

m (Returns)
m
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
 
{{param|string|name|The name of the renderer, e.g. "OpenGL" or "OpenGL ES".}}
 
{{param|string|name|The name of the renderer, e.g. "OpenGL" or "OpenGL ES".}}
 
{{param|string|version|The version of the renderer with some extra driver-dependent version info, e.g. "2.1 INTEL-8.10.44".}}
 
{{param|string|version|The version of the renderer with some extra driver-dependent version info, e.g. "2.1 INTEL-8.10.44".}}
{{param|string|vendor|The name of the graphics card vendor, e.g. "Intel Inc." }}
+
{{param|string|vendor|The name of the graphics card vendor, e.g. "Intel Inc". }}
 
{{param|string|device|The name of the graphics card, e.g. "Intel HD Graphics 3000 OpenGL Engine".}}
 
{{param|string|device|The name of the graphics card, e.g. "Intel HD Graphics 3000 OpenGL Engine".}}
  
Line 18: Line 18:
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Sub-Category::State| ]]
+
[[Sub-Category::SystemInfo| ]]
 
{{#set:Description=Gets information about the system's video card and drivers.}}
 
{{#set:Description=Gets information about the system's video card and drivers.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.getRendererInfo}}
 
{{i18n|love.graphics.getRendererInfo}}

Latest revision as of 01:57, 17 July 2017

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Gets information about the system's video card and drivers.

O.png Almost everything returned by this function is highly dependent on the system running the code and should probably not be used to make run-time decisions.  


Function

Synopsis

name, version, vendor, device = love.graphics.getRendererInfo( )

Arguments

None.

Returns

string name
The name of the renderer, e.g. "OpenGL" or "OpenGL ES".
string version
The version of the renderer with some extra driver-dependent version info, e.g. "2.1 INTEL-8.10.44".
string vendor
The name of the graphics card vendor, e.g. "Intel Inc".
string device
The name of the graphics card, e.g. "Intel HD Graphics 3000 OpenGL Engine".

See Also


Other Languages