Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Atlas = Atlas {
- sizeTiles :: UVec2
- sizePx :: UVec2
- tileSizePx :: UVec2
- marginPx :: UVec2
- uvScale :: Vec2
- fromTileSize :: UVec2 -> UVec2 -> UVec2 -> Atlas
- fromImageSize :: UVec2 -> UVec2 -> UVec2 -> Either UVec2 Atlas
Documentation
Regular grid atlas
Instances
Generic Atlas Source # | |
Show Atlas Source # | |
Eq Atlas Source # | |
type Rep Atlas Source # | |
Defined in Resource.Image.Atlas type Rep Atlas = D1 ('MetaData "Atlas" "Resource.Image.Atlas" "keid-core-0.1.8.0-inplace" 'False) (C1 ('MetaCons "Atlas" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sizeTiles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UVec2) :*: S1 ('MetaSel ('Just "sizePx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UVec2)) :*: (S1 ('MetaSel ('Just "tileSizePx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UVec2) :*: (S1 ('MetaSel ('Just "marginPx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UVec2) :*: S1 ('MetaSel ('Just "uvScale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Vec2))))) |
fromTileSize :: UVec2 -> UVec2 -> UVec2 -> Atlas Source #
fromImageSize :: UVec2 -> UVec2 -> UVec2 -> Either UVec2 Atlas Source #