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 |
Used to specify vertex information when calling polygon
Synopsis
- newtype TextureVertex = TextureVertex (ManagedPtr TextureVertex)
- newZeroTextureVertex :: MonadIO m => m TextureVertex
- getTextureVertexColor :: MonadIO m => TextureVertex -> m Color
- getTextureVertexTx :: MonadIO m => TextureVertex -> m Float
- setTextureVertexTx :: MonadIO m => TextureVertex -> Float -> m ()
- getTextureVertexTy :: MonadIO m => TextureVertex -> m Float
- setTextureVertexTy :: MonadIO m => TextureVertex -> Float -> m ()
- getTextureVertexX :: MonadIO m => TextureVertex -> m Float
- setTextureVertexX :: MonadIO m => TextureVertex -> Float -> m ()
- getTextureVertexY :: MonadIO m => TextureVertex -> m Float
- setTextureVertexY :: MonadIO m => TextureVertex -> Float -> m ()
- getTextureVertexZ :: MonadIO m => TextureVertex -> m Float
- setTextureVertexZ :: MonadIO m => TextureVertex -> Float -> m ()
Exported types
newtype TextureVertex Source #
Memory-managed wrapper type.
TextureVertex (ManagedPtr TextureVertex) |
Instances
Eq TextureVertex Source # | |
Defined in GI.Cogl.Structs.TextureVertex (==) :: TextureVertex -> TextureVertex -> Bool # (/=) :: TextureVertex -> TextureVertex -> Bool # | |
BoxedPtr TextureVertex Source # | |
Defined in GI.Cogl.Structs.TextureVertex boxedPtrCopy :: TextureVertex -> IO TextureVertex boxedPtrFree :: TextureVertex -> IO () | |
CallocPtr TextureVertex Source # | |
Defined in GI.Cogl.Structs.TextureVertex boxedPtrCalloc :: IO (Ptr TextureVertex) | |
ManagedPtrNewtype TextureVertex Source # | |
Defined in GI.Cogl.Structs.TextureVertex toManagedPtr :: TextureVertex -> ManagedPtr TextureVertex | |
tag ~ 'AttrSet => Constructible TextureVertex tag Source # | |
Defined in GI.Cogl.Structs.TextureVertex new :: MonadIO m => (ManagedPtr TextureVertex -> TextureVertex) -> [AttrOp TextureVertex tag] -> m TextureVertex |
newZeroTextureVertex :: MonadIO m => m TextureVertex Source #
Construct a TextureVertex
struct initialized to zero.
Methods
Properties
color
getTextureVertexColor :: MonadIO m => TextureVertex -> m Color Source #
Get the value of the “color
” field.
When overloading is enabled, this is equivalent to
get
textureVertex #color
tx
Texture x-coordinate
getTextureVertexTx :: MonadIO m => TextureVertex -> m Float Source #
Get the value of the “tx
” field.
When overloading is enabled, this is equivalent to
get
textureVertex #tx
setTextureVertexTx :: MonadIO m => TextureVertex -> Float -> m () Source #
Set the value of the “tx
” field.
When overloading is enabled, this is equivalent to
set
textureVertex [ #tx:=
value ]
ty
Texture y-coordinate
getTextureVertexTy :: MonadIO m => TextureVertex -> m Float Source #
Get the value of the “ty
” field.
When overloading is enabled, this is equivalent to
get
textureVertex #ty
setTextureVertexTy :: MonadIO m => TextureVertex -> Float -> m () Source #
Set the value of the “ty
” field.
When overloading is enabled, this is equivalent to
set
textureVertex [ #ty:=
value ]
x
Model x-coordinate
getTextureVertexX :: MonadIO m => TextureVertex -> m Float Source #
Get the value of the “x
” field.
When overloading is enabled, this is equivalent to
get
textureVertex #x
setTextureVertexX :: MonadIO m => TextureVertex -> Float -> m () Source #
Set the value of the “x
” field.
When overloading is enabled, this is equivalent to
set
textureVertex [ #x:=
value ]
y
Model y-coordinate
getTextureVertexY :: MonadIO m => TextureVertex -> m Float Source #
Get the value of the “y
” field.
When overloading is enabled, this is equivalent to
get
textureVertex #y
setTextureVertexY :: MonadIO m => TextureVertex -> Float -> m () Source #
Set the value of the “y
” field.
When overloading is enabled, this is equivalent to
set
textureVertex [ #y:=
value ]
z
Model z-coordinate
getTextureVertexZ :: MonadIO m => TextureVertex -> m Float Source #
Get the value of the “z
” field.
When overloading is enabled, this is equivalent to
get
textureVertex #z
setTextureVertexZ :: MonadIO m => TextureVertex -> Float -> m () Source #
Set the value of the “z
” field.
When overloading is enabled, this is equivalent to
set
textureVertex [ #z:=
value ]