-------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OGL.GL.Bitmaps -- Copyright : (c) Sven Panne 2002-2006 -- License : BSD-style (see the file libraries/OpenGL/LICENSE) -- -- Maintainer : sven.panne@aedion.de -- Stability : stable -- Portability : portable -- -- This module corresponds to section 3.7 (Bitmaps) of the OpenGL 2.1 specs. -- -------------------------------------------------------------------------------- module Graphics.Rendering.OGL.GL.Bitmaps ( bitmap ) where import Foreign.Ptr ( Ptr ) import Graphics.Rendering.OGL.Monad import Graphics.Rendering.OGL.GL.BasicTypes ( GLsizei, GLfloat ) import Graphics.Rendering.OGL.GL.CoordTrans ( Size(..), Vector2(..) ) import Graphics.Rendering.OGL.GL.VertexSpec ( Vertex2(..) ) -------------------------------------------------------------------------------- bitmap :: Size -> (Vertex2 GLfloat) -> (Vector2 GLfloat) -> Ptr a -> GL () bitmap (Size w h) (Vertex2 xbo ybo) (Vector2 xbi ybi) = glBitmap w h xbo ybo xbi ybi foreign import CALLCONV unsafe "glBitmap" glBitmap :: GLsizei -> GLsizei -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> Ptr a -> GL ()