summaryrefslogtreecommitdiff
path: root/sdl2/bindings.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2016-01-02 20:08:48 -0500
committerDavid Thompson <dthompson2@worcester.edu>2016-01-02 20:08:48 -0500
commit6b2ecade1079c5bef1c066b9f092a8179d78d932 (patch)
tree7f49287d9b80550d56d137c88b8d410f26ddcdd6 /sdl2/bindings.scm
parent4ba7f87e455c53ad06b6591559465d4099593a1d (diff)
video: Add SDL_GL_SetAttribute binding.
* sdl2/bindings.scm (sdl-get-set-attribute): New procedure. * sdl2/video.scm (set-gl-attribute!): New procedure.
Diffstat (limited to 'sdl2/bindings.scm')
-rw-r--r--sdl2/bindings.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/sdl2/bindings.scm b/sdl2/bindings.scm
index e03e1de..6c638ab 100644
--- a/sdl2/bindings.scm
+++ b/sdl2/bindings.scm
@@ -174,6 +174,34 @@ RETURN-TYPE and accept arguments of ARG-TYPES."
(define-foreign sdl-gl-swap-window
void "SDL_GL_SwapWindow" '(*))
+(define-public SDL_GL_RED_SIZE 0)
+(define-public SDL_GL_GREEN_SIZE 1)
+(define-public SDL_GL_BLUE_SIZE 2)
+(define-public SDL_GL_ALPHA_SIZE 3)
+(define-public SDL_GL_BUFFER_SIZE 4)
+(define-public SDL_GL_DOUBLEBUFFER 5)
+(define-public SDL_GL_DEPTH_SIZE 6)
+(define-public SDL_GL_STENCIL_SIZE 7)
+(define-public SDL_GL_ACCUM_RED_SIZE 8)
+(define-public SDL_GL_ACCUM_GREEN_SIZE 9)
+(define-public SDL_GL_ACCUM_BLUE_SIZE 10)
+(define-public SDL_GL_ACCUM_ALPHA_SIZE 11)
+(define-public SDL_GL_STEREO 12)
+(define-public SDL_GL_MULTISAMPLEBUFFERS 13)
+(define-public SDL_GL_MULTISAMPLESAMPLES 14)
+(define-public SDL_GL_ACCELERATED_VISUAL 15)
+(define-public SDL_GL_RETAINED_BACKING 16)
+(define-public SDL_GL_CONTEXT_MAJOR_VERSION 17)
+(define-public SDL_GL_CONTEXT_MINOR_VERSION 18)
+(define-public SDL_GL_CONTEXT_EGL 19)
+(define-public SDL_GL_CONTEXT_FLAGS 20)
+(define-public SDL_GL_CONTEXT_PROFILE_MASK 21)
+(define-public SDL_GL_SHARE_WITH_CURRENT_CONTEXT 22)
+(define-public SDL_GL_FRAMEBUFFER_SRGB_CAPABLE 23)
+
+(define-foreign sdl-gl-set-attribute
+ int "SDL_GL_SetAttribute" (list int int))
+
(define-public SDL_RENDERER_SOFTWARE #x00000001)
(define-public SDL_RENDERER_ACCELERATED #x00000002)
(define-public SDL_RENDERER_PRESENTVSYNC #x00000004)