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 |
A 3D volume delimited by 2D clip planes.
The contents of the graphene_frustum_t
are private, and should not be
modified directly.
Since: 1.2
Synopsis
- newtype Frustum = Frustum (ManagedPtr Frustum)
- newZeroFrustum :: MonadIO m => m Frustum
- frustumAlloc :: (HasCallStack, MonadIO m) => m Frustum
- frustumContainsPoint :: (HasCallStack, MonadIO m) => Frustum -> Point3D -> m Bool
- frustumEqual :: (HasCallStack, MonadIO m) => Frustum -> Frustum -> m Bool
- frustumFree :: (HasCallStack, MonadIO m) => Frustum -> m ()
- frustumInit :: (HasCallStack, MonadIO m) => Frustum -> Plane -> Plane -> Plane -> Plane -> Plane -> Plane -> m Frustum
- frustumInitFromFrustum :: (HasCallStack, MonadIO m) => Frustum -> Frustum -> m Frustum
- frustumInitFromMatrix :: (HasCallStack, MonadIO m) => Frustum -> Matrix -> m Frustum
- frustumIntersectsBox :: (HasCallStack, MonadIO m) => Frustum -> Box -> m Bool
- frustumIntersectsSphere :: (HasCallStack, MonadIO m) => Frustum -> Sphere -> m Bool
Exported types
Memory-managed wrapper type.
Instances
Eq Frustum Source # | |
GBoxed Frustum Source # | |
Defined in GI.Graphene.Structs.Frustum | |
ManagedPtrNewtype Frustum Source # | |
Defined in GI.Graphene.Structs.Frustum toManagedPtr :: Frustum -> ManagedPtr Frustum | |
TypedObject Frustum Source # | |
Defined in GI.Graphene.Structs.Frustum | |
HasParentTypes Frustum Source # | |
Defined in GI.Graphene.Structs.Frustum | |
tag ~ 'AttrSet => Constructible Frustum tag Source # | |
IsGValue (Maybe Frustum) Source # | Convert |
Defined in GI.Graphene.Structs.Frustum gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Frustum -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Frustum) | |
type ParentTypes Frustum Source # | |
Defined in GI.Graphene.Structs.Frustum |
Methods
Click to display all available methods, including inherited ones
Methods
containsPoint, equal, free, init, initFromFrustum, initFromMatrix, intersectsBox, intersectsSphere.
Getters
None.
Setters
None.
alloc
:: (HasCallStack, MonadIO m) | |
=> m Frustum | Returns: the newly allocated |
containsPoint
:: (HasCallStack, MonadIO m) | |
=> Frustum |
|
-> Point3D |
|
-> m Bool | Returns: |
Checks whether a point is inside the volume defined by the given
Frustum
.
Since: 1.2
equal
:: (HasCallStack, MonadIO m) | |
=> Frustum |
|
-> Frustum |
|
-> m Bool | Returns: |
Checks whether the two given Frustum
are equal.
Since: 1.6
free
:: (HasCallStack, MonadIO m) | |
=> Frustum |
|
-> m () |
Frees the resources allocated by frustumAlloc
.
Since: 1.2
init
:: (HasCallStack, MonadIO m) | |
=> Frustum |
|
-> Plane |
|
-> Plane |
|
-> Plane |
|
-> Plane |
|
-> Plane |
|
-> Plane |
|
-> m Frustum | Returns: the initialized frustum |
Initializes the given Frustum
using the provided
clipping planes.
Since: 1.2
initFromFrustum
initFromMatrix
frustumInitFromMatrix Source #
:: (HasCallStack, MonadIO m) | |
=> Frustum |
|
-> Matrix |
|
-> m Frustum | Returns: the initialized frustum |
Initializes a Frustum
using the given matrix
.
Since: 1.2
intersectsBox
:: (HasCallStack, MonadIO m) | |
=> Frustum |
|
-> Box |
|
-> m Bool | Returns: |
Checks whether the given box
intersects a plane of
a Frustum
.
Since: 1.2