- data Config = Config {
- textureLoader :: String -> IO TextureObject
- load :: Config -> String -> IO (IO ())
- defaultConfig :: Config
- pathTextureLoader :: String -> String -> IO TextureObject
Documentation
Config | |
|
load :: Config -> String -> IO (IO ())Source
Loads a COLLADA file from a file's contents (not the filename) and returns an action that draws the model. This will throw an IO exception if anything went wrong during the process.
pathTextureLoader :: String -> String -> IO TextureObjectSource
Takes a prefix and returns a texture loader that prepends the prefix to the path and loads from disk.