{-# LANGUAGE CPP #-} {-# LANGUAGE ForeignFunctionInterface #-} {-# OPTIONS -Wall #-} -------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenVG.VG.BasicTypes -- Copyright : (c) Stephen Tetley 2008, 2009 -- License : BSD3 -- -- Maintainer : Stephen Tetley -- Stability : highly unstable -- Portability : GHC -- -- This module corresponds to sections 3.2 (Primitive Data Types) -- and 3.6 (Handle-based Data Types) of the OpenVG 1.0.1 specs. -- -- -------------------------------------------------------------------------------- module Graphics.Rendering.OpenVG.VG.BasicTypes ( -- * Primitive Types VGbyte, VGubyte, VGshort, VGint, VGuint, VGbitfield, VGboolean, VGfloat, VGenum, vg_FALSE, vg_TRUE, -- * Handle-based Types VGHandle, vg_INVALID_HANDLE, VGPath, VGImage, VGPaint, -- * Points Point, ) where #include import Graphics.Rendering.OpenGL.Raw.Core31 import Foreign.Ptr type VGfloat = GLfloat type VGbyte = GLbyte type VGubyte = GLubyte type VGshort = GLshort type VGint = GLint type VGuint = GLuint type VGbitfield = GLbitfield type VGenum = GLenum type VGboolean = GLint #{enum VGboolean, , vg_FALSE = VG_FALSE , vg_TRUE = VG_TRUE } newtype VGHandle = VGHandle (Ptr ()) vg_INVALID_HANDLE :: VGHandle vg_INVALID_HANDLE = VGHandle nullPtr type VGPath = VGHandle type VGImage = VGHandle type VGPaint = VGHandle type Point = (VGfloat, VGfloat)