Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Projection = Projection {
- projectionPerspective :: Transform
- projectionOrthoUI :: Transform
- type ProjectionProcess = Cell ProjectionInput Projection
- data ProjectionInput = ProjectionInput {
- projectionFovRads :: Float
- projectionScreen :: Extent2D
- mkProjection :: ProjectionInput -> Projection
- pattern PROJECTION_NEAR :: (Eq a, Num a, Fractional a) => a
- pattern PROJECTION_FAR :: (Eq a, Num a) => a
- data View = View {
- viewTransform :: Transform
- viewTransformInv :: Transform
- viewPosition :: Vec3
- viewDirection :: Vec3
- type ViewProcess = Cell ViewOrbitalInput View
- data ViewOrbitalInput = ViewOrbitalInput {
- orbitAzimuth :: Float
- orbitAscent :: Float
- orbitDistance :: Float
- orbitScale :: Float
- orbitTarget :: Vec3
- mkViewOrbital :: Vec3 -> ViewOrbitalInput -> View
- mkViewOrbital_ :: ViewOrbitalInput -> View
Projection
data Projection Source #
Projection | |
|
Instances
Show Projection Source # | |
Defined in Engine.Camera showsPrec :: Int -> Projection -> ShowS # show :: Projection -> String # showList :: [Projection] -> ShowS # | |
Semigroup Projection Source # | |
Defined in Engine.Camera (<>) :: Projection -> Projection -> Projection # sconcat :: NonEmpty Projection -> Projection # stimes :: Integral b => b -> Projection -> Projection # | |
Monoid Projection Source # | |
Defined in Engine.Camera mempty :: Projection # mappend :: Projection -> Projection -> Projection # mconcat :: [Projection] -> Projection # |
data ProjectionInput Source #
ProjectionInput | |
|
Instances
Show ProjectionInput Source # | |
Defined in Engine.Camera showsPrec :: Int -> ProjectionInput -> ShowS # show :: ProjectionInput -> String # showList :: [ProjectionInput] -> ShowS # |
pattern PROJECTION_NEAR :: (Eq a, Num a, Fractional a) => a Source #
pattern PROJECTION_FAR :: (Eq a, Num a) => a Source #
View
View | |
|
type ViewProcess = Cell ViewOrbitalInput View Source #
data ViewOrbitalInput Source #
Camera orbiting its target
ViewOrbitalInput | |
|
Instances
Show ViewOrbitalInput Source # | |
Defined in Engine.Camera showsPrec :: Int -> ViewOrbitalInput -> ShowS # show :: ViewOrbitalInput -> String # showList :: [ViewOrbitalInput] -> ShowS # |
mkViewOrbital :: Vec3 -> ViewOrbitalInput -> View Source #