Difference between revisions of "Canvas:getFormat"

(Created page)
 
m
Line 2: Line 2:
 
Gets the texture format of the Canvas.
 
Gets the texture format of the Canvas.
 
== Function ==
 
== Function ==
{{newin|[[0.9.2]]|092|type=variant}}
 
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
Line 11: Line 10:
 
=== Returns ===
 
=== Returns ===
 
{{param|CanvasFormat|format|The format of the Canvas.}}
 
{{param|CanvasFormat|format|The format of the Canvas.}}
== Function ==
 
{{oldin|[[0.9.2]]|092|type=variant}}
 
=== Synopsis ===
 
<source lang="lua">
 
format = Canvas:getFormat( )
 
</source>
 
=== Arguments ===
 
None.
 
=== Returns ===
 
{{param|TextureFormat|format|The format of the Canvas.}}
 
 
== See Also ==
 
== See Also ==
 
* [[parent::Canvas]]
 
* [[parent::Canvas]]

Revision as of 07:58, 14 November 2015

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

Gets the texture format of the Canvas.

Function

Synopsis

format = Canvas:getFormat( )

Arguments

None.

Returns

CanvasFormat format
The format of the Canvas.

See Also

Other Languages