Only allocates memory for the instance but does not create anything.
Creates and loads the texture with the given filters.
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.
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.
Function for deallocating memory. Should be called in destructor.
Function for checking if this is valid.
Texture for drawing using OpenGL.