gi-cogl-1.0.6: COGL GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Cogl.Structs.TextureVertex

Description

Used to specify vertex information when calling polygon

Synopsis

Exported types

newtype TextureVertex Source #

Memory-managed wrapper type.

Constructors

TextureVertex (ManagedPtr TextureVertex) 

Instances

Instances details
Eq TextureVertex Source # 
Instance details

Defined in GI.Cogl.Structs.TextureVertex

BoxedPtr TextureVertex Source # 
Instance details

Defined in GI.Cogl.Structs.TextureVertex

CallocPtr TextureVertex Source # 
Instance details

Defined in GI.Cogl.Structs.TextureVertex

ManagedPtrNewtype TextureVertex Source # 
Instance details

Defined in GI.Cogl.Structs.TextureVertex

Methods

toManagedPtr :: TextureVertex -> ManagedPtr TextureVertex

tag ~ 'AttrSet => Constructible TextureVertex tag Source # 
Instance details

Defined in GI.Cogl.Structs.TextureVertex

Methods

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

The color to use at this vertex. This is ignored if use_color is False when calling polygon

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 ]