Difference between revisions of "Canvas:getFormat"

(Created page)
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{newin|[[0.9.1]]|091|type=function}}
 
{{newin|[[0.9.1]]|091|type=function}}
 +
{{oldin|[[11.0]]|110|type=function|text=It has been replaced by [[Texture:getFormat]]}}
 
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 11:
 
=== 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]]

Latest revision as of 01:08, 17 October 2018

Available since LÖVE 0.9.1
This function is not supported in earlier versions.
Removed in LÖVE 11.0
It has been replaced by Texture:getFormat.

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