| Copyright | Will Thompson and Iñaki García Etxebarria | 
|---|---|
| License | LGPL-2.1 | 
| Maintainer | Iñaki García Etxebarria | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
GI.Clutter.Structs.Perspective
Description
Stage perspective definition. Perspective is only used by
 the fixed point version of stageSetPerspective.
Since: 0.4
Synopsis
- newtype Perspective = Perspective (ManagedPtr Perspective)
 - newZeroPerspective :: MonadIO m => m Perspective
 - getPerspectiveAspect :: MonadIO m => Perspective -> m Float
 - setPerspectiveAspect :: MonadIO m => Perspective -> Float -> m ()
 - getPerspectiveFovy :: MonadIO m => Perspective -> m Float
 - setPerspectiveFovy :: MonadIO m => Perspective -> Float -> m ()
 - getPerspectiveZFar :: MonadIO m => Perspective -> m Float
 - setPerspectiveZFar :: MonadIO m => Perspective -> Float -> m ()
 - getPerspectiveZNear :: MonadIO m => Perspective -> m Float
 - setPerspectiveZNear :: MonadIO m => Perspective -> Float -> m ()
 
Exported types
newtype Perspective Source #
Memory-managed wrapper type.
Constructors
| Perspective (ManagedPtr Perspective) | 
Instances
newZeroPerspective :: MonadIO m => m Perspective Source #
Construct a Perspective struct initialized to zero.
Methods
Properties
aspect
the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height)
getPerspectiveAspect :: MonadIO m => Perspective -> m Float Source #
Get the value of the “aspect” field.
 When overloading is enabled, this is equivalent to
get perspective #aspect
setPerspectiveAspect :: MonadIO m => Perspective -> Float -> m () Source #
Set the value of the “aspect” field.
 When overloading is enabled, this is equivalent to
setperspective [ #aspect:=value ]
fovy
the field of view angle, in degrees, in the y direction
getPerspectiveFovy :: MonadIO m => Perspective -> m Float Source #
Get the value of the “fovy” field.
 When overloading is enabled, this is equivalent to
get perspective #fovy
setPerspectiveFovy :: MonadIO m => Perspective -> Float -> m () Source #
Set the value of the “fovy” field.
 When overloading is enabled, this is equivalent to
setperspective [ #fovy:=value ]
zFar
the distance from the viewer to the far clipping plane (always positive)
getPerspectiveZFar :: MonadIO m => Perspective -> m Float Source #
Get the value of the “z_far” field.
 When overloading is enabled, this is equivalent to
get perspective #zFar
setPerspectiveZFar :: MonadIO m => Perspective -> Float -> m () Source #
Set the value of the “z_far” field.
 When overloading is enabled, this is equivalent to
setperspective [ #zFar:=value ]
zNear
the distance from the viewer to the near clipping plane (always positive)
getPerspectiveZNear :: MonadIO m => Perspective -> m Float Source #
Get the value of the “z_near” field.
 When overloading is enabled, this is equivalent to
get perspective #zNear
setPerspectiveZNear :: MonadIO m => Perspective -> Float -> m () Source #
Set the value of the “z_near” field.
 When overloading is enabled, this is equivalent to
setperspective [ #zNear:=value ]