This struct is to configure the properties of a new Texture
.
Variables
maxTextureSize:Int = 16384
Maximum width or height for the texture if its size is automatic calculated for multiple slots.
Should be set lesser or equal to the maximum available OpenGL texturesize.
(Avoid large values if your device have limited floatpoint precision for glsl "modulo")
slotsX:Int = 1
How many slots the texture is horizontally divided into. Only applies when the slots
parameter into Texture
constructor is null
.
slotsY:Int = 1
How many slots the texture is vertically divided into. Only applies when the slots
parameter into Texture
constructor is null
.
powerOfTwo:Bool = true
Round the texture width or height up to the next "power of two" number.
This should be "true" for mipmapping or older OpenGl devices.
tilesX:Int = 1
How many tiles each slot is horizontally divided into for tilemapping (if the Element use @tile).
tilesY:Int = 1
How many tiles each slot is vertically divided into for tilemapping (if the Element use @tile).