Texture

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:getDimensions Gets the width and height of the Texture. Added since 0.9.0
Texture:getFilter Gets the filter mode of the Texture.
Texture:getHeight Gets the height of the Texture.
Texture:getWidth Gets the width of the Texture.
Texture:getWrap Gets the wrapping properties of a Texture.
Texture:setFilter Sets the filter mode of the Texture.
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.

See Also

Other Languages