Texture
EditTextures are multidimensional blocks of memory on the GPU, contrasted with Buffer
objects which are one-dimensional. Textures are used as the destination for rendering operations, and textures loaded from images provide surface data to Material
objects.
Constructors
lovr.graphics.newTexture | Create a new Texture. |
Texture:newView | Create a texture view referencing a parent Texture. |
Methods
Texture:getDimensions | Get the dimensions of the Texture. |
Texture:getFormat | Get the format of the Texture. |
Texture:getHeight | Get the height of the Texture, in pixels. |
Texture:getLayerCount | Get the layer count of the Texture. |
Texture:getMipmapCount | Get the number of mipmap levels in the Texture. |
Texture:getParent | Get the parent of a texture view. |
Texture:getSampleCount | Get the number of MSAA samples in the Texture. |
Texture:getType | Get the type of the Texture. |
Texture:getWidth | Get the width of the Texture, in pixels. |
Texture:hasUsage | Check if a Texture was created with a set of usage flags. |
Texture:isView | Check if a Texture is a texture view. |
Texture:newView | Create a texture view referencing a parent Texture. |