| ||||
| ||||
Description | ||||
A helper to load BMP files and cache them in the display state. | ||||
Synopsis | ||||
| ||||
Documentation | ||||
cacheTexture :: IORef RenderState -> FilePath -> IO Texture | ||||
Loads a texture from the file system and caches it in the display state. Loads the texture into OpenGL and configures it. Subsequent calls to cacheTexture with the same path will return the previously loaded texture. Uses GL.Image.cacheImage to actually load the image. | ||||
Produced by Haddock version 0.7 |