Difference between revisions of "love.graphics.getRendererInfo"

m (Fixed typo)
(Updated)
Line 1: Line 1:
 
{{newin|[[0.9.0]]|090|type=function}}
 
{{newin|[[0.9.0]]|090|type=function}}
 
Gets information about the system's video card and drivers.
 
Gets information about the system's video card and drivers.
{{notice|Everything returned by this function is highly dependent on the system running the code and should not be used to make run-time decisions.}}
+
{{notice|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 ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
info = love.graphics.getRendererInfo( infotype )
+
name, version, vendor, device = love.graphics.getRendererInfo( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|RendererInfoType|infotype|The type of information to get.}}
+
None.
 
=== Returns ===
 
=== Returns ===
{{param|string|info|The system-dependent information.}}
+
{{param|string|name|The name of the renderer, e.g. "OpenGL".}}
 +
{{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|device|The name of the graphics card, e.g. "Intel HD Graphics 3000 OpenGL Engine".}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]

Revision as of 23:36, 23 September 2013

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".
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