{-# LANGUAGE CPP #-} -------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.Raw.NV.DepthBufferFloat -- Copyright : (c) Sven Panne 2013 -- License : BSD3 -- -- Maintainer : Sven Panne -- Stability : stable -- Portability : portable -- -- All raw functions and tokens from the NV_depth_buffer_float extension, see -- . -- -------------------------------------------------------------------------------- module Graphics.Rendering.OpenGL.Raw.NV.DepthBufferFloat ( -- * Functions glDepthRanged, glClearDepthd, glDepthBoundsd, -- * Tokens gl_DEPTH_COMPONENT32F, gl_DEPTH32F_STENCIL8, gl_FLOAT_32_UNSIGNED_INT_24_8_REV, gl_DEPTH_BUFFER_FLOAT_MODE ) where import Foreign.C.Types import Graphics.Rendering.OpenGL.Raw.Types import Graphics.Rendering.OpenGL.Raw.Core32 import Foreign.Ptr ( FunPtr ) import Graphics.Rendering.OpenGL.Raw.GetProcAddress ( getExtensionChecked ) import System.IO.Unsafe ( unsafePerformIO ) #include "HsOpenGLRaw.h" EXTENSION_ENTRY(dyn_glDepthRanged,ptr_glDepthRanged,"glDepthRanged",glDepthRanged,GLdouble -> GLdouble -> IO ()) EXTENSION_ENTRY(dyn_glClearDepthd,ptr_glClearDepthd,"glClearDepthd",glClearDepthd,GLdouble -> IO ()) EXTENSION_ENTRY(dyn_glDepthBoundsd,ptr_glDepthBoundsd,"glDepthBoundsd",glDepthBoundsd,GLdouble -> GLdouble -> IO ()) gl_DEPTH_BUFFER_FLOAT_MODE :: GLenum gl_DEPTH_BUFFER_FLOAT_MODE = 0x8DAF