opengles-0.8.3: Functional interface for OpenGL 4.1+ and OpenGL ES 2.0+

Safe HaskellNone
LanguageHaskell2010

Graphics.OpenGLES.Internal

Contents

Synopsis

Internal

Logging

GL Error

GL Object management

data GLObj Source

Constructors

GLObj GLuint (GL GLObj) (ForeignPtr GLuint) 

Instances

newGLO :: (GLsizei -> Ptr GLuint -> GL ()) -> (GLsizei -> Ptr GLuint -> GL ()) -> (GLuint -> GL ()) -> GL GLO Source

genObj :: (GLsizei -> Ptr GLuint -> GL ()) -> (GLsizei -> Ptr GLuint -> GL ()) -> (GLuint -> GL ()) -> GL GLObj Source

genObj glo glGenBuffers glDeleteBuffers

Types

Buffer

type GLArray a = Vector a Source

data Buffer a Source

Constructors

Buffer (IORef (Either (GLArray a) Int)) GLO 

newtype BufferUsage Source

Constructors

BufferUsage GLenum 

newtype BufferSlot Source

Constructors

BufferSlot GLenum 

DrawMode

newtype DrawMode Source

Constructors

DrawMode GLenum 

Graphics State

newtype Capability Source

Constructors

Capability GLenum 

newtype CullFace Source

Constructors

Culling GLenum 

newtype CompFunc Source

Constructors

CompFunc GLenum 

newtype StencilOp Source

Constructors

StencilOp GLenum 

newtype BlendOp Source

Constructors

BlendOp GLenum 

newtype Hint Source

Constructors

Hint GLenum 

Programmable Shader

type VarDesc = (String, (GLint, GLsizei, GLenum)) Source

name: (location, length of array, type)

Uniform

newtype Uniform p a Source

Constructors

Uniform (GLint, GLsizei, Ptr ()) 

class UnifVal a where Source

Methods

glUniform :: (GLint, GLsizei, Ptr ()) -> a -> GL () Source

class UnifMat a where Source

Methods

glUnifMat :: GLint -> GLsizei -> GLboolean -> Ptr a -> GL () Source

Attrib

newtype Attrib p a Source

Constructors

Attrib (GLuint, GLsizei, GLboolean, GLuint) 

Instances

class VertexAttribute a where Source

GLSL vertex attribute type

Methods

glVertexAttrib :: GLuint -> a -> GL () Source

class AttrStruct a p b | a -> p where Source

A set of VertexAttributes packed in a Buffer

Methods

glVertexBuffer :: a -> Buffer b -> GL () Source

class GLType a => AttrElement a Source

The 3rd argument of glVertexAttribI?Pointer

Vertex Array Object

newtype VertexArray p Source

Constructors

VertexArray (GLO, GL ()) 

Vertex Picker

newtype VertexPicker Source

Constructors

VertexPicker (GLenum -> GL Bool) 

Draw Operation

newtype BufferMask Source

Constructors

BufferMask GLenum 

Instances

Framebuffer

class Attachable a b where Source

Methods

glAttachToFramebuffer :: GLenum -> a b -> IORef (V2 GLsizei) -> GL () Source

Texture

data Texture a Source

Constructors

Texture GLenum (IORef Ktx) GLO