{-# LANGUAGE CPP #-} {-# LANGUAGE ForeignFunctionInterface #-} {-# OPTIONS -Wall #-} -------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenVG.Raw.VG.BasicTypes -- Copyright : (c) Stephen Tetley 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.Raw.VG.BasicTypes where #include -- Package: OpenGLRaw 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)