► |  | GUI: Racket Graphics Toolkit

1 | Overview
2 | Reference
3 | Configuration
4 | Dynamic Loading
| Bibliography
| Index

► | 2 | Reference

2.1 | Windowing Classes
2.2 | Windowing Functions
2.3 | Drawing Classes
2.4 | Drawing Functions
2.5 | Editor Classes
2.6 | Editor Functions
2.7 | WXME Decoding

▼ | 2.3 | Drawing Classes

2.3.1 | bitmap%
2.3.2 | bitmap-dc%
2.3.3 | brush%
2.3.4 | brush-list%
2.3.5 | color%
2.3.6 | color-database<%>
2.3.7 | dc<%>
2.3.8 | dc-path%
2.3.9 | font%
2.3.10 | font-list%
2.3.11 | font-name-directory<%>
2.3.12 | gl-config%
2.3.13 | gl-context<%>
2.3.14 | pen%
2.3.15 | pen-list%
2.3.16 | point%
2.3.17 | post-script-dc%
2.3.18 | printer-dc%
2.3.19 | ps-setup%
2.3.20 | region%

On this page:

get-accum-size
get-depth-size
get-double-buffered
get-multisample-size
get-stencil-size
get-stereo
set-accum-size
set-depth-size
set-double-buffered
set-multisample-size
set-stencil-size
set-stereo

top ← prev up next →

gl-config% : class?
superclass: object%

A gl-config% object encapsulates configuration information for an OpenGL drawing context. Use a gl-config% object as an initialization argument for canvas%, or provide it to set-gl-config in bitmap%.

( new gl-config% ) → ( is-a?/c gl-config% )

Creates a GL configuration that indicates double buffering, a depth buffer of size one, no stencil buffer, no accumulation buffer, no multisampling, and not stereo.

( send a-gl-config get-accum-size ) → ( integer-in 0 256)

Reports the accumulation-buffer size (for each of red, green, blue, and alpha) that the configuration requests, where zero means no accumulation buffer is requested.

( send a-gl-config get-depth-size ) → ( integer-in 0 256)

Reports the depth-buffer size that the configuration requests, where zero means no depth buffer is requested.

( send a-gl-config get-double-buffered ) → boolean?

Reports whether the configuration requests double buffering or not.

( send a-gl-config get-multisample-size ) → ( integer-in 0 256)

Reports the multisampling size that the configuration requests, where zero means no multisampling is requested.

( send a-gl-config get-stencil-size ) → ( integer-in 0 256)

Reports the stencil-buffer size that the configuration requests, where zero means no stencil buffer is requested.

( send a-gl-config get-stereo ) → boolean?

Reports whether the configuration requests stereo or not.

( send a-gl-config set-accum-size on?) → void?
on? : ( integer-in 0 256)

Adjusts the configuration to request a particular accumulation-buffer size for every channel (red, green, blue, and alpha), where zero means no accumulation buffer is requested.

( send a-gl-config set-depth-size on?) → void?
on? : ( integer-in 0 256)

Adjusts the configuration to request a particular depth-buffer size, where zero means no depth buffer is requested.

( send a-gl-config set-double-buffered on?) → void?
on? : any/c

Adjusts the configuration to request double buffering or not.

( send a-gl-config set-multisample-size on?) → void?
on? : ( integer-in 0 256)

Adjusts the configuration to request a particular multisample size, where zero means no multisampling is requested. If a multisampling context is not available, this request will be ignored.

( send a-gl-config set-stencil-size on?) → void?
on? : ( integer-in 0 256)

Adjusts the configuration to request a particular stencil-buffer size, where zero means no stencil buffer is requested.

( send a-gl-config set-stereo on?) → void?
on? : any/c

Adjusts the configuration to request stereo or not.
top ← prev up next →