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 |
No description available in the introspection data.
Synopsis
- newtype MaterialLayer = MaterialLayer (ManagedPtr MaterialLayer)
- materialLayerGetMagFilter :: (HasCallStack, MonadIO m) => MaterialLayer -> m MaterialFilter
- materialLayerGetMinFilter :: (HasCallStack, MonadIO m) => MaterialLayer -> m MaterialFilter
- materialLayerGetTexture :: (HasCallStack, MonadIO m) => MaterialLayer -> m (Ptr ())
- materialLayerGetType :: (HasCallStack, MonadIO m) => MaterialLayer -> m MaterialLayerType
- materialLayerGetWrapModeP :: (HasCallStack, MonadIO m) => MaterialLayer -> m MaterialWrapMode
- materialLayerGetWrapModeS :: (HasCallStack, MonadIO m) => MaterialLayer -> m MaterialWrapMode
- materialLayerGetWrapModeT :: (HasCallStack, MonadIO m) => MaterialLayer -> m MaterialWrapMode
Exported types
newtype MaterialLayer Source #
Memory-managed wrapper type.
Instances
Eq MaterialLayer Source # | |
Defined in GI.Cogl.Structs.MaterialLayer (==) :: MaterialLayer -> MaterialLayer -> Bool # (/=) :: MaterialLayer -> MaterialLayer -> Bool # | |
BoxedPtr MaterialLayer Source # | |
Defined in GI.Cogl.Structs.MaterialLayer boxedPtrCopy :: MaterialLayer -> IO MaterialLayer # boxedPtrFree :: MaterialLayer -> IO () # | |
ManagedPtrNewtype MaterialLayer Source # | |
Defined in GI.Cogl.Structs.MaterialLayer |
Methods
Click to display all available methods, including inherited ones
Methods
None.
Getters
getMagFilter, getMinFilter, getTexture, getType, getWrapModeP, getWrapModeS, getWrapModeT.
Setters
None.
getMagFilter
materialLayerGetMagFilter Source #
:: (HasCallStack, MonadIO m) | |
=> MaterialLayer |
|
-> m MaterialFilter | Returns: the current downscaling filter |
Deprecated: (Since version 1.16)No replacement
Queries the currently set downscaling filter for a material later
getMinFilter
materialLayerGetMinFilter Source #
:: (HasCallStack, MonadIO m) | |
=> MaterialLayer |
|
-> m MaterialFilter | Returns: the current downscaling filter |
Deprecated: (Since version 1.16)No replacement
Queries the currently set downscaling filter for a material layer
getTexture
materialLayerGetTexture Source #
:: (HasCallStack, MonadIO m) | |
=> MaterialLayer |
|
-> m (Ptr ()) | Returns: a |
Deprecated: (Since version 1.16)No replacement
Extracts a texture handle for a specific layer.
<note>In the future Cogl may support purely GLSL based layers; for those
layers this function which will likely return COGL_INVALID_HANDLE
if you
try to get the texture handle from them. Considering this scenario, you
should call materialLayerGetType
first in order check it is of
type MaterialLayerTypeTexture
before calling this function.</note>
getType
:: (HasCallStack, MonadIO m) | |
=> MaterialLayer |
|
-> m MaterialLayerType | Returns: the type of the layer |
Deprecated: (Since version 1.16)No replacement
Retrieves the type of the layer
Currently there is only one type of layer defined:
MaterialLayerTypeTexture
, but considering we may add purely GLSL
based layers in the future, you should write code that checks the type
first.
getWrapModeP
materialLayerGetWrapModeP Source #
:: (HasCallStack, MonadIO m) | |
=> MaterialLayer |
|
-> m MaterialWrapMode | Returns: the wrap mode value for the p coordinate. |
Deprecated: (Since version 1.16)Use cogl_pipeline_layer_get_wrap_mode_p()
instead
Gets the wrap mode for the 'p' coordinate of texture lookups on this layer. 'p' is the third coordinate.
Since: 1.4
getWrapModeS
materialLayerGetWrapModeS Source #
:: (HasCallStack, MonadIO m) | |
=> MaterialLayer |
|
-> m MaterialWrapMode | Returns: the wrap mode value for the s coordinate. |
Deprecated: (Since version 1.16)Use cogl_pipeline_layer_get_wrap_mode_s()
instead
Gets the wrap mode for the 's' coordinate of texture lookups on this layer.
Since: 1.4
getWrapModeT
materialLayerGetWrapModeT Source #
:: (HasCallStack, MonadIO m) | |
=> MaterialLayer |
|
-> m MaterialWrapMode | Returns: the wrap mode value for the t coordinate. |
Deprecated: (Since version 1.16)Use cogl_pipeline_layer_get_wrap_mode_t()
instead
Gets the wrap mode for the 't' coordinate of texture lookups on this layer.
Since: 1.4