Loads a texture
If the texture is already loaded and in a coherent state, this method returns immediately.
If the texture is not already loaded, this method blocks until the texture is loaded.
If acceleration is disabled the texture won't be accelerated. If enabled, it is accelerated depending on the parameter.
@param resource The resource to be loaded
@param enableAcceleration If true and acceleration is enabled, the accelerated version of this texture is returned
@return The required texture
@throws IOException If an I/O error occurs
@throws TextureNotFoundException If the required texture doesn't exist