From b421d4e7e06f977436b6e6195b95ca44d884e0c0 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 2 Jun 2019 20:50:28 -0400 Subject: Add guile-sdl2 manual. --- manuals/guile-sdl2/OpenGL.html | 174 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 174 insertions(+) create mode 100644 manuals/guile-sdl2/OpenGL.html (limited to 'manuals/guile-sdl2/OpenGL.html') diff --git a/manuals/guile-sdl2/OpenGL.html b/manuals/guile-sdl2/OpenGL.html new file mode 100644 index 0000000..e05fa3f --- /dev/null +++ b/manuals/guile-sdl2/OpenGL.html @@ -0,0 +1,174 @@ + + + + + + +OpenGL (Guile-SDL2) + + + + + + + + + + + + + + + + + + + + +
+

+Previous: , Up: Window Management   [Contents][Index]

+
+
+ +

3.2.2 OpenGL

+ +
+
Procedure: make-gl-context window
+

Create an OpenGL context for window. +

+ +
+
Procedure: delete-gl-context! context
+

Delete context, an OpenGL context object. +

+ +
+
Procedure: call-with-gl-context window proc
+

Call proc with a new OpenGL context created for window, and +close the context when proc returns or otherwise exits. +

+ +
+
Procedure: swap-gl-window window
+

Update window with OpenGL rendering. +

+ +
+
Procedure: set-gl-attribute! attr value
+

Set the OpenGL attribute represented by the symbol attr to +value. Possible values for attr are: +

+
    +
  • red-size +
  • green-size +
  • blue-size +
  • alpha-size +
  • buffer-size +
  • double-buffer +
  • depth-size +
  • stencil-size +
  • accum-red-size +
  • accum-green-size +
  • accum-blue-size +
  • stereo +
  • multisample-buffers +
  • multisample-samples +
  • retained-backing +
  • context-major-version +
  • context-minor-version +
  • context-egl +
  • context-flags +
  • context-profile-mask +
  • share-with-current-context +
  • framebuffer-srgb-capable +
+ +
+ +
+
Procedure: set-gl-swap-interval! interval
+

Set the framebuffer swap interval for the current OpenGL context to the +type indicated by the symbol interval. Possible values of +interval are: +

+
    +
  • immediate, for immediate updates +
  • vsync, for updates synchronized with the screen’s vertical retrace +
  • late-swap-tear, for late swap tearing +
+ +

Late swap tearing works the same as vsync, but if the vertical retrace +has been missed for a given frame, buffers are swapped immediately, +which might be less jarring for the user during occasional framerate +drops. +

+ + + + + + -- cgit v1.2.3