Texture
A Texture is an image that can be applied to Material
s. The supported file formats are .png
, .jpg
, .hdr
, .dds
, .ktx
, and .astc
. DDS and ASTC are compressed formats, which are recommended because they're smaller and faster.
Constructor
lovr.graphics.newTexture | Create a new Texture. |
Methods
Texture:getCompareMode | Get the CompareMode for the Texture. |
Texture:setCompareMode | Set the CompareMode for the Texture. |
Texture:getDepth | Get the depth of the Texture. |
Texture:getDimensions | Get the dimensions of the Texture. |
Texture:getFilter | Get the FilterMode for the Texture. |
Texture:setFilter | Set the FilterMode for the Texture. |
Texture:getFormat | Get the format of the Texture. |
Texture:getHeight | Get the height of the Texture. |
Texture:getMipmapCount | Get the number of mipmap levels of the Texture. |
Texture:replacePixels | Replace pixels in the Texture using a TextureData object. |
Texture:getType | Get the type of the Texture. |
Texture:getWidth | Get the width of the Texture. |
Texture:getWrap | Get the WrapMode for the Texture. |
Texture:setWrap | Set the WrapMode for the Texture. |
See also