module Graphics.Rendering.OpenGL.Raw.NV.Fence (
glGenFences,
glDeleteFences,
glSetFence,
glTestFence,
glFinishFence,
glIsFence,
glGetFenceiv,
gl_ALL_COMPLETED,
gl_FENCE_STATUS,
gl_FENCE_CONDITION
) where
import Foreign.Ptr
import Foreign.C.Types
import Graphics.Rendering.OpenGL.Raw.Core31.Types
import Graphics.Rendering.OpenGL.Raw.Extensions
#include "HsOpenGLRaw.h"
extensionNameString :: String
extensionNameString = "GL_NV_fence"
EXTENSION_ENTRY(dyn_glGenFences,ptr_glGenFences,"glGenFences",glGenFences,GLsizei -> Ptr GLuint -> IO ())
EXTENSION_ENTRY(dyn_glDeleteFences,ptr_glDeleteFences,"glDeleteFences",glDeleteFences,GLsizei -> Ptr GLuint -> IO ())
EXTENSION_ENTRY(dyn_glSetFence,ptr_glSetFence,"glSetFence",glSetFence,GLuint -> GLenum -> IO ())
EXTENSION_ENTRY(dyn_glTestFence,ptr_glTestFence,"glTestFence",glTestFence,GLuint -> IO GLboolean)
EXTENSION_ENTRY(dyn_glFinishFence,ptr_glFinishFence,"glFinishFence",glFinishFence,GLuint -> IO ())
EXTENSION_ENTRY(dyn_glIsFence,ptr_glIsFence,"glIsFence",glIsFence,GLuint -> IO GLboolean)
EXTENSION_ENTRY(dyn_glGetFenceiv,ptr_glGetFenceiv,"glGetFenceiv",glGetFenceiv,GLuint -> GLenum -> Ptr GLint -> IO ())
gl_ALL_COMPLETED :: GLenum
gl_ALL_COMPLETED = 0x84F2
gl_FENCE_STATUS :: GLenum
gl_FENCE_STATUS = 0x84F3
gl_FENCE_CONDITION :: GLenum
gl_FENCE_CONDITION = 0x84F4