gi-cogl-1.0.5: 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.Enums

Description

 
Synopsis

Enumerations

AttributeType

data AttributeType Source #

Data types for the components of a vertex attribute.

Since: 1.0

Constructors

AttributeTypeByte

Data is the same size of a byte

AttributeTypeUnsignedByte

Data is the same size of an unsigned byte

AttributeTypeShort

Data is the same size of a short integer

AttributeTypeUnsignedShort

Data is the same size of an unsigned short integer

AttributeTypeFloat

Data is the same size of a float

AnotherAttributeType Int

Catch-all for unknown values

Instances

Instances details
Enum AttributeType Source # 
Instance details

Defined in GI.Cogl.Enums

Show AttributeType Source # 
Instance details

Defined in GI.Cogl.Enums

Eq AttributeType Source # 
Instance details

Defined in GI.Cogl.Enums

Ord AttributeType Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum AttributeType Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject AttributeType Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes AttributeType Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes AttributeType Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes AttributeType = '[] :: [Type]

BitmapError

data BitmapError Source #

Error codes that can be thrown when performing bitmap operations. Note that gdk_pixbuf_new_from_file() can also throw errors directly from the underlying image loading library. For example, if GdkPixbuf is used then errors GdkPixbufErrors will be used directly.

Since: 1.4

Constructors

BitmapErrorFailed

Generic failure code, something went wrong.

BitmapErrorUnknownType

Unknown image type.

BitmapErrorCorruptImage

An image file was broken somehow.

AnotherBitmapError Int

Catch-all for unknown values

Instances

Instances details
Enum BitmapError Source # 
Instance details

Defined in GI.Cogl.Enums

Show BitmapError Source # 
Instance details

Defined in GI.Cogl.Enums

Eq BitmapError Source # 
Instance details

Defined in GI.Cogl.Enums

Ord BitmapError Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum BitmapError Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject BitmapError Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes BitmapError Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes BitmapError Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes BitmapError = '[] :: [Type]

BlendStringError

data BlendStringError Source #

Error enumeration for the blend strings parser

Since: 1.0

Constructors

BlendStringErrorParseError

Generic parse error

BlendStringErrorArgumentParseError

Argument parse error

BlendStringErrorInvalidError

Internal parser error

BlendStringErrorGpuUnsupportedError

Blend string not supported by the GPU

AnotherBlendStringError Int

Catch-all for unknown values

Instances

Instances details
Enum BlendStringError Source # 
Instance details

Defined in GI.Cogl.Enums

Show BlendStringError Source # 
Instance details

Defined in GI.Cogl.Enums

Eq BlendStringError Source # 
Instance details

Defined in GI.Cogl.Enums

Ord BlendStringError Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum BlendStringError Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject BlendStringError Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes BlendStringError Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes BlendStringError Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes BlendStringError = '[] :: [Type]

DepthTestFunction

data DepthTestFunction Source #

When using depth testing one of these functions is used to compare the depth of an incoming fragment against the depth value currently stored in the depth buffer. The function is changed using cogl_depth_state_set_test_function().

The test is only done when depth testing is explicitly enabled. (See cogl_depth_state_set_test_enabled())

Constructors

DepthTestFunctionNever

Never passes.

DepthTestFunctionLess

Passes if the fragment's depth value is less than the value currently in the depth buffer.

DepthTestFunctionEqual

Passes if the fragment's depth value is equal to the value currently in the depth buffer.

DepthTestFunctionLequal

Passes if the fragment's depth value is less or equal to the value currently in the depth buffer.

DepthTestFunctionGreater

Passes if the fragment's depth value is greater than the value currently in the depth buffer.

DepthTestFunctionNotequal

Passes if the fragment's depth value is not equal to the value currently in the depth buffer.

DepthTestFunctionGequal

Passes if the fragment's depth value greater than or equal to the value currently in the depth buffer.

DepthTestFunctionAlways

Always passes.

AnotherDepthTestFunction Int

Catch-all for unknown values

Instances

Instances details
Enum DepthTestFunction Source # 
Instance details

Defined in GI.Cogl.Enums

Show DepthTestFunction Source # 
Instance details

Defined in GI.Cogl.Enums

Eq DepthTestFunction Source # 
Instance details

Defined in GI.Cogl.Enums

Ord DepthTestFunction Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum DepthTestFunction Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject DepthTestFunction Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes DepthTestFunction Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes DepthTestFunction Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes DepthTestFunction = '[] :: [Type]

FilterReturn

data FilterReturn Source #

Return values for the CoglXlibFilterFunc and CoglWin32FilterFunc functions.

Constructors

FilterReturnContinue

The event was not handled, continues the processing

FilterReturnRemove

Remove the event, stops the processing

AnotherFilterReturn Int

Catch-all for unknown values

Instances

Instances details
Enum FilterReturn Source # 
Instance details

Defined in GI.Cogl.Enums

Show FilterReturn Source # 
Instance details

Defined in GI.Cogl.Enums

Eq FilterReturn Source # 
Instance details

Defined in GI.Cogl.Enums

Ord FilterReturn Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum FilterReturn Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject FilterReturn Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes FilterReturn Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes FilterReturn Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes FilterReturn = '[] :: [Type]

FogMode

data FogMode Source #

The fog mode determines the equation used to calculate the fogging blend factor while fogging is enabled. The simplest FogModeLinear mode determines f as:

 f = end - eye_distance / end - start

Where eye_distance is the distance of the current fragment in eye coordinates from the origin.

Since: 1.0

Constructors

FogModeLinear

Calculates the fog blend factor as: > > f = end - eye_distance / end - start

FogModeExponential

Calculates the fog blend factor as: > > f = e ^ -(density * eye_distance)

FogModeExponentialSquared

Calculates the fog blend factor as: > > f = e ^ -(density * eye_distance)^2

AnotherFogMode Int

Catch-all for unknown values

Instances

Instances details
Enum FogMode Source # 
Instance details

Defined in GI.Cogl.Enums

Show FogMode Source # 
Instance details

Defined in GI.Cogl.Enums

Eq FogMode Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

(==) :: FogMode -> FogMode -> Bool #

(/=) :: FogMode -> FogMode -> Bool #

Ord FogMode Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum FogMode Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject FogMode Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes FogMode Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes FogMode Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes FogMode = '[] :: [Type]

IndicesType

data IndicesType Source #

You should aim to use the smallest data type that gives you enough range, since it reduces the size of your index array and can help reduce the demand on memory bandwidth.

Note that IndicesTypeInt is only supported if the COGL_FEATURE_ID_UNSIGNED_INT_INDICES feature is available. This should always be available on OpenGL but on OpenGL ES it will only be available if the GL_OES_element_index_uint extension is advertized.

Constructors

IndicesTypeByte

Your indices are unsigned bytes

IndicesTypeShort

Your indices are unsigned shorts

IndicesTypeInt

Your indices are unsigned ints

AnotherIndicesType Int

Catch-all for unknown values

Instances

Instances details
Enum IndicesType Source # 
Instance details

Defined in GI.Cogl.Enums

Show IndicesType Source # 
Instance details

Defined in GI.Cogl.Enums

Eq IndicesType Source # 
Instance details

Defined in GI.Cogl.Enums

Ord IndicesType Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum IndicesType Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject IndicesType Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes IndicesType Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes IndicesType Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes IndicesType = '[] :: [Type]

MaterialAlphaFunc

data MaterialAlphaFunc Source #

Alpha testing happens before blending primitives with the framebuffer and gives an opportunity to discard fragments based on a comparison with the incoming alpha value and a reference alpha value. The MaterialAlphaFunc determines how the comparison is done.

Constructors

MaterialAlphaFuncNever

Never let the fragment through.

MaterialAlphaFuncLess

Let the fragment through if the incoming alpha value is less than the reference alpha value

MaterialAlphaFuncEqual

Let the fragment through if the incoming alpha value equals the reference alpha value

MaterialAlphaFuncLequal

Let the fragment through if the incoming alpha value is less than or equal to the reference alpha value

MaterialAlphaFuncGreater

Let the fragment through if the incoming alpha value is greater than the reference alpha value

MaterialAlphaFuncNotequal

Let the fragment through if the incoming alpha value does not equal the reference alpha value

MaterialAlphaFuncGequal

Let the fragment through if the incoming alpha value is greater than or equal to the reference alpha value.

MaterialAlphaFuncAlways

Always let the fragment through.

AnotherMaterialAlphaFunc Int

Catch-all for unknown values

Instances

Instances details
Enum MaterialAlphaFunc Source # 
Instance details

Defined in GI.Cogl.Enums

Show MaterialAlphaFunc Source # 
Instance details

Defined in GI.Cogl.Enums

Eq MaterialAlphaFunc Source # 
Instance details

Defined in GI.Cogl.Enums

Ord MaterialAlphaFunc Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum MaterialAlphaFunc Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject MaterialAlphaFunc Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes MaterialAlphaFunc Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes MaterialAlphaFunc Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes MaterialAlphaFunc = '[] :: [Type]

MaterialFilter

data MaterialFilter Source #

Texture filtering is used whenever the current pixel maps either to more than one texture element (texel) or less than one. These filter enums correspond to different strategies used to come up with a pixel color, by possibly referring to multiple neighbouring texels and taking a weighted average or simply using the nearest texel.

Constructors

MaterialFilterNearest

Measuring in manhatten distance from the, current pixel center, use the nearest texture texel

MaterialFilterLinear

Use the weighted average of the 4 texels nearest the current pixel center

MaterialFilterNearestMipmapNearest

Select the mimap level whose texel size most closely matches the current pixel, and use the MaterialFilterNearest criterion

MaterialFilterLinearMipmapNearest

Select the mimap level whose texel size most closely matches the current pixel, and use the MaterialFilterLinear criterion

MaterialFilterNearestMipmapLinear

Select the two mimap levels whose texel size most closely matches the current pixel, use the MaterialFilterNearest criterion on each one and take their weighted average

MaterialFilterLinearMipmapLinear

Select the two mimap levels whose texel size most closely matches the current pixel, use the MaterialFilterLinear criterion on each one and take their weighted average

AnotherMaterialFilter Int

Catch-all for unknown values

Instances

Instances details
Enum MaterialFilter Source # 
Instance details

Defined in GI.Cogl.Enums

Show MaterialFilter Source # 
Instance details

Defined in GI.Cogl.Enums

Eq MaterialFilter Source # 
Instance details

Defined in GI.Cogl.Enums

Ord MaterialFilter Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum MaterialFilter Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject MaterialFilter Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes MaterialFilter Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes MaterialFilter Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes MaterialFilter = '[] :: [Type]

MaterialLayerType

data MaterialLayerType Source #

Available types of layers for a Material. This enumeration might be expanded in later versions.

Since: 1.0

Constructors

MaterialLayerTypeTexture

The layer represents a <link linkend="cogl-Textures">texture</link>

AnotherMaterialLayerType Int

Catch-all for unknown values

Instances

Instances details
Enum MaterialLayerType Source # 
Instance details

Defined in GI.Cogl.Enums

Show MaterialLayerType Source # 
Instance details

Defined in GI.Cogl.Enums

Eq MaterialLayerType Source # 
Instance details

Defined in GI.Cogl.Enums

Ord MaterialLayerType Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum MaterialLayerType Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject MaterialLayerType Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes MaterialLayerType Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes MaterialLayerType Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes MaterialLayerType = '[] :: [Type]

MaterialWrapMode

data MaterialWrapMode Source #

The wrap mode specifies what happens when texture coordinates outside the range 0→1 are used. Note that if the filter mode is anything but MaterialFilterNearest then texels outside the range 0→1 might be used even when the coordinate is exactly 0 or 1 because OpenGL will try to sample neighbouring pixels. For example if you are trying to render the full texture then you may get artifacts around the edges when the pixels from the other side are merged in if the wrap mode is set to repeat.

Since: 1.4

Constructors

MaterialWrapModeRepeat

The texture will be repeated. This is useful for example to draw a tiled background.

MaterialWrapModeClampToEdge

The coordinates outside the range 0→1 will sample copies of the edge pixels of the texture. This is useful to avoid artifacts if only one copy of the texture is being rendered.

MaterialWrapModeAutomatic

Cogl will try to automatically decide which of the above two to use. For rectangle, it will use repeat mode if any of the texture coordinates are outside the range 0→1, otherwise it will use clamp to edge. For polygon it will always use repeat mode. For vertexBufferDraw it will use repeat mode except for layers that have point sprite coordinate generation enabled. This is the default value.

AnotherMaterialWrapMode Int

Catch-all for unknown values

Instances

Instances details
Enum MaterialWrapMode Source # 
Instance details

Defined in GI.Cogl.Enums

Show MaterialWrapMode Source # 
Instance details

Defined in GI.Cogl.Enums

Eq MaterialWrapMode Source # 
Instance details

Defined in GI.Cogl.Enums

Ord MaterialWrapMode Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum MaterialWrapMode Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject MaterialWrapMode Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes MaterialWrapMode Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes MaterialWrapMode Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes MaterialWrapMode = '[] :: [Type]

PixelFormat

data PixelFormat Source #

Pixel formats used by Cogl. For the formats with a byte per component, the order of the components specify the order in increasing memory addresses. So for example PixelFormatRgb888 would have the red component in the lowest address, green in the next address and blue after that regardless of the endianness of the system.

For the formats with non byte aligned components the component order specifies the order within a 16-bit or 32-bit number from most significant bit to least significant. So for PixelFormatRgb565, the red component would be in bits 11-15, the green component would be in 6-11 and the blue component would be in 1-5. Therefore the order in memory depends on the endianness of the system.

When uploading a texture PixelFormatAny can be used as the internal format. Cogl will try to pick the best format to use internally and convert the texture data if necessary.

Since: 0.8

Constructors

PixelFormatAny

Any format

PixelFormatA8

8 bits alpha mask

PixelFormatRgb565

RGB, 16 bits

PixelFormatRgba4444

RGBA, 16 bits

PixelFormatRgba5551

RGBA, 16 bits

PixelFormatYuv

Not currently supported

PixelFormatG8

Single luminance component

PixelFormatRg88

RG, 16 bits. Note that red-green textures are only available if COGL_FEATURE_ID_TEXTURE_RG is advertised. See textureSetComponents for details.

PixelFormatRgb888

RGB, 24 bits

PixelFormatBgr888

BGR, 24 bits

PixelFormatRgba8888

RGBA, 32 bits

PixelFormatBgra8888

BGRA, 32 bits

PixelFormatArgb8888

ARGB, 32 bits

PixelFormatAbgr8888

ABGR, 32 bits

PixelFormatRgba1010102

RGBA, 32 bits, 10 bpc

PixelFormatBgra1010102

BGRA, 32 bits, 10 bpc

PixelFormatArgb2101010

ARGB, 32 bits, 10 bpc

PixelFormatAbgr2101010

ABGR, 32 bits, 10 bpc

PixelFormatRgba8888Pre

Premultiplied RGBA, 32 bits

PixelFormatBgra8888Pre

Premultiplied BGRA, 32 bits

PixelFormatArgb8888Pre

Premultiplied ARGB, 32 bits

PixelFormatAbgr8888Pre

Premultiplied ABGR, 32 bits

PixelFormatRgba4444Pre

Premultiplied RGBA, 16 bits

PixelFormatRgba5551Pre

Premultiplied RGBA, 16 bits

PixelFormatRgba1010102Pre

Premultiplied RGBA, 32 bits, 10 bpc

PixelFormatBgra1010102Pre

Premultiplied BGRA, 32 bits, 10 bpc

PixelFormatArgb2101010Pre

Premultiplied ARGB, 32 bits, 10 bpc

PixelFormatAbgr2101010Pre

Premultiplied ABGR, 32 bits, 10 bpc

PixelFormatDepth16

No description available in the introspection data.

PixelFormatDepth32

No description available in the introspection data.

PixelFormatDepth24Stencil8

No description available in the introspection data.

AnotherPixelFormat Int

Catch-all for unknown values

Instances

Instances details
Enum PixelFormat Source # 
Instance details

Defined in GI.Cogl.Enums

Show PixelFormat Source # 
Instance details

Defined in GI.Cogl.Enums

Eq PixelFormat Source # 
Instance details

Defined in GI.Cogl.Enums

Ord PixelFormat Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum PixelFormat Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject PixelFormat Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes PixelFormat Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes PixelFormat Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes PixelFormat = '[] :: [Type]

RendererError

data RendererError Source #

No description available in the introspection data.

Constructors

RendererErrorXlibDisplayOpen

No description available in the introspection data.

RendererErrorBadConstraint

No description available in the introspection data.

AnotherRendererError Int

Catch-all for unknown values

Instances

Instances details
Enum RendererError Source # 
Instance details

Defined in GI.Cogl.Enums

Show RendererError Source # 
Instance details

Defined in GI.Cogl.Enums

Eq RendererError Source # 
Instance details

Defined in GI.Cogl.Enums

Ord RendererError Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum RendererError Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject RendererError Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes RendererError Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes RendererError Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes RendererError = '[] :: [Type]

ShaderType

data ShaderType Source #

Types of shaders

Since: 1.0

Constructors

ShaderTypeVertex

A program for proccessing vertices

ShaderTypeFragment

A program for processing fragments

AnotherShaderType Int

Catch-all for unknown values

Instances

Instances details
Enum ShaderType Source # 
Instance details

Defined in GI.Cogl.Enums

Show ShaderType Source # 
Instance details

Defined in GI.Cogl.Enums

Eq ShaderType Source # 
Instance details

Defined in GI.Cogl.Enums

Ord ShaderType Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum ShaderType Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject ShaderType Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes ShaderType Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes ShaderType Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes ShaderType = '[] :: [Type]

StereoMode

data StereoMode Source #

Represents how draw should affect the two buffers of a stereo framebuffer. See cogl_framebuffer_set_stereo_mode().

Constructors

StereoModeBoth

draw to both stereo buffers

StereoModeLeft

draw only to the left stereo buffer

StereoModeRight

draw only to the left stereo buffer

AnotherStereoMode Int

Catch-all for unknown values

Instances

Instances details
Enum StereoMode Source # 
Instance details

Defined in GI.Cogl.Enums

Show StereoMode Source # 
Instance details

Defined in GI.Cogl.Enums

Eq StereoMode Source # 
Instance details

Defined in GI.Cogl.Enums

Ord StereoMode Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum StereoMode Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject StereoMode Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes StereoMode Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes StereoMode Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes StereoMode = '[] :: [Type]

SystemError

data SystemError Source #

Error enumeration for Cogl

The cOGLSYSTEMERRORUNSUPPORTED error can be thrown for a variety of reasons. For example:

<itemizedlist> <listitem><para>You've tried to use a feature that is not advertised by cogl_has_feature(). This could happen if you create a 2d texture with a non-power-of-two size when COGL_FEATURE_ID_TEXTURE_NPOT is not advertised.</para></listitem> <listitem><para>The GPU can not handle the configuration you have requested. An example might be if you try to use too many texture layers in a single CoglPipeline</para></listitem> <listitem><para>The driver does not support some configuration.</para></listiem> </itemizedlist>

Currently this is only used by Cogl API marked as experimental so this enum should also be considered experimental.

Since: 1.4

Constructors

SystemErrorCoglSystemErrorUnsupported

You tried to use a feature or configuration not currently available.

SystemErrorCoglSystemErrorNoMemory

You tried to allocate a resource such as a texture and there wasn't enough memory.

AnotherSystemError Int

Catch-all for unknown values

Instances

Instances details
Enum SystemError Source # 
Instance details

Defined in GI.Cogl.Enums

Show SystemError Source # 
Instance details

Defined in GI.Cogl.Enums

Eq SystemError Source # 
Instance details

Defined in GI.Cogl.Enums

Ord SystemError Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum SystemError Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject SystemError Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes SystemError Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes SystemError Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes SystemError = '[] :: [Type]

TextureComponents

data TextureComponents Source #

See textureSetComponents.

Since: 1.18

Constructors

TextureComponentsA

Only the alpha component

TextureComponentsRg

Red and green components. Note that this can only be used if the COGL_FEATURE_ID_TEXTURE_RG feature is advertised.

TextureComponentsRgb

Red, green and blue components

TextureComponentsRgba

Red, green, blue and alpha components

TextureComponentsDepth

Only a depth component

AnotherTextureComponents Int

Catch-all for unknown values

Instances

Instances details
Enum TextureComponents Source # 
Instance details

Defined in GI.Cogl.Enums

Show TextureComponents Source # 
Instance details

Defined in GI.Cogl.Enums

Eq TextureComponents Source # 
Instance details

Defined in GI.Cogl.Enums

Ord TextureComponents Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum TextureComponents Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject TextureComponents Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes TextureComponents Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes TextureComponents Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes TextureComponents = '[] :: [Type]

TextureError

data TextureError Source #

Error codes that can be thrown when allocating textures.

Since: 1.8

Constructors

TextureErrorSize

Unsupported size

TextureErrorFormat

Unsupported format

TextureErrorBadParameter

No description available in the introspection data.

TextureErrorType

A primitive texture type that is unsupported by the driver was used

AnotherTextureError Int

Catch-all for unknown values

Instances

Instances details
Enum TextureError Source # 
Instance details

Defined in GI.Cogl.Enums

Show TextureError Source # 
Instance details

Defined in GI.Cogl.Enums

Eq TextureError Source # 
Instance details

Defined in GI.Cogl.Enums

Ord TextureError Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum TextureError Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject TextureError Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes TextureError Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes TextureError Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes TextureError = '[] :: [Type]

TextureType

data TextureType Source #

Constants representing the underlying hardware texture type of a CoglTexture.

Since: 1.10

Constructors

TextureType2d

A CoglTexture2D

TextureType3d

A CoglTexture3D

TextureTypeRectangle

A CoglTextureRectangle

AnotherTextureType Int

Catch-all for unknown values

Instances

Instances details
Enum TextureType Source # 
Instance details

Defined in GI.Cogl.Enums

Show TextureType Source # 
Instance details

Defined in GI.Cogl.Enums

Eq TextureType Source # 
Instance details

Defined in GI.Cogl.Enums

Ord TextureType Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum TextureType Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject TextureType Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes TextureType Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes TextureType Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes TextureType = '[] :: [Type]

VerticesMode

data VerticesMode Source #

Different ways of interpreting vertices when drawing.

Since: 1.0

Constructors

VerticesModePoints

FIXME, equivalent to <constant>GL_POINTS</constant>

VerticesModeLines

FIXME, equivalent to <constant>GL_LINES</constant>

VerticesModeLineLoop

FIXME, equivalent to <constant>GL_LINE_LOOP</constant>

VerticesModeLineStrip

FIXME, equivalent to <constant>GL_LINE_STRIP</constant>

VerticesModeTriangles

FIXME, equivalent to <constant>GL_TRIANGLES</constant>

VerticesModeTriangleStrip

FIXME, equivalent to <constant>GL_TRIANGLE_STRIP</constant>

VerticesModeTriangleFan

FIXME, equivalent to <constant>GL_TRIANGLE_FAN</constant>

AnotherVerticesMode Int

Catch-all for unknown values

Instances

Instances details
Enum VerticesMode Source # 
Instance details

Defined in GI.Cogl.Enums

Show VerticesMode Source # 
Instance details

Defined in GI.Cogl.Enums

Eq VerticesMode Source # 
Instance details

Defined in GI.Cogl.Enums

Ord VerticesMode Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum VerticesMode Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject VerticesMode Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes VerticesMode Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes VerticesMode Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes VerticesMode = '[] :: [Type]

Winding

data Winding Source #

Enum used to represent the two directions of rotation. This can be used to set the front face for culling by calling cogl_pipeline_set_front_face_winding().

Constructors

WindingClockwise

Vertices are in a clockwise order

WindingCounterClockwise

Vertices are in a counter-clockwise order

AnotherWinding Int

Catch-all for unknown values

Instances

Instances details
Enum Winding Source # 
Instance details

Defined in GI.Cogl.Enums

Show Winding Source # 
Instance details

Defined in GI.Cogl.Enums

Eq Winding Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

(==) :: Winding -> Winding -> Bool #

(/=) :: Winding -> Winding -> Bool #

Ord Winding Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum Winding Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject Winding Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes Winding Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes Winding Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes Winding = '[] :: [Type]

WinsysFeature

data WinsysFeature Source #

No description available in the introspection data.

Constructors

WinsysFeatureMultipleOnscreen

No description available in the introspection data.

WinsysFeatureSwapThrottle

No description available in the introspection data.

WinsysFeatureVblankCounter

No description available in the introspection data.

WinsysFeatureVblankWait

No description available in the introspection data.

WinsysFeatureTextureFromPixmap

No description available in the introspection data.

WinsysFeatureSwapBuffersEvent

No description available in the introspection data.

WinsysFeatureSwapRegion

No description available in the introspection data.

WinsysFeatureSwapRegionThrottle

No description available in the introspection data.

WinsysFeatureSwapRegionSynchronized

No description available in the introspection data.

WinsysFeatureBufferAge

No description available in the introspection data.

WinsysFeatureSyncAndCompleteEvent

No description available in the introspection data.

WinsysFeatureNFeatures

No description available in the introspection data.

AnotherWinsysFeature Int

Catch-all for unknown values

Instances

Instances details
Enum WinsysFeature Source # 
Instance details

Defined in GI.Cogl.Enums

Show WinsysFeature Source # 
Instance details

Defined in GI.Cogl.Enums

Eq WinsysFeature Source # 
Instance details

Defined in GI.Cogl.Enums

Ord WinsysFeature Source # 
Instance details

Defined in GI.Cogl.Enums

BoxedEnum WinsysFeature Source # 
Instance details

Defined in GI.Cogl.Enums

TypedObject WinsysFeature Source # 
Instance details

Defined in GI.Cogl.Enums

Methods

glibType :: IO GType

HasParentTypes WinsysFeature Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes WinsysFeature Source # 
Instance details

Defined in GI.Cogl.Enums

type ParentTypes WinsysFeature = '[] :: [Type]