-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added suppor for GL_ARB_framebuffer_no_attachments.
- Loading branch information
Showing
5 changed files
with
114 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
src/Graphics/Rendering/OpenGL/Raw/ARB/FramebufferNoAttachments.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{-# LANGUAGE ForeignFunctionInterface, CPP #-} | ||
-------------------------------------------------------------------------------- | ||
-- | | ||
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.FramebufferNoAttachments | ||
-- Copyright : (c) Sven Panne 2013 | ||
-- License : BSD3 | ||
-- | ||
-- Maintainer : Sven Panne <[email protected]> | ||
-- Stability : stable | ||
-- Portability : portable | ||
-- | ||
-- All raw functions and tokens from the ARB_framebuffer_no_attachments | ||
-- extension, see | ||
-- <http://www.opengl.org/registry/specs/ARB/framebuffer_no_attachments.txt>. | ||
-- | ||
-------------------------------------------------------------------------------- | ||
|
||
module Graphics.Rendering.OpenGL.Raw.ARB.FramebufferNoAttachments ( | ||
-- * Functions | ||
glFramebufferParameteri, | ||
glGetFramebufferParameteriv, | ||
|
||
-- * Tokens | ||
gl_FRAMEBUFFER_DEFAULT_WIDTH, | ||
gl_FRAMEBUFFER_DEFAULT_HEIGHT, | ||
gl_FRAMEBUFFER_DEFAULT_LAYERS, | ||
gl_FRAMEBUFFER_DEFAULT_SAMPLES, | ||
gl_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS, | ||
gl_MAX_FRAMEBUFFER_WIDTH, | ||
gl_MAX_FRAMEBUFFER_HEIGHT, | ||
gl_MAX_FRAMEBUFFER_LAYERS, | ||
gl_MAX_FRAMEBUFFER_SAMPLES | ||
) where | ||
|
||
import Foreign.C.Types | ||
import Foreign.Ptr | ||
import Graphics.Rendering.OpenGL.Raw.Extensions | ||
import Graphics.Rendering.OpenGL.Raw.Types | ||
|
||
#include "HsOpenGLRaw.h" | ||
|
||
extensionNameString :: String | ||
extensionNameString = "GL_ARB_framebuffer_no_attachments" | ||
|
||
EXTENSION_ENTRY(glFramebufferParameteri,GLenum -> GLenum -> GLint -> IO ()) | ||
EXTENSION_ENTRY(glGetFramebufferParameteriv,GLenum -> GLenum -> Ptr GLint) | ||
|
||
gl_FRAMEBUFFER_DEFAULT_WIDTH :: GLenum | ||
gl_FRAMEBUFFER_DEFAULT_WIDTH = 0x9310 | ||
|
||
gl_FRAMEBUFFER_DEFAULT_HEIGHT :: GLenum | ||
gl_FRAMEBUFFER_DEFAULT_HEIGHT = 0x9311 | ||
|
||
gl_FRAMEBUFFER_DEFAULT_LAYERS :: GLenum | ||
gl_FRAMEBUFFER_DEFAULT_LAYERS = 0x9312 | ||
|
||
gl_FRAMEBUFFER_DEFAULT_SAMPLES :: GLenum | ||
gl_FRAMEBUFFER_DEFAULT_SAMPLES = 0x9313 | ||
|
||
gl_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS :: GLenum | ||
gl_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS = 0x9314 | ||
|
||
gl_MAX_FRAMEBUFFER_WIDTH :: GLenum | ||
gl_MAX_FRAMEBUFFER_WIDTH = 0x9315 | ||
|
||
gl_MAX_FRAMEBUFFER_HEIGHT :: GLenum | ||
gl_MAX_FRAMEBUFFER_HEIGHT = 0x9316 | ||
|
||
gl_MAX_FRAMEBUFFER_LAYERS :: GLenum | ||
gl_MAX_FRAMEBUFFER_LAYERS = 0x9317 | ||
|
||
gl_MAX_FRAMEBUFFER_SAMPLES :: GLenum | ||
gl_MAX_FRAMEBUFFER_SAMPLES = 0x9318 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
-------------------------------------------------------------------------------- | ||
-- | | ||
-- Module : Graphics.Rendering.OpenGL.Raw.Core31.Types | ||
-- Copyright : (c) Sven Panne 2013 | ||
-- License : BSD3 | ||
-- | ||
-- Maintainer : Sven Panne <[email protected]> | ||
-- Stability : stable | ||
-- Portability : portable | ||
-- | ||
-- This module corresponds to table 2.2 in section 2.3 (Command Syntax) of the | ||
-- OpenGL 3.1 specs. | ||
-- | ||
-------------------------------------------------------------------------------- | ||
|
||
module Graphics.Rendering.OpenGL.Raw.Core31.Types ( | ||
GLboolean, | ||
GLbyte, | ||
GLubyte, | ||
GLchar, | ||
GLshort, | ||
GLushort, | ||
GLint, | ||
GLuint, | ||
GLsizei, | ||
GLenum, | ||
GLintptr, | ||
GLsizeiptr, | ||
GLbitfield, | ||
GLhalf, | ||
GLfloat, | ||
GLclampf, | ||
GLdouble, | ||
GLclampd | ||
) where | ||
|
||
import Graphics.Rendering.OpenGL.Raw.Types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters