keid-core-0.1.8.0: Core parts of Keid engine.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Resource.Image.Atlas

Synopsis

Documentation

data Atlas Source #

Regular grid atlas

Constructors

Atlas 

Fields

Instances

Instances details
Generic Atlas Source # 
Instance details

Defined in Resource.Image.Atlas

Associated Types

type Rep Atlas :: Type -> Type Source #

Methods

from :: Atlas -> Rep Atlas x Source #

to :: Rep Atlas x -> Atlas Source #

Show Atlas Source # 
Instance details

Defined in Resource.Image.Atlas

Eq Atlas Source # 
Instance details

Defined in Resource.Image.Atlas

Methods

(==) :: Atlas -> Atlas -> Bool Source #

(/=) :: Atlas -> Atlas -> Bool Source #

type Rep Atlas Source # 
Instance details

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 #