Create
This function creates a new texture.
Syntax
- Texture Create(number width, number height, number format=Texture.RGBA, number flags=0, number frames=1, number samples=0)
Parameters
- width: the width of the new texture.
- height: the width of the new texture.
- format: the format of the texture.
- flags: this value can be Texture::Mipmaps or zero.
- frames: the number of animation frames. This value can be any number above zero.
- samples: the number of texture samples per pixel. A value of zero will disable texture multisampling. Note that not all graphics drivers support multisampled textures.