Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Affection us a = AffectionState (AffectionData us) IO a
- data AffectionData us = AffectionData {
- quitEvent :: Bool
- userState :: us
- drawWindow :: Window
- drawSurface :: Surface
- drawFormat :: BablFormatPtr
- drawStack :: [DrawRequest]
- clearStack :: [DrawRequest]
- elapsedTime :: Double
- data AffectionConfig us = AffectionConfig {
- initComponents :: InitComponents
- windowTitle :: Text
- windowConfig :: WindowConfig
- preLoop :: Affection us ()
- drawLoop :: Affection us ()
- updateLoop :: Double -> Affection us ()
- loadState :: Surface -> IO us
- cleanUp :: us -> IO ()
- newtype AffectionState us m a = AffectionState {
- runState :: AffectionStateInner us m a
- type AffectionStateInner us m a = StateT us m a
- data InitComponents
- data RGBA = RGBA {}
- data DrawType
- data DrawRequest = DrawRequest {}
- data RequestPersist
- data Angle
- class ConvertAngle a where
- data Particle = Particle {
- particleTimeToLive :: Double
- particleCreation :: Double
- particlePosition :: (Double, Double)
- particleRotation :: Angle
- particleVelocity :: (Int, Int)
- particlePitchRate :: Angle
- particleRootNode :: GeglNode
- particleNodeGraph :: Map String GeglNode
- particleStackCont :: GeglNode
- particleDrawFlange :: GeglNode
- data ParticleSystem = ParticleSystem {
- partSysParts :: ParticleStorage
- partSysNode :: GeglNode
- partSysBuffer :: GeglBuffer
- data ParticleStorage = ParticleStorage {
- partStorLatest :: Maybe Particle
- partStorList :: [Particle]
- liftIO :: MonadIO m => forall a. IO a -> m a
- data WindowConfig :: * = WindowConfig {
- windowBorder :: Bool
- windowHighDPI :: Bool
- windowInputGrabbed :: Bool
- windowMode :: WindowMode
- windowOpenGL :: Maybe OpenGLConfig
- windowPosition :: WindowPosition
- windowResizable :: Bool
- windowInitialSize :: V2 CInt
- defaultWindow :: WindowConfig
- data GeglRectangle :: * = GeglRectangle {
- rectangleX :: Int
- rectangleY :: Int
- rectangleWidth :: Int
- rectangleHeight :: Int
- data GeglBuffer :: * = GeglBuffer GeglBufferDummy
Documentation
type Affection us a = AffectionState (AffectionData us) IO a #
data AffectionData us #
Main type for defining the look, feel and action of the whole application.
AffectionData | |
|
data AffectionConfig us #
Configuration for the aplication. needed at startup.
AffectionConfig | |
|
newtype AffectionState us m a #
Affection's state monad
AffectionState | |
|
Monad m => MonadState us (AffectionState us m) # | |
Monad m => Monad (AffectionState us m) # | |
Functor m => Functor (AffectionState us m) # | |
Monad m => Applicative (AffectionState us m) # | |
MonadIO m => MonadIO (AffectionState us m) # | |
type AffectionStateInner us m a = StateT us m a #
Inner StateT
monad for the update state
type AffectionStateInner us m a = StateT (AffectionData us) m a
Type for defining the draw type of draw functions
data DrawRequest #
This datatype stores information about areas of a GeglBuffer
to be updated
DrawRequest | |
|
data RequestPersist #
Type for defining angles
class ConvertAngle a where #
Particle system
A single particle
Particle | |
|
data ParticleSystem #
The particle system
ParticleSystem | |
|
data ParticleStorage #
The particle storage datatype
ParticleStorage | |
|
Convenience exports
data WindowConfig :: * #
WindowConfig | |
|
Eq WindowConfig | |
Ord WindowConfig | |
Read WindowConfig | |
Show WindowConfig | |
Generic WindowConfig | |
type Rep WindowConfig | |
GEGL reexports
data GeglRectangle :: * #
GeglRectangle | |
|
Show GeglRectangle | |
Storable GeglRectangle | |
data GeglBuffer :: * #
GeglBuffer GeglBufferDummy |