Difference between revisions of "Texture"

m
m (Add PrettyDeprecated)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{newin|[[0.9.1]]|091|type=type|text=This type is not supported in earlier versions, but the methods were still available on [[Canvas]] and [[Image]] objects.}}
+
{{newin|[[0.9.1]]|091|type=type|text=This type is not supported in earlier versions, but the methods were still available on [[Canvas]] and [[Image]] objects}}
 
Superclass for drawable objects which represent a texture. All Textures can be drawn with [[Quad]]s. This is an abstract type that can't be created directly.
 
Superclass for drawable objects which represent a texture. All Textures can be drawn with [[Quad]]s. This is an abstract type that can't be created directly.
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::Texture]]
+
{{#ask: [[Category:Functions]] [[parent::Texture]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| default=Nothing yet.
 
| default=Nothing yet.
Line 12: Line 12:
 
| ?PrettySince
 
| ?PrettySince
 
| ?PrettyRemoved
 
| ?PrettyRemoved
 +
| ?PrettyDeprecated
 
}}
 
}}
  
Line 27: Line 28:
 
| ?PrettySince
 
| ?PrettySince
 
| ?PrettyRemoved
 
| ?PrettyRemoved
 +
| ?PrettyDeprecated
 +
}}
 +
== Enums ==
 +
{{#ask: [[Category:Enums]] [[parent::Texture]] [[Concept:Current]]
 +
| headers=hide
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 +
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 +
| ?PrettyDeprecated
 
}}
 
}}
 
== See Also ==
 
== See Also ==

Latest revision as of 08:25, 28 June 2019

Available since LÖVE 0.9.1
This type is not supported in earlier versions, but the methods were still available on Canvas and Image objects.

Superclass for drawable objects which represent a texture. All Textures can be drawn with Quads. This is an abstract type that can't be created directly.

Functions

Texture:getDPIScale Gets the DPI scale factor of the Texture. Added since 11.0
Texture:getDepth Gets the depth of a Volume Texture. Added since 11.0
Texture:getDepthSampleMode Gets the comparison mode used when sampling from a depth texture in a shader. Added since 11.0
Texture:getDimensions Gets the width and height of the Texture. Added since 0.9.0
Texture:getFilter Gets the filter mode of the Texture.
Texture:getFormat Gets the pixel format of the Texture. Added since 11.0
Texture:getHeight Gets the height of the Texture.
Texture:getLayerCount Gets the number of layers / slices in an Array Texture. Added since 11.0
Texture:getMipmapCount Gets the number of mipmaps contained in the Texture. Added since 11.0
Texture:getMipmapFilter Gets the mipmap filter mode for a Texture. Added since 0.9.0
Texture:getPixelDimensions Gets the width and height in pixels of the Texture. Added since 11.0
Texture:getPixelHeight Gets the height in pixels of the Texture. Added since 11.0
Texture:getPixelWidth Gets the width in pixels of the Texture. Added since 11.0
Texture:getTextureType Gets the type of the Texture. Added since 11.0
Texture:getWidth Gets the width of the Texture.
Texture:getWrap Gets the wrapping properties of a Texture.
Texture:isReadable Gets whether the Texture can be drawn and sent to a Shader. Added since 11.0
Texture:setDepthSampleMode Sets the comparison mode used when sampling from a depth texture in a shader. Added since 11.0
Texture:setFilter Sets the filter mode of the Texture.
Texture:setMipmapFilter Sets the mipmap filter mode for a Texture. Added since 0.9.0
Texture:setWrap Sets the wrapping properties of a Texture.

Supertypes

Subtypes

Canvas Off-screen render target. Added since 0.8.0
Image Drawable image type.

Enums

TextureType Types of textures (2D, cubemap, etc.) Added since 11.0

See Also

Other Languages