Only allocates memory for the instance but does not create anything.
Creates and loads the texture with the given filters.
A destructor is present on this object, but not explicitly documented in the source.
Use this when changing filter or wrap after creating the texture. Calls automatically after create.
Binds the current texture to the given unit.
Creates a width x height texture containing the pixel data in RGBA ubyte format.
Creates a width x height texture containing the pixel data using ubytes.
Creates a width x height texture containing the pixel data in inMode format using type as array type and internally convertes to mode.
Deletes the texture and invalidates this.
Creates the texture from a bitmap.
Recreates a width x height texture containing the pixel data in RGBA ubyte format without disposing the old one.
Recreates a width x height texture containing the pixel data using ubytes without disposing the old one.
Recreates a width x height texture containing the pixel data in inMode format using type as array type and internally convertes to mode without disposing the old one.
Creates the texture from a bitmap without disposing the old one.
Resizes the texture containing the new data.
Height of this texture. height == 0 when not created.
OpenGL id of this texture. id == 0 when not created.
Checks if Texture.id is more than 0.
1x1 texture containing a white pixel for solid shapes.
Width of this texture. width == 0 when not created.
Enable mipmaps. Disabled by default.
Mag Filter for this texture. Needs to call Texture.applyParameters when called after creation.
Min Filter for this texture. Needs to call Texture.applyParameters when called after creation.
Wrap x for this texture. Needs to call Texture.applyParameters when called after creation.
Wrap y Filter for this texture. Needs to call Texture.applyParameters when called after creation.
Texture for drawing using OpenGL.