Texture

Inherits from

Usage

To use this class, add the following require at the top of your script:

local Texture = require 'engine/items/texture'

Reference

class Texture
module:
create(attributes)

Create a new texture

Parameters:

attributes (table) – list of attributes. without, the texture will be created with default values

Returns:

the created texture

Return type:

Texture

Examples