Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data InstanceAttrs = InstanceAttrs {}
- type StorableAttrs = Vector InstanceAttrs
- type InstanceBuffer stage = Allocated stage InstanceAttrs
- fromTexture :: Int32 -> Int32 -> Vec2 -> Vec2 -> InstanceAttrs
- fromAtlas :: Int32 -> Atlas -> Vec2 -> Vec2 -> Vec2 -> InstanceAttrs
- animate_ :: ("margin" ::: Float) -> ("num.frames" ::: Int) -> ("frame duration" ::: Float) -> ("phase" ::: Float) -> InstanceAttrs -> InstanceAttrs
Documentation
data InstanceAttrs Source #
Instances
type StorableAttrs = Vector InstanceAttrs Source #
type InstanceBuffer stage = Allocated stage InstanceAttrs Source #
:: Int32 | Sampler index. |
-> Int32 | Texture index. |
-> Vec2 | Sprite size. |
-> Vec2 | Sprite position. |
-> InstanceAttrs |
:: Int32 | Texture ID. |
-> Atlas | |
-> Vec2 | Sprite scale, wrt. to native tile size |
-> Vec2 | Tile position in atlas tiles. Can be fractional when using subgrids. |
-> Vec2 | Sprite position. |
-> InstanceAttrs |