| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Render.Unlit.Sprite.Model
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 #
Constructors
| InstanceAttrs | |
Instances
type StorableAttrs = Vector InstanceAttrs Source #
type InstanceBuffer stage = Allocated stage InstanceAttrs Source #
Arguments
| :: Int32 | Sampler index. |
| -> Int32 | Texture index. |
| -> Vec2 | Sprite size. |
| -> Vec2 | Sprite position. |
| -> InstanceAttrs |
Arguments
| :: 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 |