Safe Haskell | None |
---|---|
Language | Haskell98 |
Support for writing Linear types to uniform locations in shader programs.
- class AsUniform t where
- asUniform :: t -> UniformLocation -> IO ()
Documentation
class AsUniform t where Source
A type class for things we can write to uniform locations in shader programs. We can provide instances of this class for types from Linear without introducing orphan instances.
Nothing
asUniform :: t -> UniformLocation -> IO () Source