The cl-glfw Reference Manual

This is the cl-glfw Reference Manual, version 0.3, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Feb 26 15:17:12 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 cl-glfw

Common Lisp bindings for GLFW

Author

William Robinson <>

License

Public Domain

Version

0.3

Dependencies
Source

cl-glfw.asd.

Child Component

lib (module).


2.2 cl-glfw-types

Common Lisp bindings for GLFW: Base CFFI type definitions and expanders package

Author

William Robinson <>

License

Public Domain

Version

0.3

Dependency

cffi (system).

Source

cl-glfw-types.asd.

Child Component

lib (module).


3 Modules

Modules are listed depth-first from the system components tree.


3.1 cl-glfw/lib

Source

cl-glfw.asd.

Parent Component

cl-glfw (system).

Child Components

3.2 cl-glfw-types/lib

Source

cl-glfw-types.asd.

Parent Component

cl-glfw-types (system).

Child Component

types.lisp (file).


4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


4.1 Lisp


4.1.1 cl-glfw/cl-glfw.asd

Source

cl-glfw.asd.

Parent Component

cl-glfw (system).

ASDF Systems

cl-glfw.

Packages

cl-glfw-system.


4.1.2 cl-glfw-types/cl-glfw-types.asd

Source

cl-glfw-types.asd.

Parent Component

cl-glfw-types (system).

ASDF Systems

cl-glfw-types.

Packages

cl-glfw-types-system.


4.1.3 cl-glfw/lib/glfw-package.lisp

Source

cl-glfw.asd.

Parent Component

lib (module).

Packages

cl-glfw.


4.1.4 cl-glfw/lib/glfw-lib.lisp

Dependency

glfw-package.lisp (file).

Source

cl-glfw.asd.

Parent Component

lib (module).


4.1.5 cl-glfw/lib/glfw-macros.lisp

Dependency

glfw-lib.lisp (file).

Source

cl-glfw.asd.

Parent Component

lib (module).

Public Interface

4.1.6 cl-glfw/lib/glfw.lisp

Dependency

glfw-macros.lisp (file).

Source

cl-glfw.asd.

Parent Component

lib (module).

Public Interface
Internals

4.1.7 cl-glfw-types/lib/types.lisp

Source

cl-glfw-types.asd.

Parent Component

lib (module).

Packages

cl-glfw-types.

Public Interface
Internals

5 Packages

Packages are listed by definition order.


5.1 cl-glfw-types-system

Source

cl-glfw-types.asd.

Use List
  • asdf/interface.
  • common-lisp.

5.2 cl-glfw

Source

glfw-package.lisp.

Nickname

glfw

Use List
Public Interface
Internals

5.3 cl-glfw-system

Source

cl-glfw.asd.

Use List
  • asdf/interface.
  • common-lisp.

5.4 cl-glfw-types

Source

types.lisp.

Use List
  • cffi.
  • common-lisp.
Used By List

cl-glfw.

Internals

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


6.1 Public Interface


6.1.1 Constants

Constant: +accelerated+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +accum-alpha-bits+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +accum-blue-bits+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +accum-green-bits+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +accum-red-bits+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +active+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +alpha-bits+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +alpha-map-bit+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +auto-poll-events+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +aux-buffers+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +axes+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +blue-bits+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +build-mipmaps-bit+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +buttons+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +depth-bits+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +false+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +fsaa-samples+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +fullscreen+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +green-bits+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +iconified+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +infinity+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-1+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-10+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-11+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-12+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-13+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-14+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-15+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-16+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-2+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-3+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-4+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-5+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-6+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-7+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-8+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-9+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +joystick-last+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-backspace+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-caps-lock+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-del+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-down+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-end+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-enter+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-esc+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f1+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f10+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f11+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f12+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f13+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f14+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f15+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f16+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f17+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f18+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f19+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f2+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f20+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f21+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f22+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f23+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f24+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f25+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f3+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f4+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f5+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f6+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f7+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f8+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-f9+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-home+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-insert+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-0+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-1+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-2+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-3+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-4+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-5+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-6+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-7+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-8+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-9+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-add+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-decimal+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-divide+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-enter+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-equal+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-multiply+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-num-lock+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-kp-subtract+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-lalt+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-last+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-lctrl+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-left+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-lshift+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-lsuper+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-menu+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-pagedown+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-pageup+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-pause+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-ralt+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-rctrl+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-repeat+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-right+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-rshift+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-rsuper+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-scroll-lock+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-space+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-special+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-tab+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-unknown+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +key-up+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +mouse-button-1+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +mouse-button-2+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +mouse-button-3+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +mouse-button-4+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +mouse-button-5+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +mouse-button-6+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +mouse-button-7+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +mouse-button-8+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +mouse-button-last+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +mouse-button-left+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +mouse-button-middle+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +mouse-button-right+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +mouse-cursor+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +no-rescale-bit+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +nowait+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +opened+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +opengl-debug-context+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +opengl-forward-compat+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +opengl-profile+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +opengl-version-major+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +opengl-version-minor+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +origin-ul-bit+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +present+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +press+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +red-bits+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +refresh-rate+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +release+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +stencil-bits+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +stereo+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +sticky-keys+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +sticky-mouse-buttons+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +system-keys+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +true+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +wait+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +window+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +window-no-resize+
Package

cl-glfw.

Source

glfw.lisp.


6.1.2 Special variables

Special Variable: *init-hooks*

A list of funcallable objects invoked just after initialization.

Package

cl-glfw.

Source

glfw.lisp.

Special Variable: *mouse-wheel-cumulative*
Package

cl-glfw.

Source

glfw.lisp.

Special Variable: *terminate-hooks*

A list of funcallable objects invoked just before termination.

Package

cl-glfw.

Source

glfw.lisp.


6.1.3 Macros

Macro: defcfun+doc ((c-name lisp-name) return-type (&body args) docstring)
Package

cl-glfw.

Source

glfw-macros.lisp.

Macro: defcfun+out+doc ((c-name lisp-name) return-type (&body args) docstring)
Package

cl-glfw.

Source

glfw-macros.lisp.

Macro: do-window ((&rest open-window-keys) (&body setup-forms) &body forms)

High-level convenience macro for initializing glfw, opening a window (given the optional window parameters), setting the title given,
running setup-forms and then running forms in a loop, with calls to swap-buffers after each loop iteration. The loop is in a block named do-window [so can be exited by a call to (return-from glfw:do-window)].
If the window is closed, the loop is also exited.

Package

cl-glfw.

Source

glfw.lisp.

Macro: with-init (&body forms)

Call glfw:init, execute forms and clean-up with glfw:terminate once finished. This makes a nice wrapper to an application higher-level form.
Signals an error on failure to initialize. Wrapped in a block named glfw:with-init.

Package

cl-glfw.

Source

glfw.lisp.

Macro: with-init-window ((&rest open-window-keys) &body forms)

Wraps forms in with-init, with-open-window. Passes through the other arguments to open-window.

Package

cl-glfw.

Source

glfw.lisp.

Macro: with-lock-mutex (mutex &body forms)

Parameters
mutex
A mutex object handle.
forms
Body of code to execute
Description
This macro will acquire a lock on the selected mutex object using glfw::LockMutex and release it afterwards using glfw::UnlockMutex.
So, forms will not execute until an exclusive lock is held.
The lock is then released when the stack is unwound.

Package

cl-glfw.

Source

glfw.lisp.

Macro: with-open-window ((&rest open-window-keys) &body forms)

Wraps forms such that there is an open window for them to execute in and cleans up the window afterwards. An error is signalled if there was an error opening the window. Takes the same parameters as open-window, with the addition of ’title’ which will set the window title after opening.
Wrapped in a block named glfw:with-open-window.

Package

cl-glfw.

Source

glfw.lisp.


6.1.4 Ordinary functions

Function: broadcast-cond (cond)

Parameters
cond
A condition variable object handle.
Description
The function restarts all the threads that are waiting on the condition variable cond. If no threads are waiting on cond, nothing happens.
Notes
When several threads are waiting for the condition variable, the order in which threads are started depends on operating system scheduling rules, and may vary from system to system and from time to time.

Package

cl-glfw.

Source

glfw.lisp.

Function: close-window ()

The function closes an opened window and destroys the associated OpenGL context.

Package

cl-glfw.

Source

glfw.lisp.

Function: create-cond ()

Return values
The function returns a condition variable handle, or NULL if the condition variable could not be created.
Description
The function creates a condition variable object, which can be used to synchronize threads.

Package

cl-glfw.

Source

glfw.lisp.

Function: create-mutex ()

Return values
The function returns a mutex handle, or NULL if the mutex could not be created.
Description
The function creates a mutex object, which can be used to control access to data that is shared between threads.

Package

cl-glfw.

Source

glfw.lisp.

Function: create-thread (fun arg)

Parameters
fun
A pointer to a function that acts as the entry point for the new thread. The function should have the following C language prototype:
void GLFWCALL functionname( void *arg );
Where functionname is the name of the thread function, and arg is the user supplied argument
(see below).
arg
An arbitrary argument for the thread. arg will be passed as the argument to the thread function pointed to by fun. For instance, arg can point to data that is to be processed by the thread. Return values
The function returns a thread identification number if the thread was created successfully. This number is always positive. If the function fails, a negative number is returned.
Description
The function creates a new thread, which executes within the same address space as the calling process. The thread entry point is specified with the fun argument.
Once the thread function fun returns, the thread dies.
Notes
Even if the function returns a positive thread ID, indicating that the thread was created successfully, the thread may be unable to execute, for instance if the thread start address is not a valid thread entry point.

Package

cl-glfw.

Source

glfw.lisp.

Function: destroy-cond (cond)

Parameters
cond
A condition variable object handle.
Description
The function destroys a condition variable object. After a condition variable object has been destroyed, it may no longer be used by any thread.

Package

cl-glfw.

Source

glfw.lisp.

Function: destroy-mutex (mutex)

Parameters
mutex
A mutex object handle.
Description
The function destroys a mutex object. After a mutex object has been destroyed, it may no longer be used by any thread.

Package

cl-glfw.

Source

glfw.lisp.

Function: destroy-thread (id)

Parameters
ID
A thread identification handle, which is returned by glfw::CreateThread or glfw::GetThreadID. Description
The function kills a running thread and removes it from the thread list.
Notes
This function is a very dangerous operation, which may interrupt a thread in the middle of an important operation, and its use is discouraged. You should always try to end a thread in a graceful way using thread communication, and use glfw::WaitThread in order to wait for the thread to die.

Package

cl-glfw.

Source

glfw.lisp.

Function: disable (token)

Parameters
token
A value specifying a feature to enable or disable. Valid tokens are listed in table 3.8.
Return values
none
Description
glfw::Enable is used to enable a certain feature, while glfw::Disable is used to disable it. Below follows a description of each feature.
+AUTO_POLL_EVENTS+
When +AUTO_POLL_EVENTS+ is enabled, glfw::PollEvents is automatically called each time
that glfw::SwapBuffers is called.
When +AUTO_POLL_EVENTS+ is disabled, calling glfw::SwapBuffers will not result in a call to glfw::PollEvents. This can be useful if glfw::SwapBuffers needs to be called from within a callback function, since calling glfw::PollEvents from a callback function is not allowed.
+KEY_REPEAT+
When +KEY_REPEAT+ is enabled, the key and character callback functions are called repeatedly
when a key is held down long enough (according to the system key repeat configuration).
When +KEY_REPEAT+ is disabled, the key and character callback functions are only called once
when a key is pressed (and once when it is released).
+MOUSE_CURSOR+
When +MOUSE_CURSOR+ is enabled, the mouse cursor is visible, and mouse coordinates are
relative to the upper left corner of the client area of the GLFW window. The coordinates are limited to the client area of the window.
When +MOUSE_CURSOR+ is disabled, the mouse cursor is invisible, and mouse coordinates are
not limited to the drawing area of the window. It is as if the mouse coordinates are recieved directly from the mouse, without being restricted or manipulated by the windowing system.
+STICKY_KEYS+
When +STICKY_KEYS+ is enabled, keys which are pressed will not be released until they are
physically released and checked with glfw::GetKey. This behavior makes it possible to catch keys that were pressed and then released again between two calls to glfw::PollEvents, glfw::WaitEvents or glfw::SwapBuffers, which would otherwise have been reported as released. Care should be taken when
using this mode, since keys that are not checked with glfw::GetKey will never be released. Note also that enabling +STICKY_KEYS+ does not affect the behavior of the keyboard callback functionality.
When +STICKY_KEYS+ is disabled, the status of a key that is reported by glfwGetKey is always
the physical state of the key. Disabling +STICKY_KEYS+ also clears the sticky information for
all keys.
+STICKY_MOUSE_BUTTONS+
When +STICKY_MOUSE_BUTTONS+ is enabled, mouse buttons that are pressed will not be
released until they are physically released and checked with glfw::GetMouseButton. This behavior
makes it possible to catch mouse buttons which were pressed and then released again between two calls
to glfw::PollEvents, glfw::WaitEvents or glfw::SwapBuffers, which would otherwise have been reported
as released. Care should be taken when using this mode, since mouse buttons that are not checked with glfw::GetMouseButton will never be released. Note also that enabling
+STICKY_MOUSE_BUTTONS+ does not affect the behavior of the mouse button callback
functionality.
When +STICKY_MOUSE_BUTTONS+ is disabled, the status of a mouse button that is reported
by glfwGetMouseButton is always the physical state of the mouse button. Disabling
+STICKY_MOUSE_BUTTONS+ also clears the sticky information for all mouse buttons.
+SYSTEM_KEYS+
When +SYSTEM_KEYS+ is enabled, pressing standard system key combinations, such as
ALT+TAB under Windows, will give the normal behavior. Note that when ALT+TAB is issued under
Windows in this mode so that the GLFW application is deselected when GLFW is operating in
fullscreen mode, the GLFW application window will be minimized and the video mode will be set to
the original desktop mode. When the GLFW application is re-selected, the video mode will be set to
the GLFW video mode again.
When +SYSTEM_KEYS+ is disabled, pressing standard system key combinations will have no
effect, since those key combinations are blocked by GLFW. This mode can be useful in situations when
the GLFW program must not be interrupted (normally for games in fullscreen mode).

Package

cl-glfw.

Source

glfw.lisp.

Function: enable (token)

Parameters
token
A value specifying a feature to enable or disable. Valid tokens are listed in table 3.8.
Return values
none
Description
glfw::Enable is used to enable a certain feature, while glfw::Disable is used to disable it. Below follows a description of each feature.
+AUTO_POLL_EVENTS+
When +AUTO_POLL_EVENTS+ is enabled, glfw::PollEvents is automatically called each time
that glfw::SwapBuffers is called.
When +AUTO_POLL_EVENTS+ is disabled, calling glfw::SwapBuffers will not result in a call to glfw::PollEvents. This can be useful if glfw::SwapBuffers needs to be called from within a callback function, since calling glfw::PollEvents from a callback function is not allowed.
+KEY_REPEAT+
When +KEY_REPEAT+ is enabled, the key and character callback functions are called repeatedly
when a key is held down long enough (according to the system key repeat configuration).
When +KEY_REPEAT+ is disabled, the key and character callback functions are only called once
when a key is pressed (and once when it is released).
+MOUSE_CURSOR+
When +MOUSE_CURSOR+ is enabled, the mouse cursor is visible, and mouse coordinates are
relative to the upper left corner of the client area of the GLFW window. The coordinates are limited to the client area of the window.
When +MOUSE_CURSOR+ is disabled, the mouse cursor is invisible, and mouse coordinates are
not limited to the drawing area of the window. It is as if the mouse coordinates are recieved directly from the mouse, without being restricted or manipulated by the windowing system.
+STICKY_KEYS+
When +STICKY_KEYS+ is enabled, keys which are pressed will not be released until they are
physically released and checked with glfw::GetKey. This behavior makes it possible to catch keys that were pressed and then released again between two calls to glfw::PollEvents, glfw::WaitEvents or glfw::SwapBuffers, which would otherwise have been reported as released. Care should be taken when
using this mode, since keys that are not checked with glfw::GetKey will never be released. Note also that enabling +STICKY_KEYS+ does not affect the behavior of the keyboard callback functionality.
When +STICKY_KEYS+ is disabled, the status of a key that is reported by glfw::GetKey is always
the physical state of the key. Disabling +STICKY_KEYS+ also clears the sticky information for
all keys.
+STICKY_MOUSE_BUTTONS+
When +STICKY_MOUSE_BUTTONS+ is enabled, mouse buttons that are pressed will not be
released until they are physically released and checked with glfw::GetMouseButton. This behavior
makes it possible to catch mouse buttons which were pressed and then released again between two calls
to glfw::PollEvents, glfw::WaitEvents or glfw::SwapBuffers, which would otherwise have been reported
as released. Care should be taken when using this mode, since mouse buttons that are not checked with glfw::GetMouseButton will never be released. Note also that enabling
+STICKY_MOUSE_BUTTONS+ does not affect the behavior of the mouse button callback
functionality.
When +STICKY_MOUSE_BUTTONS+ is disabled, the status of a mouse button that is reported
by glfw::GetMouseButton is always the physical state of the mouse button. Disabling +STICKY_MOUSE_BUTTONS+ also clears the sticky information for all mouse buttons.
+SYSTEM_KEYS+
When +SYSTEM_KEYS+ is enabled, pressing standard system key combinations, such as
ALT+TAB under Windows, will give the normal behavior. Note that when ALT+TAB is issued under
Windows in this mode so that the GLFW application is deselected when GLFW is operating in
fullscreen mode, the GLFW application window will be minimized and the video mode will be set to
the original desktop mode. When the GLFW application is re-selected, the video mode will be set to
the GLFW video mode again.
When +SYSTEM_KEYS+ is disabled, pressing standard system key combinations will have no
effect, since those key combinations are blocked by GLFW. This mode can be useful in situations when
the GLFW program must not be interrupted (normally for games in fullscreen mode).

Package

cl-glfw.

Source

glfw.lisp.

Function: extension-supported (extension)

Parameters
extension
A null terminated ISO 8859-1 string containing the name of an OpenGL extension.
Return values
The function returns t if the extension is supported. Otherwise it returns nil.
Description
The function does a string search in the list of supported OpenGL extensions to find if the specified extension is listed.
Notes

An OpenGL context must be created before this function can be called (i.e. an OpenGL window
must have been opened with glfwOpenWindow).
In addition to checking for OpenGL extensions, GLFW also checks for extensions in the operating system ?glue API?, such as WGL extensions under Windows and glX extensions under the X Window System.

Package

cl-glfw.

Source

glfw.lisp.

Function: free-image (img)

Parameters
img
Pointer to a GLFWimage struct.
Description
The function frees any memory occupied by a loaded image, and clears all the fields of the GLFWimage struct. Any image that has been loaded by the glfw::ReadImage function should be deallocated using this function, once the image is not needed anymore.

Package

cl-glfw.

Source

glfw.lisp.

Function: get-desktop-mode ()

Parameters
mode
Pointer to a GLFWvidmode structure, which will be filled out by the function.
Return values
The GLFWvidmode structure pointed to by mode is filled out with the desktop video mode.
Description
The function returns the desktop video mode in a GLFWvidmode structure. See glfwGetVideoModes
for a definition of the GLFWvidmode structure.
Notes
The color depth of the desktop display is always reported as the number of bits for each individual color component (red, green and blue), even if the desktop is not using an RGB or RGBA color format. For instance, an indexed 256 color display may report RedBits = 3, GreenBits = 3 and BlueBits = 2, which adds up to 8 bits in total.
The desktop video mode is the video mode used by the desktop, not the current video mode (which may differ from the desktop video mode if the GLFW window is a fullscreen window).

Package

cl-glfw.

Source

glfw.lisp.

Function: get-gl-version ()

Return values
The function returns the major and minor version numbers and the revision for the currently used OpenGL implementation as a list (major minor rev).

Description
The function returns the OpenGL implementation version. This is a convenient function that parses the version number information from the string returned by calling
glGetString( GL_VERSION ). The OpenGL version information can be used to determine
what functionality is supported by the used OpenGL implementation.

Notes
An OpenGL context must be created before this function can be called (i.e. an OpenGL window must have been opened with glfwOpenWindow).

Package

cl-glfw.

Source

glfw.lisp.

Function: get-joystick-buttons (joy numbuttons)

Parameters
joy
A joystick identifier, which should be +JOYSTICK_n+ where n is in the range 1 to 16.
numbuttons
Specifies how many buttons should be returned.
Return values
A list that will hold the button states for all requested buttons.
The function returns the number of actually returned buttons. This is the minimum of numbuttons and
the number of buttons supported by the joystick. If the joystick is not supported or connected, the function will return 0 (zero).

Description
The function queries the current state of one or more buttons of a joystick. The button states are returned in an array, where the first element represents the first button of the joystick. Each state can be either +PRESS+ or +RELEASE+
If numbuttons exceeds the number of buttons supported by the joystick, or if the joystick is not available, the unused elements in the buttons array will be set to +RELEASE+

Notes
The joystick state is updated every time the function is called, so there is no need to call glfw::PollEvents or glfw::WaitEvents for joystick state to be updated.
Use glfw::GetJoystickParam to retrieve joystick capabilities, such as joystick availability and number of supported buttons.
No window has to be opened for joystick input to be valid.

Package

cl-glfw.

Source

glfw.lisp.

Function: get-joystick-param (joy param)

Parameters
joy
A joystick identifier, which should be +JOYSTICK_n+ where n is in the range 1 to 16.
param
A token selecting which parameter the function should return (see table 3.5).
Return values
The function returns different parameters depending on the value of param. Table 3.5 lists valid param values, and their corresponding return values.
Description
The function is used for acquiring various properties of a joystick.
Notes
The joystick information is updated every time the function is called.
No window has to be opened for joystick information to be valid.

Package

cl-glfw.

Source

glfw.lisp.

Function: get-joystick-pos (joy numaxes)

Parameters
joy
A joystick identifier, which should be +JOYSTICK_n+ where n is in the range 1 to 16.
numaxes
Specifies how many axes should be returned.
Return values
An list that will hold the positional values for all requested axes.
If the joystick is not supported or connected, the function will
return nil.

Description
The function queries the current position of one or more axes of a joystick. The positional values are returned in an array, where the first element represents the first axis of the joystick (normally the X axis). Each position is in the range -1.0 to 1.0. Where applicable, the positive direction of an axis is right, forward or up, and the negative direction is left, back or down.
If numaxes exceeds the number of axes supported by the joystick, or if the joystick is not available, the unused elements in the pos array will be set to 0.0 (zero).

Notes
The joystick state is updated every time the function is called, so there is no need to call glfw::PollEvents or glfw::WaitEvents for joystick state to be updated.
Use glfw::GetJoystickParam to retrieve joystick capabilities, such as joystick availability and number of supported axes.
No window has to be opened for joystick input to be valid.

Package

cl-glfw.

Source

glfw.lisp.

Function: get-key (key)

Parameters
key
A keyboard key identifier, which can be either an uppercase printable ISO 8859-1 (Latin 1) character (e.g. ’A’, ’3’ or ’.’), or a special key identifier. Table 3.3 lists valid special key identifiers.
Return values
The function returns +PRESS+ if the key is held down, or +RELEASE+ if the key is not
held down.

Description
The function queries the current state of a specific keyboard key. The physical location of each key depends on the system keyboard layout setting.

Notes
The constant +KEY_SPACE+ is equal to 32, which is the ISO 8859-1 code for space.
Not all key codes are supported on all systems. Also, while some keys are available on some keyboard layouts, they may not be available on other keyboard layouts.
For systems that do not distinguish between left and right versions of modifier keys (shift, alt and control), the left version is used (e.g. +KEY_LSHIFT+)
A window must be opened for the function to have any effect, and glfw::PollEvents, glfw::WaitEvents or glfw::SwapBuffers must be called before any keyboard events are recorded and reported by glfw::GetKey.

Package

cl-glfw.

Source

glfw.lisp.

Function: get-mouse-button (button)

Parameters
button
A mouse button identifier, which can be one of the mouse button identifiers listed in table 3.4. Return values
The function returns +PRESS+ if the mouse button is held down, or +RELEASE+ if the
mouse button is not held down.
Description
The function queries the current state of a specific mouse button.
Notes
A window must be opened for the function to have any effect, and glfw::PollEvents, glfw::WaitEvents or glfw::SwapBuffers must be called before any mouse button events are recorded and reported by glfw::GetMouseButton.
+MOUSE_BUTTON_LEFT+ is equal to +MOUSE_BUTTON_1+
+MOUSE_BUTTON_RIGHT+ is equal to +MOUSE_BUTTON_2+
+MOUSE_BUTTON_MIDDLE+ is equal to +MOUSE_BUTTON_3+

Package

cl-glfw.

Source

glfw.lisp.

Function: get-mouse-pos ()

Return values
The function returns the current mouse position in xpos and ypos.

Description
The function returns the current mouse position. If the cursor is not hidden, the mouse position is the cursor position, relative to the upper left corner of the window and limited to the client area of the window. If the cursor is hidden, the mouse position is a virtual absolute position, not limited to any boundaries except to those implied by the maximum number that can be represented by a signed integer (normally -2147483648 to +2147483647).

Notes
A window must be opened for the function to have any effect, and glfw::PollEvents, glfw::WaitEvents or glfw::SwapBuffers must be called before any mouse movements are recorded and reported by glfw::GetMousePos.

Package

cl-glfw.

Source

glfw.lisp.

Function: get-mouse-wheel ()

Return values
The function returns the current mouse wheel position.
Description
The function returns the current mouse wheel position. The mouse wheel can be thought of as a third mouse axis, which is available as a separate wheel or up/down stick on some mice.
Notes
A window must be opened for the function to have any effect, and glfw::PollEvents, glfw::WaitEvents or glfw::SwapBuffers must be called before any mouse wheel movements are recorded and reported by glfw::GetMouseWheel.

Package

cl-glfw.

Source

glfw.lisp.

Function: get-number-of-processors ()

Return values
The function returns the number of active processors in the system.
Description
The function determines the number of active processors in the system.
Notes
Systems with several logical processors per physical processor, also known as SMT (Symmetric Multi Threading) processors, will report the number of logical processors.

Package

cl-glfw.

Source

glfw.lisp.

Function: get-proc-address (procname)

Parameters
procname
A null terminated ISO 8859-1 string containing the name of an OpenGL extension function. Return values
The function returns the pointer to the specified OpenGL function if it is supported, otherwise NULL is returned.
Description
The function acquires the pointer to an OpenGL extension function. Some (but not all) OpenGL extensions define new API functions, which are usually not available through normal linking. It is therefore necessary to get access to those API functions at runtime.
Notes

An OpenGL context must be created before this function can be called (i.e. an OpenGL window must have been opened with glfwOpenWindow).
Some systems do not support dynamic function pointer retrieval, in which case glfwGetProcAddress will always return NULL.

Package

cl-glfw.

Source

glfw.lisp.

Function: get-thread-id ()

Return values
The function returns a thread identification handle for the calling thread.
Description
The function determines the thread ID for the calling thread. The ID is the same value as was returned by glfw::CreateThread when the thread was created.

Package

cl-glfw.

Source

glfw.lisp.

Function: get-time ()

Return values
The function returns the value of the high precision timer. The time is measured in seconds, and is returned as a double precision floating point value.

Description
The function returns the state of a high precision timer. Unless the timer has been set by the glfw::SetTime function, the time is measured as the number of seconds that have passed since glfw::Init was called.

Notes
The resolution of the timer depends on which system the program is running on. The worst case resolution is somewhere in the order of 10 ms, while for most systems the resolution should be better than 1us.

Package

cl-glfw.

Source

glfw.lisp.

Function: get-version ()

Return values
The function returns the major and minor version numbers and the revision for the currently linked GLFW library as a list (major minor rev).

Package

cl-glfw.

Source

glfw.lisp.

Function: get-video-modes (maxcount)

Parameters
maxcount
Maximum number of video modes that list vector can hold.

Return values
The function returns the number of detected video modes (this number will never exceed maxcount). The list vector is filled out with the video modes that are supported by the system.

Description
The function returns a list of supported video modes. Each video mode is represented by a list of the form:
(width height redbits greenbits bluebits)

Notes
The returned list is sorted, first by color depth (RedBits + GreenBits + BlueBits), and then by resolution (Width * Height), with the lowest resolution, fewest bits per pixel mode first.

Package

cl-glfw.

Source

glfw.lisp.

Function: get-window-param (param)

Parameters
param
A token selecting which parameter the function should return (see table 3.2).

Return values

The function returns different parameters depending on the value of
param. Table 3.2 lists valid param values, and their corresponding
return values.

Description
The function is used for acquiring various properties of an opened window.

Notes: GLFW_ACCELERATED is only supported under Windows. Other systems
will always return GL_TRUE. Under Windows, GLFW_ACCELERATED means that
the OpenGL renderer is a 3rd party renderer, rather than the fallback
Microsoft software OpenGL renderer. In other words, it is not a real
guarantee that the OpenGL renderer is actually hardware accelerated.

Package

cl-glfw.

Source

glfw.lisp.

Function: get-window-size ()

The function is used for determining the size of an opened window. The returned values are dimensions of the client area of the window (i.e. excluding any window borders and decorations).
(list width height)

Package

cl-glfw.

Source

glfw.lisp.

Function: iconify-window ()

Iconify a window. If the window is in fullscreen mode, then the desktop video mode will be restored.

Package

cl-glfw.

Source

glfw.lisp.

Function: init ()

Return values
If the function succeeds, t is returned.
If the function fails, nil is returned.

The glfwInit function initializes GLFW. No other GLFW functions may be used before this function has been called.

On successful initialization, the list of functions in *init-hooks* is called.

Notes
This function may take several seconds to complete on some systems, while on other systems it may take only a fraction of a second to complete.

Package

cl-glfw.

Source

glfw.lisp.

Function: lispify-key (key-int)

Convert key-int from GLFW’s integer representation to lisp characters if from 0 to 255, or keywords, if not within 0-255 inclusive.

Package

cl-glfw.

Source

glfw.lisp.

Function: lispify-mouse-button (button-int)

Convert button-int from GLFW’s integer representation to a lisp keyword.

Package

cl-glfw.

Source

glfw.lisp.

Function: load-memory-texture-2d (data size flags)

Parameters
data
The memory buffer holding the contents of the file that should be loaded.
size
The size, in bytes, of the memory buffer.
flags
Flags for controlling the texture loading process. Valid flags are listed in table 3.7.
Return values
The function returns t if the texture was loaded successfully. Otherwise nil is
returned.

Description
The function reads an image from the memory buffer specified by the parameter data and uploads the
image to OpenGL texture memory (using the glTexImage2D function).
If the GLFW_BUILD_MIPMAPS_BIT flag is set, all mipmap levels for the loaded texture are
generated and uploaded to texture memory.
Unless the flag +ORIGIN_UL_BIT+ is set, the origin of the texture is the lower left corner of the
loaded image. If the flag +ORIGIN_UL_BIT+ is set, however, the first pixel is the upper left
corner.
For single component images (i.e. gray scale), the texture is uploaded as an alpha mask if the flag +ALPHA_MAP_BIT+ flag is set, otherwise it is uploaded as a luminance texture.

Notes
glfw::LoadMemoryTexture2D supports the Truevision Targa version 1 file format (.TGA). Supported
pixel formats are: 8-bit gray scale, 8-bit paletted (24/32-bit color), 24-bit true color and 32-bit true color + alpha.
Paletted images are translated into true color or true color + alpha pixel formats.
The read texture is always rescaled to the nearest larger 2m ? 2n resolution using bilinear interpolation, if necessary, since OpenGL requires textures to have a 2m ? 2n resolution.
If the GL_SGIS_generate_mipmap extension, which is usually hardware accelerated, is supported by
the OpenGL implementation it will be used for mipmap generation. Otherwise the mipmaps will be
generated by GLFW in software.

Since OpenGL 1.0 does not support single component alpha maps, alpha map textures are converted
to RGBA format under OpenGL 1.0 when the GLFW_ALPHA_MAP_BIT flag is set and the loaded
texture is a single component texture. The red, green and blue components are set to 1.0.

Package

cl-glfw.

Source

glfw.lisp.

Function: load-texture-2d (name flags)

Parameters
name
An ISO 8859-1 string holding the name of the file that should be loaded.
flags
Flags for controlling the texture loading process. Valid flags are listed in table 3.7.
Return values
The function returns t if the texture was loaded successfully. Otherwise nil is
returned.

Description

The function reads an image from the file specified by the parameter
name and uploads the image to OpenGL texture memory (using the
glTexImage2D function). If the GLFW_BUILD_MIPMAPS_BIT flag is set,
all mipmap levels for the loaded texture are generated and uploaded to
texture memory. Unless the flag +ORIGIN_UL_BIT+ is set, the origin of
the texture is the lower left corner of the loaded image. If the flag
+ORIGIN_UL_BIT+ is set, however, the first pixel is the upper left
corner. For single component images (i.e. gray scale), the texture is
uploaded as an alpha mask if the flag +ALPHA_MAP_BIT+ flag is set,
otherwise it is uploaded as a luminance texture.

Notes
glfw::LoadTexture2D supports the Truevision Targa version 1 file format (.TGA). Supported pixel formats are: 8-bit gray scale, 8-bit paletted (24/32-bit color), 24-bit true color and 32-bit true color + alpha.
Paletted images are translated into true color or true color + alpha pixel formats.
The read texture is always rescaled to the nearest larger 2m ? 2n resolution using bilinear interpolation, if necessary, since OpenGL requires textures to have a 2m ? 2n resolution.
If the GL_SGIS_generate_mipmap extension, which is usually hardware accelerated, is supported by
the OpenGL implementation it will be used for mipmap generation. Otherwise the mipmaps will be generated by GLFW in software.

Since OpenGL 1.0 does not support single component alpha maps, alpha map textures are converted
to RGBA format under OpenGL 1.0 when the GLFW_ALPHA_MAP_BIT flag is set and the loaded
texture is a single component texture. The red, green and blue components are set to 1.0.

Package

cl-glfw.

Source

glfw.lisp.

Function: load-texture-image-2d (img flags)

Parameters
img
Pointer to a GLFWimage struct holding the information about the image to be loaded.
flags
Flags for controlling the texture loading process. Valid flags are listed in table 3.7.
Return values
The function returns t if the texture was loaded successfully. Otherwise nil is
returned.

Description
The function uploads the image specified by the parameter img to OpenGL texture memory (using
the glTexImage2D function).
If the +BUILD_MIPMAPS_BIT+ flag is set, all mipmap levels for the loaded texture are
generated and uploaded to texture memory.
Unless the flag +ORIGIN_UL_BIT+ is set, the origin of the texture is the lower left corner of the
loaded image. If the flag +ORIGIN_UL_BIT+ is set, however, the first pixel is the upper left
corner.
For single component images (i.e. gray scale), the texture is uploaded as an alpha mask if the flag +ALPHA_MAP_BIT+ flag is set, otherwise it is uploaded as a luminance texture.

Notes
glfw::LoadTextureImage2D supports the Truevision Targa version 1 file format (.TGA). Supported
pixel formats are: 8-bit gray scale, 8-bit paletted (24/32-bit color), 24-bit true color and 32-bit true color + alpha.
Paletted images are translated into true color or true color + alpha pixel formats.
The read texture is always rescaled to the nearest larger 2m ? 2n resolution using bilinear interpolation, if necessary, since OpenGL requires textures to have a 2m ? 2n resolution.
If the GL_SGIS_generate_mipmap extension, which is usually hardware accelerated, is supported by
the OpenGL implementation it will be used for mipmap generation. Otherwise the mipmaps will be
generated by GLFW in software.

Since OpenGL 1.0 does not support single component alpha maps, alpha map textures are converted
to RGBA format under OpenGL 1.0 when the GLFW_ALPHA_MAP_BIT flag is set and the loaded
texture is a single component texture. The red, green and blue components are set to 1.0.

Package

cl-glfw.

Source

glfw.lisp.

Function: lock-mutex (mutex)

Parameters
mutex
A mutex object handle.
Description
The function will acquire a lock on the selected mutex object. If the mutex is already locked by another thread, the function will block the calling thread until it is released by the locking thread. Once the function returns, the calling thread has an exclusive lock on the mutex. To release the mutex, call glfw::UnlockMutex.

Package

cl-glfw.

Source

glfw.lisp.

Function: open-window (&key width height redbits greenbits bluebits alphabits depthbits stencilbits mode title refresh-rate accum-red-bits accum-green-bits accum-blue-bits accum-alpha-bits aux-buffers stereo window-no-resize fsaa-samples opengl-version-major opengl-version-minor opengl-forward-compat opengl-debug-context opengl-profile opengl-core-profile opengl-compat-profile)

width
The width of the window. If width is zero, it will be calculated as width = 4/3 height, if height is not zero. If both width and height are zero, then width will be set to 640.
height
The height of the window. If height is zero, it will be calculated as height = 3/4 width, if width is not zero. If both width and height are zero, then height will be set to 480.
redbits, greenbits, bluebits
The number of bits to use for each color component of the color buffer (0 means default color depth). For instance, setting redbits=5, greenbits=6, and bluebits=5 will generate a 16-bit color buffer, if possible.
alphabits
The number of bits to use for the alpha buffer (0 means no alpha buffer).
depthbits
The number of bits to use for the depth buffer (0 means no depth buffer).
stencilbits
The number of bits to use for the stencil buffer (0 means no stencil buffer).
mode
Selects which type of OpenGL window to use. mode can be either +WINDOW+, which
will generate a normal desktop window, or +FULLSCREEN+ which will generate a
window which covers the entire screen. When +FULLSCREEN+ is selected, the video
mode will be changed to the resolution that closest matches the width and height parameters.

Return values
If the function succeeds, t is returned.
If the function fails, nil is returned.

Description

The function opens a window that best matches the parameters given to
the function. How well the resulting window matches the desired window
depends mostly on the available hardware and OpenGL drivers. In
general, selecting a fullscreen mode has better chances of generating
a close match than does a normal desktop window, since GLFW can freely
select from all the available video modes. A desktop window is
normally restricted to the video mode of the desktop.

Notes

For additional control of window properties, see glfw::OpenWindowHint.
In fullscreen mode the mouse cursor is hidden by default, and any system screensavers are prohibited from starting. In windowed mode the mouse cursor is visible, and screensavers are allowed to start. To change the visibility of the mouse cursor, use glfwEnable or glfwDisable with the argument +MOUSE_CURSOR+
In order to determine the actual properties of an opened window, use glfw::GetWindowParam and glfw::GetWindowSize (or glfw::SetWindowSizeCallback).

Package

cl-glfw.

Source

glfw.lisp.

Function: open-window-hint (target hint)

target
Can be any of the constants in the table 3.1.
hint
An integer giving the value of the corresponding target (see table 3.1).

Description
The function sets additional properties for a window that is to be opened. For a hint to be registered, the function must be called before calling glfw::OpenWindow. When the glfw::OpenWindow function is
called, any hints that were registered with the glfw::OpenWindowHint function are used for setting the corresponding window properties, and then all hints are reset to their default values.

Notes
In order to determine the actual properties of an opened window, use glfw::GetWindowParam (after the window has been opened).
+STEREO+ is a hard constraint. If stereo rendering is requested, but no stereo rendering capable
pixel formats / visuals are available, glfw::OpenWindow will fail.
The +REFRESH_RATE+ property should be used with caution. Most systems have default values
for monitor refresh rates that are optimal for the specific system. Specifying the refresh rate can override these settings, which can result in suboptimal operation. The monitor may be unable to display the resulting video signal, or in the worst case it may even be damaged!

Package

cl-glfw.

Source

glfw.lisp.

Function: poll-events ()

Description
The function is used for polling for events, such as user input and window resize events. Upon calling this function, all window states, keyboard states and mouse states are updated. If any related callback functions are registered, these are called during the call to glfwPollEvents.

Notes
glfwPollEvents is called implicitly from glfwSwapBuffers if +AUTO_POLL_EVENTS+ is
enabled (default). Thus, if glfwSwapBuffers is called frequently, which is normally the case, there is no need to call glfwPollEvents.

Package

cl-glfw.

Source

glfw.lisp.

Function: read-image (name img flags)

Parameters
name
A null terminated ISO 8859-1 string holding the name of the file that should be read.
img
Pointer to a GLFWimage struct, which will hold the information about the loaded image (if the read was successful).
flags
Flags for controlling the image reading process. Valid flags are listed in table 3.6
Return values
The function returns t if the image was loaded successfully. Otherwise nil is
returned.
Description
The function reads an image from the file specified by the parameter name and returns the image information and data in a GLFWimage structure, which has the following definition:

typedef struct {
int Width, Height; // Image dimensions
int Format; // OpenGL pixel format
int BytesPerPixel; // Number of bytes per pixel
unsigned char *Data; // Pointer to pixel data
} GLFWimage;

Width and Height give the dimensions of the image. Format specifies an OpenGL pixel format,
which can be GL_LUMINANCE or GL_ALPHA (for gray scale images), GL_RGB or GL_RGBA.
BytesPerPixel specifies the number of bytes per pixel. Data is a pointer to the actual pixel data.

By default the read image is rescaled to the nearest larger 2m ? 2n resolution using bilinear interpolation, if necessary, which is useful if the image is to be used as an OpenGL texture. This behavior can be disabled by setting the GLFW_NO_RESCALE_BIT flag.
Unless the flag GLFW_ORIGIN_UL_BIT is set, the first pixel in img->Data is the lower left corner of the image. If the flag GLFW_ORIGIN_UL_BIT is set, however, the first pixel is the upper left corner. For single component images (i.e. gray scale), Format is set to GL_ALPHA if the flag

+ALPHA_MAP_BIT+ flag is set, otherwise Format is set to GL_LUMINANCE.
Notes
glfw::ReadImage supports the Truevision Targa version 1 file format (.TGA). Supported pixel formats are: 8-bit gray scale, 8-bit paletted (24/32-bit color), 24-bit true color and 32-bit true color + alpha. Paletted images are translated into true color or true color + alpha pixel formats.
Please note that OpenGL 1.0 does not support single component alpha maps, so do not use images
with Format = GL_ALPHA directly as textures under OpenGL 1.0.

Package

cl-glfw.

Source

glfw.lisp.

Function: read-memory-image (data size img flags)

Parameters
data
The memory buffer holding the contents of the file that should be read.
size
The size, in bytes, of the memory buffer.
img
Pointer to a GLFWimage struct, which will hold the information about the loaded image (if the read was successful).
flags
Flags for controlling the image reading process. Valid flags are listed in table 3.6
Return values
The function returns t if the image was loaded successfully. Otherwise nil is
returned.
Description
The function reads an image from the memory buffer specified by the parameter data and returns the image information and data in a GLFWimage structure, which has the following definition:

typedef struct {
int Width, Height; // Image dimensions
int Format; // OpenGL pixel format
int BytesPerPixel; // Number of bytes per pixel
unsigned char *Data; // Pointer to pixel data
} GLFWimage;

Width and Height give the dimensions of the image. Format specifies an OpenGL pixel format,
which can be GL_LUMINANCE or GL_ALPHA (for gray scale images), GL_RGB or GL_RGBA.
BytesPerPixel specifies the number of bytes per pixel. Data is a pointer to the actual pixel data.

By default the read image is rescaled to the nearest larger 2m ? 2n resolution using bilinear interpolation, if necessary, which is useful if the image is to be used as an OpenGL texture. This behavior can be disabled by setting the GLFW_NO_RESCALE_BIT flag.
Unless the flag GLFW_ORIGIN_UL_BIT is set, the first pixel in img->Data is the lower left corner of the image. If the flag GLFW_ORIGIN_UL_BIT is set, however, the first pixel is the upper left corner. For single component images (i.e. gray scale), Format is set to GL_ALPHA if the flag
+ALPHA_MAP_BIT+ flag is set, otherwise Format is set to GL_LUMINANCE.
Notes
glfw::ReadMemoryImage supports the Truevision Targa version 1 file format (.TGA). Supported pixel formats are: 8-bit gray scale, 8-bit paletted (24/32-bit color), 24-bit true color and 32-bit true color + alpha.
Paletted images are translated into true color or true color + alpha pixel formats.
Please note that OpenGL 1.0 does not support single component alpha maps, so do not use images
with Format = GL_ALPHA directly as textures under OpenGL 1.0.

Package

cl-glfw.

Source

glfw.lisp.

Function: restore-window ()

Restore an iconified window. If the window that is restored is in fullscreen mode, then the fullscreen video mode will be restored.

Package

cl-glfw.

Source

glfw.lisp.

Function: set-char-callback (callback)

GENERAL CL-GLFW CALLBACK NOTES

All callback setting functions can take either a pointer to a C function,
a function object, a function symbol, or nil to clear the callback function.

THIS CALLBACK FUNCTION

Function that will be called every time a printable character is generated by
the keyboard. The function should take the arguments (character action)
where character is a lisp character and action is either glfw:+press+ or glfw:+release+.

NB this makes the presumption that your lisp implementation will use Unicode for code-char.

Description
The function selects which function to be called upon a keyboard character event. The callback function is called every time a key that results in a printable Unicode character is pressed or released. Characters are affected by modifiers (such as shift or alt).
A window has to be opened for this function to have any effect.

Notes
Character events are recorded continuously, but only reported when glfw::PollEvents, glfw::WaitEvents or glfw::SwapBuffers is called.
Control characters, such as tab and carriage return, are not reported to the character callback function, since they are not part of the Unicode character set. Use the key callback function for such events (see glfw::SetKeyCallback).
The Unicode character set supports character codes above 255, so never cast a Unicode character to an eight bit data type (e.g. the C language char type) without first checking that the character code is less than 256. Also note that Unicode character codes 0 to 255 are equal to ISO 8859-1 (Latin 1).

Package

cl-glfw.

Source

glfw.lisp.

Function: set-key-callback (callback)

GENERAL CL-GLFW CALLBACK NOTES

All callback setting functions can take either a pointer to a C function,
a function object, a function symbol, or nil to clear the callback function.

THIS CALLBACK FUNCTION

Function that will be called every time a key is pressed or released.
Function should take the arguments (key action), where key is either a character,
if the key pressed was a member of iso-8859-1, or a keyword representing the key pressed if not. See the GLFW manual, table 3.3 for special key identifiers. Action is either glfw:+press+ or glfw:+release+. Use set-char-callback instead if you want to read just characters.

Description
The function selects which function to be called upon a keyboard key event. The callback function is called every time the state of a single key is changed (from released to pressed or vice versa). The reported keys are unaffected by any modifiers (such as shift or alt).
A window has to be opened for this function to have any effect.

Notes
Keyboard events are recorded continuously, but only reported when glfw::PollEvents, glfw::WaitEvents or glfw::SwapBuffers is called.

Package

cl-glfw.

Source

glfw.lisp.

Function: set-mouse-button-callback (callback)

GENERAL CL-GLFW CALLBACK NOTES

All callback setting functions can take either a pointer to a C function,
a function object, a function symbol, or nil to clear the callback function.

THIS CALLBACK FUNCTION

Function that will be called every time a mouse button is pressed or released.
The function takes the arguments (button action), where button is a keyword symbol as returned by lispify-mouse-button and action is either glfw:+press+ or glfw:+release+.

Description
The function selects which function to be called upon a mouse button event.
A window has to be opened for this function to have any effect.

Notes
Mouse button events are recorded continuously, but only reported when glfw::PollEvents, glfw::WaitEvents or glfw::SwapBuffers is called.
+MOUSE_BUTTON_LEFT+ is equal to +MOUSE_BUTTON_1+
+MOUSE_BUTTON_RIGHT+ is equal to +MOUSE_BUTTON_2+
+MOUSE_BUTTON_MIDDLE+ is equal to +MOUSE_BUTTON_3+

Package

cl-glfw.

Source

glfw.lisp.

Function: set-mouse-pos (xpos ypos)

Parameters
xpos
Horizontal position of the mouse.
ypos
Vertical position of the mouse.

Description
The function changes the position of the mouse. If the cursor is visible (not disabled), the cursor will be moved to the specified position, relative to the upper left corner of the window client area. If the cursor is hidden (disabled), only the mouse position that is reported by GLFW is changed.

Package

cl-glfw.

Source

glfw.lisp.

Function: set-mouse-pos-callback (callback)

GENERAL CL-GLFW CALLBACK NOTES

All callback setting functions can take either a pointer to a C function,
a function object, a function symbol, or nil to clear the callback function.

THIS CALLBACK FUNCTION

Function that will be called every time the mouse is moved.
The function takes the arguments (x y), where x and y are the current position of the mouse.

Description
The function selects which function to be called upon a mouse motion event.
A window has to be opened for this function to have any effect.

Notes
Mouse motion events are recorded continuously, but only reported when glfw::PollEvents, glfw::WaitEvents or glfw::SwapBuffers is called.

Package

cl-glfw.

Source

glfw.lisp.

Function: set-mouse-wheel (pos)

Parameters
pos
Position of the mouse wheel.
Description
The function changes the position of the mouse wheel.

Package

cl-glfw.

Source

glfw.lisp.

Function: set-mouse-wheel-callback (callback)

GENERAL CL-GLFW CALLBACK NOTES

All callback setting functions can take either a pointer to a C function,
a function object, a function symbol, or nil to clear the callback function.

THIS CALLBACK FUNCTION

Function that will be called every time the mouse wheel is moved.
The function takes one argument: the position of the mouse wheel.
This DIFFERS FROM GLFW’s DEFAULT behaviour in that the position is
reset after every call to this function, effectively giving the delta.
As most programs are only interested in the delta anyway, this is thought
to save others recording the state of it again.
If you wish to have the original GLFW behaviour, set cl-glfw:*mouse-wheel-cumulative* to t.

Description
The function selects which function to be called upon a mouse wheel event.
A window has to be opened for this function to have any effect.
Notes
Mouse wheel events are recorded continuously, but only reported when glfw::PollEvents, glfw::WaitEvents or glfw::SwapBuffers is called.

Package

cl-glfw.

Source

glfw.lisp.

Function: set-time (time)

Parameters
time
Time (in seconds) that the timer should be set to.

Description
The function sets the current time of the high precision timer to the specified time. Subsequent calls to glfw::GetTime will be relative to this time. The time is given in seconds.

Package

cl-glfw.

Source

glfw.lisp.

Function: set-window-close-callback (callback)

GENERAL CL-GLFW CALLBACK NOTES

All callback setting functions can take either a pointer to a C function,
a function object, a function symbol, or nil to clear the callback function.

THIS CALLBACK FUNCTION

Function that will be called when a user requests that the window should be
closed, typically by clicking the window close icon (e.g. the cross in the upper right corner of a
window under Microsoft Windows). The function should have the following type:
(function () integer)

The return value of the callback function indicates whether or not the window close action should continue. If the function returns gl:+true+, the window will be closed. If the function returns gl:+false+, the window will not
be closed. If you give a CFFI callback returning glfw:boolean, you can use t and nil as return types.

Notes
Window close events are recorded continuously, but only reported when glfwPollEvents,
glfwWaitEvents or glfwSwapBuffers is called.
The OpenGL context is still valid when this function is called.
Note that the window close callback function is not called when glfwCloseWindow is called, but only
when the close request comes from the window manager.
Do not call glfwCloseWindow from a window close callback function. Close the window by returning
gl:+true+ from the function.

Package

cl-glfw.

Source

glfw.lisp.

Function: set-window-pos (x y)

Parameters
x
Horizontal position of the window, relative to the upper left corner of the desktop.
y
Vertical position of the window, relative to the upper left corner of the desktop. Return values
none
Description
The function changes the position of an opened window. It does not have any effect on a fullscreen window.

Package

cl-glfw.

Source

glfw.lisp.

Function: set-window-refresh-callback (callback)

GENERAL CL-GLFW CALLBACK NOTES

All callback setting functions can take either a pointer to a C function,
a function object, a function symbol, or nil to clear the callback function.

THIS CALLBACK FUNCTION

Function that will be called when the window client area needs to be
refreshed. The function takes no arguments and returns nothing (void).

Description

The function selects which function to be called upon a window refresh
event, which occurs when any part of the window client area has been
damaged, and needs to be repainted (for instance, if a part of the
window that was previously occluded by another window has become
visible). A window has to be opened for this function to have any
effect.

Notes
Window refresh events are recorded continuously, but only reported when glfwPollEvents, glfwWaitEvents or glfwSwapBuffers is called.

Package

cl-glfw.

Source

glfw.lisp.

Function: set-window-size (width height)

Parameters
width
Width of the window.
height
Height of the window.
Return values
none
Description

The function changes the size of an opened window. The width and
height parameters denote the size of the client area of the
window (i.e. excluding any window borders and decorations). If the
window is in fullscreen mode, the video mode will be changed to a
resolution that closest matches the width and height parameters (the
number of color bits will not be changed).

Notes

The OpenGL context is guaranteed to be preserved after calling glfwSetWindowSize, even if the video mode is changed.

Package

cl-glfw.

Source

glfw.lisp.

Function: set-window-size-callback (callback)

GENERAL CL-GLFW CALLBACK NOTES

All callback setting functions can take either a pointer to a C function,
a function object, a function symbol, or nil to clear the callback function.

THIS CALLBACK FUNCTION

Function that will be called every time the window size changes. The
function should takes the arguments (width height) giving the new width and height of the window client area.

A window has to be opened for this function to have any effect.
Notes
Window size changes are recorded continuously, but only reported when glfwPollEvents,
glfwWaitEvents or glfwSwapBuffers is called.

Package

cl-glfw.

Source

glfw.lisp.

Function: set-window-title (title)

Parameters
title
Pointer to a null terminated ISO 8859-1 (8-bit Latin 1) string that holds the title of the window.

Description
The function changes the title of the opened window.

Notes
The title property of a window is often used in situations other
than for the window title, such as the title of an application icon
when it is in iconified state.

Package

cl-glfw.

Source

glfw.lisp.

Function: signal-cond (cond)

Parameters
cond
A condition variable object handle.
Description
The function restarts one of the threads that are waiting on the condition variable cond. If no threads are waiting on cond, nothing happens. If several threads are waiting on cond, exactly one is restarted, but it is not specified which.
Notes
When several threads are waiting for the condition variable, which thread is started depends on operating system scheduling rules, and may vary from system to system and from time to time.

Package

cl-glfw.

Source

glfw.lisp.

Function: sleep (time)

Parameters
time
Time, in seconds, to sleep.

Description
The function puts the calling thread to sleep for the requested period of time. Only the calling thread is put to sleep. Other threads within the same process can still execute.

Notes
There is usually a system dependent minimum time for which it is possible to sleep. This time is generally in the range 1 ms to 20 ms, depending on thread sheduling time slot intervals etc. Using a shorter time as a parameter to glfw::Sleep can give one of two results: either the thread will sleep for the minimum possible sleep time, or the thread will not sleep at all (glfw::Sleep returns immediately). The latter should only happen when very short sleep times are specified, if at all.

Package

cl-glfw.

Source

glfw.lisp.

Function: swap-buffers ()

The function swaps the back and front color buffers of the window. If +AUTO_POLL_EVENTS+
is enabled (which is the default), glfwPollEvents is called before swapping the front and back buffers.

Package

cl-glfw.

Source

glfw.lisp.

Function: swap-interval (interval)

Parameters
interval
Minimum number of monitor vertical retraces between each buffer swap performed by glfwSwapBuffers. If interval is zero, buffer swaps will not be synchronized to the vertical refresh of the monitor (also known as VSync off).

Description

The function selects the minimum number of monitor vertical retraces
that should occur between two buffer swaps. If the selected swap
interval is one, the rate of buffer swaps will never be higher than
the vertical refresh rate of the monitor. If the selected swap
interval is zero, the rate of buffer swaps is only limited by the
speed of the software and the hardware.

Notes

This function will only have an effect on hardware and drivers that
support user selection of the swap interval.

Package

cl-glfw.

Source

glfw.lisp.

Function: terminate ()

The function terminates GLFW. Among other things it closes the window, if it is opened, and kills any running threads. This function must be called before a program exits.

Before termination, the list of functions in *terminate-hooks* is called.

Package

cl-glfw.

Source

glfw.lisp.

Function: unlock-mutex (mutex)

Parameters
mutex
A mutex object handle.
Description
The function releases the lock of a locked mutex object.

Package

cl-glfw.

Source

glfw.lisp.

Function: wait-cond (cond mutex timeout)

arameters
cond
A condition variable object handle.
mutex
A mutex object handle.
timeout
Maximum time to wait for the condition variable. The parameter can either be a positive time (in seconds), or +INFINITY+
Description
The function atomically unlocks the mutex specified by mutex, and waits for the condition variable cond to be signaled. The thread execution is suspended and does not consume any CPU time until the condition variable is signaled or the amount of time specified by timeout has passed. If timeout is +INFINITY+ glfw::WaitCond will wait forever for cond to be signaled. Before returning to the calling thread, glfw::WaitCond automatically re-acquires the mutex.
Notes
The mutex specified by mutex must be locked by the calling thread before entrance to glfw::WaitCond. A condition variable must always be associated with a mutex, to avoid the race condition where a thread prepares to wait on a condition variable and another thread signals the condition just before the first thread actually waits on it.

Package

cl-glfw.

Source

glfw.lisp.

Function: wait-events ()

Description
The function is used for waiting for events, such as user input and window resize events. Upon calling this function, the calling thread will be put to sleep until any event appears in the event queue. When events are ready, the events will be processed just as they are processed by glfwPollEvents.
If there are any events in the queue when the function is called, the function will behave exactly like glfwPollEvents (i.e. process all messages and then return, without blocking the calling thread).

Notes
It is guaranteed that glfwWaitEvents will wake up on any event that can be processed by glfw::PollEvents. However, glfwWaitEvents may wake up on events that are not processed or reported by glfw::PollEvents too, and the function may behave differently on different systems. Do no make any assumptions about when or why glfw::WaitEvents will return.

Package

cl-glfw.

Source

glfw.lisp.

Function: wait-thread (id waitmode)

Parameters
ID
A thread identification handle, which is returned by glfw::CreateThread or glfw::GetThreadID. waitmode
Can be either +WAIT+ or +NOWAIT+
Return values
The function returns t if the specified thread died after the function was called, or the thread did not exist, in which case glfw::WaitThread will return immediately regardless of waitmode. The function returns nil if waitmode is +NOWAIT+ and the specified thread exists and is still running.

Package

cl-glfw.

Source

glfw.lisp.


6.1.5 Standalone methods

Method: expand-from-foreign (value (type gl-boolean))
Package

cffi.

Source

types.lisp.

Method: expand-to-foreign (value (type gl-double))
Package

cffi.

Source

types.lisp.

Method: expand-to-foreign (value (type gl-float))
Package

cffi.

Source

types.lisp.

Method: expand-to-foreign (value (type gl-clampd))
Package

cffi.

Source

types.lisp.

Method: expand-to-foreign (value (type gl-clampf))
Package

cffi.

Source

types.lisp.

Method: expand-to-foreign (value (type gl-boolean))
Package

cffi.

Source

types.lisp.


6.2 Internals


6.2.1 Constants

Constant: +opengl-compat-profile+
Package

cl-glfw.

Source

glfw.lisp.

Constant: +opengl-core-profile+
Package

cl-glfw.

Source

glfw.lisp.


6.2.2 Special variables

Special Variable: *char-callback*
Package

cl-glfw.

Source

glfw.lisp.

Special Variable: *key-callback*
Package

cl-glfw.

Source

glfw.lisp.

Special Variable: *mouse-button-callback*
Package

cl-glfw.

Source

glfw.lisp.

Special Variable: *mouse-pos-callback*
Package

cl-glfw.

Source

glfw.lisp.

Special Variable: *mouse-wheel-callback*
Package

cl-glfw.

Source

glfw.lisp.

Special Variable: *was-init*

True if we have already initialized.

Package

cl-glfw.

Source

glfw.lisp.

Special Variable: *window-close-callback*
Package

cl-glfw.

Source

glfw.lisp.

Special Variable: *window-refresh-callback*
Package

cl-glfw.

Source

glfw.lisp.

Special Variable: *window-size-callback*
Package

cl-glfw.

Source

glfw.lisp.


6.2.3 Macros

Macro: defgltype (type parser actual-type)
Package

cl-glfw-types.

Source

types.lisp.

Macro: define-callback-setter (c-name callback-prefix return-type (&body args) &key before-form after-form documentation)
Package

cl-glfw.

Source

glfw.lisp.

Macro: do-open-window ((&rest open-window-keys) (&body setup-forms) &body forms)

High-level convenience macro for opening a window (given the optional window parameters),
setting the title given,
running setup-forms and then running forms in a loop, with calls to swap-buffers after each loop iteration. The loop is in a block named do-open-window [so can be exited by a call to (return-from glfw:do-window)]. If the window is closed, the loop is also exited.

Package

cl-glfw.

Source

glfw.lisp.

Macro: key-int-to-symbol (key-form)
Package

cl-glfw.

Source

glfw.lisp.


6.2.4 Ordinary functions

Function: %get-desktop-mode (mode)
Package

cl-glfw.

Source

glfw.lisp.

Function: %get-gl-version (major minor rev)
Package

cl-glfw.

Source

glfw.lisp.

Function: %get-joystick-buttons (joy buttons numbuttons)
Package

cl-glfw.

Source

glfw.lisp.

Function: %get-joystick-pos (joy pos numaxes)
Package

cl-glfw.

Source

glfw.lisp.

Function: %get-mouse-pos (xpos ypos)
Package

cl-glfw.

Source

glfw.lisp.

Function: %get-version (major minor rev)
Package

cl-glfw.

Source

glfw.lisp.

Function: %get-video-modes (list maxcount)
Package

cl-glfw.

Source

glfw.lisp.

Function: %get-window-size (width height)
Package

cl-glfw.

Source

glfw.lisp.

Function: %init ()
Package

cl-glfw.

Source

glfw.lisp.

Function: %open-window (width height redbits greenbits bluebits alphabits depthbits stencilbits mode)
Package

cl-glfw.

Source

glfw.lisp.

Function: %set-char-callback (cbfun)
Package

cl-glfw.

Source

glfw.lisp.

Function: %set-key-callback (cbfun)
Package

cl-glfw.

Source

glfw.lisp.

Function: %set-mouse-button-callback (cbfun)
Package

cl-glfw.

Source

glfw.lisp.

Function: %set-mouse-pos-callback (cbfun)
Package

cl-glfw.

Source

glfw.lisp.

Function: %set-mouse-wheel-callback (cbfun)
Package

cl-glfw.

Source

glfw.lisp.

Function: %set-window-close-callback (cbfun)
Package

cl-glfw.

Source

glfw.lisp.

Function: %set-window-refresh-callback (cbfun)
Package

cl-glfw.

Source

glfw.lisp.

Function: %set-window-size-callback (cbfun)
Package

cl-glfw.

Source

glfw.lisp.

Function: %terminate ()
Package

cl-glfw.

Source

glfw.lisp.


6.2.5 Classes

Class: gl-bitfield
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (uint32))
Class: gl-boolean
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct methods
Direct Default Initargs
InitargValue
:actual-type(quote (uint8))
Class: gl-byte
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (int8))
Class: gl-char
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (char))
Class: gl-clampd
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct methods

expand-to-foreign.

Direct Default Initargs
InitargValue
:actual-type(quote (double))
Class: gl-clampf
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct methods

expand-to-foreign.

Direct Default Initargs
InitargValue
:actual-type(quote (float))
Class: gl-double
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct methods

expand-to-foreign.

Direct Default Initargs
InitargValue
:actual-type(quote (double))
Class: gl-enum
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (uint32))
Class: gl-float
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct methods

expand-to-foreign.

Direct Default Initargs
InitargValue
:actual-type(quote (float))
Class: gl-half
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (unsigned-short))
Class: gl-handle
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (unsigned-int))
Class: gl-int
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (int32))
Class: gl-int64
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (int64))
Class: gl-intprt
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (int64))
Class: gl-short
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (int16))
Class: gl-sizei
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (int32))
Class: gl-sizeiptr
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (int64))
Class: gl-ubyte
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (uint8))
Class: gl-uint
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (uint32))
Class: gl-uint64
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (uint64))
Class: gl-ushort
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (uint16))
Class: gl-void
Package

cl-glfw-types.

Source

types.lisp.

Direct superclasses

enhanced-foreign-type.

Direct Default Initargs
InitargValue
:actual-type(quote (void))
Class: image-tclass
Package

cl-glfw.

Source

glfw.lisp.

Direct superclasses
  • foreign-struct-type.
  • translatable-foreign-type.
Class: vidmode-tclass
Package

cl-glfw.

Source

glfw.lisp.

Direct superclasses
  • foreign-struct-type.
  • translatable-foreign-type.

Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   %  
B   C   D   E   F   G   I   K   L   M   O   P   R   S   T   U   W  
Index Entry  Section

%
%get-desktop-mode: Private ordinary functions
%get-gl-version: Private ordinary functions
%get-joystick-buttons: Private ordinary functions
%get-joystick-pos: Private ordinary functions
%get-mouse-pos: Private ordinary functions
%get-version: Private ordinary functions
%get-video-modes: Private ordinary functions
%get-window-size: Private ordinary functions
%init: Private ordinary functions
%open-window: Private ordinary functions
%set-char-callback: Private ordinary functions
%set-key-callback: Private ordinary functions
%set-mouse-button-callback: Private ordinary functions
%set-mouse-pos-callback: Private ordinary functions
%set-mouse-wheel-callback: Private ordinary functions
%set-window-close-callback: Private ordinary functions
%set-window-refresh-callback: Private ordinary functions
%set-window-size-callback: Private ordinary functions
%terminate: Private ordinary functions

B
broadcast-cond: Public ordinary functions

C
close-window: Public ordinary functions
create-cond: Public ordinary functions
create-mutex: Public ordinary functions
create-thread: Public ordinary functions

D
defcfun+doc: Public macros
defcfun+out+doc: Public macros
defgltype: Private macros
define-callback-setter: Private macros
destroy-cond: Public ordinary functions
destroy-mutex: Public ordinary functions
destroy-thread: Public ordinary functions
disable: Public ordinary functions
do-open-window: Private macros
do-window: Public macros

E
enable: Public ordinary functions
expand-from-foreign: Public standalone methods
expand-to-foreign: Public standalone methods
expand-to-foreign: Public standalone methods
expand-to-foreign: Public standalone methods
expand-to-foreign: Public standalone methods
expand-to-foreign: Public standalone methods
extension-supported: Public ordinary functions

F
free-image: Public ordinary functions
Function, %get-desktop-mode: Private ordinary functions
Function, %get-gl-version: Private ordinary functions
Function, %get-joystick-buttons: Private ordinary functions
Function, %get-joystick-pos: Private ordinary functions
Function, %get-mouse-pos: Private ordinary functions
Function, %get-version: Private ordinary functions
Function, %get-video-modes: Private ordinary functions
Function, %get-window-size: Private ordinary functions
Function, %init: Private ordinary functions
Function, %open-window: Private ordinary functions
Function, %set-char-callback: Private ordinary functions
Function, %set-key-callback: Private ordinary functions
Function, %set-mouse-button-callback: Private ordinary functions
Function, %set-mouse-pos-callback: Private ordinary functions
Function, %set-mouse-wheel-callback: Private ordinary functions
Function, %set-window-close-callback: Private ordinary functions
Function, %set-window-refresh-callback: Private ordinary functions
Function, %set-window-size-callback: Private ordinary functions
Function, %terminate: Private ordinary functions
Function, broadcast-cond: Public ordinary functions
Function, close-window: Public ordinary functions
Function, create-cond: Public ordinary functions
Function, create-mutex: Public ordinary functions
Function, create-thread: Public ordinary functions
Function, destroy-cond: Public ordinary functions
Function, destroy-mutex: Public ordinary functions
Function, destroy-thread: Public ordinary functions
Function, disable: Public ordinary functions
Function, enable: Public ordinary functions
Function, extension-supported: Public ordinary functions
Function, free-image: Public ordinary functions
Function, get-desktop-mode: Public ordinary functions
Function, get-gl-version: Public ordinary functions
Function, get-joystick-buttons: Public ordinary functions
Function, get-joystick-param: Public ordinary functions
Function, get-joystick-pos: Public ordinary functions
Function, get-key: Public ordinary functions
Function, get-mouse-button: Public ordinary functions
Function, get-mouse-pos: Public ordinary functions
Function, get-mouse-wheel: Public ordinary functions
Function, get-number-of-processors: Public ordinary functions
Function, get-proc-address: Public ordinary functions
Function, get-thread-id: Public ordinary functions
Function, get-time: Public ordinary functions
Function, get-version: Public ordinary functions
Function, get-video-modes: Public ordinary functions
Function, get-window-param: Public ordinary functions
Function, get-window-size: Public ordinary functions
Function, iconify-window: Public ordinary functions
Function, init: Public ordinary functions
Function, lispify-key: Public ordinary functions
Function, lispify-mouse-button: Public ordinary functions
Function, load-memory-texture-2d: Public ordinary functions
Function, load-texture-2d: Public ordinary functions
Function, load-texture-image-2d: Public ordinary functions
Function, lock-mutex: Public ordinary functions
Function, open-window: Public ordinary functions
Function, open-window-hint: Public ordinary functions
Function, poll-events: Public ordinary functions
Function, read-image: Public ordinary functions
Function, read-memory-image: Public ordinary functions
Function, restore-window: Public ordinary functions
Function, set-char-callback: Public ordinary functions
Function, set-key-callback: Public ordinary functions
Function, set-mouse-button-callback: Public ordinary functions
Function, set-mouse-pos: Public ordinary functions
Function, set-mouse-pos-callback: Public ordinary functions
Function, set-mouse-wheel: Public ordinary functions
Function, set-mouse-wheel-callback: Public ordinary functions
Function, set-time: Public ordinary functions
Function, set-window-close-callback: Public ordinary functions
Function, set-window-pos: Public ordinary functions
Function, set-window-refresh-callback: Public ordinary functions
Function, set-window-size: Public ordinary functions
Function, set-window-size-callback: Public ordinary functions
Function, set-window-title: Public ordinary functions
Function, signal-cond: Public ordinary functions
Function, sleep: Public ordinary functions
Function, swap-buffers: Public ordinary functions
Function, swap-interval: Public ordinary functions
Function, terminate: Public ordinary functions
Function, unlock-mutex: Public ordinary functions
Function, wait-cond: Public ordinary functions
Function, wait-events: Public ordinary functions
Function, wait-thread: Public ordinary functions

G
get-desktop-mode: Public ordinary functions
get-gl-version: Public ordinary functions
get-joystick-buttons: Public ordinary functions
get-joystick-param: Public ordinary functions
get-joystick-pos: Public ordinary functions
get-key: Public ordinary functions
get-mouse-button: Public ordinary functions
get-mouse-pos: Public ordinary functions
get-mouse-wheel: Public ordinary functions
get-number-of-processors: Public ordinary functions
get-proc-address: Public ordinary functions
get-thread-id: Public ordinary functions
get-time: Public ordinary functions
get-version: Public ordinary functions
get-video-modes: Public ordinary functions
get-window-param: Public ordinary functions
get-window-size: Public ordinary functions

I
iconify-window: Public ordinary functions
init: Public ordinary functions

K
key-int-to-symbol: Private macros

L
lispify-key: Public ordinary functions
lispify-mouse-button: Public ordinary functions
load-memory-texture-2d: Public ordinary functions
load-texture-2d: Public ordinary functions
load-texture-image-2d: Public ordinary functions
lock-mutex: Public ordinary functions

M
Macro, defcfun+doc: Public macros
Macro, defcfun+out+doc: Public macros
Macro, defgltype: Private macros
Macro, define-callback-setter: Private macros
Macro, do-open-window: Private macros
Macro, do-window: Public macros
Macro, key-int-to-symbol: Private macros
Macro, with-init: Public macros
Macro, with-init-window: Public macros
Macro, with-lock-mutex: Public macros
Macro, with-open-window: Public macros
Method, expand-from-foreign: Public standalone methods
Method, expand-to-foreign: Public standalone methods
Method, expand-to-foreign: Public standalone methods
Method, expand-to-foreign: Public standalone methods
Method, expand-to-foreign: Public standalone methods
Method, expand-to-foreign: Public standalone methods

O
open-window: Public ordinary functions
open-window-hint: Public ordinary functions

P
poll-events: Public ordinary functions

R
read-image: Public ordinary functions
read-memory-image: Public ordinary functions
restore-window: Public ordinary functions

S
set-char-callback: Public ordinary functions
set-key-callback: Public ordinary functions
set-mouse-button-callback: Public ordinary functions
set-mouse-pos: Public ordinary functions
set-mouse-pos-callback: Public ordinary functions
set-mouse-wheel: Public ordinary functions
set-mouse-wheel-callback: Public ordinary functions
set-time: Public ordinary functions
set-window-close-callback: Public ordinary functions
set-window-pos: Public ordinary functions
set-window-refresh-callback: Public ordinary functions
set-window-size: Public ordinary functions
set-window-size-callback: Public ordinary functions
set-window-title: Public ordinary functions
signal-cond: Public ordinary functions
sleep: Public ordinary functions
swap-buffers: Public ordinary functions
swap-interval: Public ordinary functions

T
terminate: Public ordinary functions

U
unlock-mutex: Public ordinary functions

W
wait-cond: Public ordinary functions
wait-events: Public ordinary functions
wait-thread: Public ordinary functions
with-init: Public macros
with-init-window: Public macros
with-lock-mutex: Public macros
with-open-window: Public macros


A.3 Variables

Jump to:   *   +  
C   S  
Index Entry  Section

*
*char-callback*: Private special variables
*init-hooks*: Public special variables
*key-callback*: Private special variables
*mouse-button-callback*: Private special variables
*mouse-pos-callback*: Private special variables
*mouse-wheel-callback*: Private special variables
*mouse-wheel-cumulative*: Public special variables
*terminate-hooks*: Public special variables
*was-init*: Private special variables
*window-close-callback*: Private special variables
*window-refresh-callback*: Private special variables
*window-size-callback*: Private special variables

+
+accelerated+: Public constants
+accum-alpha-bits+: Public constants
+accum-blue-bits+: Public constants
+accum-green-bits+: Public constants
+accum-red-bits+: Public constants
+active+: Public constants
+alpha-bits+: Public constants
+alpha-map-bit+: Public constants
+auto-poll-events+: Public constants
+aux-buffers+: Public constants
+axes+: Public constants
+blue-bits+: Public constants
+build-mipmaps-bit+: Public constants
+buttons+: Public constants
+depth-bits+: Public constants
+false+: Public constants
+fsaa-samples+: Public constants
+fullscreen+: Public constants
+green-bits+: Public constants
+iconified+: Public constants
+infinity+: Public constants
+joystick-1+: Public constants
+joystick-10+: Public constants
+joystick-11+: Public constants
+joystick-12+: Public constants
+joystick-13+: Public constants
+joystick-14+: Public constants
+joystick-15+: Public constants
+joystick-16+: Public constants
+joystick-2+: Public constants
+joystick-3+: Public constants
+joystick-4+: Public constants
+joystick-5+: Public constants
+joystick-6+: Public constants
+joystick-7+: Public constants
+joystick-8+: Public constants
+joystick-9+: Public constants
+joystick-last+: Public constants
+key-backspace+: Public constants
+key-caps-lock+: Public constants
+key-del+: Public constants
+key-down+: Public constants
+key-end+: Public constants
+key-enter+: Public constants
+key-esc+: Public constants
+key-f1+: Public constants
+key-f10+: Public constants
+key-f11+: Public constants
+key-f12+: Public constants
+key-f13+: Public constants
+key-f14+: Public constants
+key-f15+: Public constants
+key-f16+: Public constants
+key-f17+: Public constants
+key-f18+: Public constants
+key-f19+: Public constants
+key-f2+: Public constants
+key-f20+: Public constants
+key-f21+: Public constants
+key-f22+: Public constants
+key-f23+: Public constants
+key-f24+: Public constants
+key-f25+: Public constants
+key-f3+: Public constants
+key-f4+: Public constants
+key-f5+: Public constants
+key-f6+: Public constants
+key-f7+: Public constants
+key-f8+: Public constants
+key-f9+: Public constants
+key-home+: Public constants
+key-insert+: Public constants
+key-kp-0+: Public constants
+key-kp-1+: Public constants
+key-kp-2+: Public constants
+key-kp-3+: Public constants
+key-kp-4+: Public constants
+key-kp-5+: Public constants
+key-kp-6+: Public constants
+key-kp-7+: Public constants
+key-kp-8+: Public constants
+key-kp-9+: Public constants
+key-kp-add+: Public constants
+key-kp-decimal+: Public constants
+key-kp-divide+: Public constants
+key-kp-enter+: Public constants
+key-kp-equal+: Public constants
+key-kp-multiply+: Public constants
+key-kp-num-lock+: Public constants
+key-kp-subtract+: Public constants
+key-lalt+: Public constants
+key-last+: Public constants
+key-lctrl+: Public constants
+key-left+: Public constants
+key-lshift+: Public constants
+key-lsuper+: Public constants
+key-menu+: Public constants
+key-pagedown+: Public constants
+key-pageup+: Public constants
+key-pause+: Public constants
+key-ralt+: Public constants
+key-rctrl+: Public constants
+key-repeat+: Public constants
+key-right+: Public constants
+key-rshift+: Public constants
+key-rsuper+: Public constants
+key-scroll-lock+: Public constants
+key-space+: Public constants
+key-special+: Public constants
+key-tab+: Public constants
+key-unknown+: Public constants
+key-up+: Public constants
+mouse-button-1+: Public constants
+mouse-button-2+: Public constants
+mouse-button-3+: Public constants
+mouse-button-4+: Public constants
+mouse-button-5+: Public constants
+mouse-button-6+: Public constants
+mouse-button-7+: Public constants
+mouse-button-8+: Public constants
+mouse-button-last+: Public constants
+mouse-button-left+: Public constants
+mouse-button-middle+: Public constants
+mouse-button-right+: Public constants
+mouse-cursor+: Public constants
+no-rescale-bit+: Public constants
+nowait+: Public constants
+opened+: Public constants
+opengl-compat-profile+: Private constants
+opengl-core-profile+: Private constants
+opengl-debug-context+: Public constants
+opengl-forward-compat+: Public constants
+opengl-profile+: Public constants
+opengl-version-major+: Public constants
+opengl-version-minor+: Public constants
+origin-ul-bit+: Public constants
+present+: Public constants
+press+: Public constants
+red-bits+: Public constants
+refresh-rate+: Public constants
+release+: Public constants
+stencil-bits+: Public constants
+stereo+: Public constants
+sticky-keys+: Public constants
+sticky-mouse-buttons+: Public constants
+system-keys+: Public constants
+true+: Public constants
+wait+: Public constants
+window+: Public constants
+window-no-resize+: Public constants

C
Constant, +accelerated+: Public constants
Constant, +accum-alpha-bits+: Public constants
Constant, +accum-blue-bits+: Public constants
Constant, +accum-green-bits+: Public constants
Constant, +accum-red-bits+: Public constants
Constant, +active+: Public constants
Constant, +alpha-bits+: Public constants
Constant, +alpha-map-bit+: Public constants
Constant, +auto-poll-events+: Public constants
Constant, +aux-buffers+: Public constants
Constant, +axes+: Public constants
Constant, +blue-bits+: Public constants
Constant, +build-mipmaps-bit+: Public constants
Constant, +buttons+: Public constants
Constant, +depth-bits+: Public constants
Constant, +false+: Public constants
Constant, +fsaa-samples+: Public constants
Constant, +fullscreen+: Public constants
Constant, +green-bits+: Public constants
Constant, +iconified+: Public constants
Constant, +infinity+: Public constants
Constant, +joystick-1+: Public constants
Constant, +joystick-10+: Public constants
Constant, +joystick-11+: Public constants
Constant, +joystick-12+: Public constants
Constant, +joystick-13+: Public constants
Constant, +joystick-14+: Public constants
Constant, +joystick-15+: Public constants
Constant, +joystick-16+: Public constants
Constant, +joystick-2+: Public constants
Constant, +joystick-3+: Public constants
Constant, +joystick-4+: Public constants
Constant, +joystick-5+: Public constants
Constant, +joystick-6+: Public constants
Constant, +joystick-7+: Public constants
Constant, +joystick-8+: Public constants
Constant, +joystick-9+: Public constants
Constant, +joystick-last+: Public constants
Constant, +key-backspace+: Public constants
Constant, +key-caps-lock+: Public constants
Constant, +key-del+: Public constants
Constant, +key-down+: Public constants
Constant, +key-end+: Public constants
Constant, +key-enter+: Public constants
Constant, +key-esc+: Public constants
Constant, +key-f1+: Public constants
Constant, +key-f10+: Public constants
Constant, +key-f11+: Public constants
Constant, +key-f12+: Public constants
Constant, +key-f13+: Public constants
Constant, +key-f14+: Public constants
Constant, +key-f15+: Public constants
Constant, +key-f16+: Public constants
Constant, +key-f17+: Public constants
Constant, +key-f18+: Public constants
Constant, +key-f19+: Public constants
Constant, +key-f2+: Public constants
Constant, +key-f20+: Public constants
Constant, +key-f21+: Public constants
Constant, +key-f22+: Public constants
Constant, +key-f23+: Public constants
Constant, +key-f24+: Public constants
Constant, +key-f25+: Public constants
Constant, +key-f3+: Public constants
Constant, +key-f4+: Public constants
Constant, +key-f5+: Public constants
Constant, +key-f6+: Public constants
Constant, +key-f7+: Public constants
Constant, +key-f8+: Public constants
Constant, +key-f9+: Public constants
Constant, +key-home+: Public constants
Constant, +key-insert+: Public constants
Constant, +key-kp-0+: Public constants
Constant, +key-kp-1+: Public constants
Constant, +key-kp-2+: Public constants
Constant, +key-kp-3+: Public constants
Constant, +key-kp-4+: Public constants
Constant, +key-kp-5+: Public constants
Constant, +key-kp-6+: Public constants
Constant, +key-kp-7+: Public constants
Constant, +key-kp-8+: Public constants
Constant, +key-kp-9+: Public constants
Constant, +key-kp-add+: Public constants
Constant, +key-kp-decimal+: Public constants
Constant, +key-kp-divide+: Public constants
Constant, +key-kp-enter+: Public constants
Constant, +key-kp-equal+: Public constants
Constant, +key-kp-multiply+: Public constants
Constant, +key-kp-num-lock+: Public constants
Constant, +key-kp-subtract+: Public constants
Constant, +key-lalt+: Public constants
Constant, +key-last+: Public constants
Constant, +key-lctrl+: Public constants
Constant, +key-left+: Public constants
Constant, +key-lshift+: Public constants
Constant, +key-lsuper+: Public constants
Constant, +key-menu+: Public constants
Constant, +key-pagedown+: Public constants
Constant, +key-pageup+: Public constants
Constant, +key-pause+: Public constants
Constant, +key-ralt+: Public constants
Constant, +key-rctrl+: Public constants
Constant, +key-repeat+: Public constants
Constant, +key-right+: Public constants
Constant, +key-rshift+: Public constants
Constant, +key-rsuper+: Public constants
Constant, +key-scroll-lock+: Public constants
Constant, +key-space+: Public constants
Constant, +key-special+: Public constants
Constant, +key-tab+: Public constants
Constant, +key-unknown+: Public constants
Constant, +key-up+: Public constants
Constant, +mouse-button-1+: Public constants
Constant, +mouse-button-2+: Public constants
Constant, +mouse-button-3+: Public constants
Constant, +mouse-button-4+: Public constants
Constant, +mouse-button-5+: Public constants
Constant, +mouse-button-6+: Public constants
Constant, +mouse-button-7+: Public constants
Constant, +mouse-button-8+: Public constants
Constant, +mouse-button-last+: Public constants
Constant, +mouse-button-left+: Public constants
Constant, +mouse-button-middle+: Public constants
Constant, +mouse-button-right+: Public constants
Constant, +mouse-cursor+: Public constants
Constant, +no-rescale-bit+: Public constants
Constant, +nowait+: Public constants
Constant, +opened+: Public constants
Constant, +opengl-compat-profile+: Private constants
Constant, +opengl-core-profile+: Private constants
Constant, +opengl-debug-context+: Public constants
Constant, +opengl-forward-compat+: Public constants
Constant, +opengl-profile+: Public constants
Constant, +opengl-version-major+: Public constants
Constant, +opengl-version-minor+: Public constants
Constant, +origin-ul-bit+: Public constants
Constant, +present+: Public constants
Constant, +press+: Public constants
Constant, +red-bits+: Public constants
Constant, +refresh-rate+: Public constants
Constant, +release+: Public constants
Constant, +stencil-bits+: Public constants
Constant, +stereo+: Public constants
Constant, +sticky-keys+: Public constants
Constant, +sticky-mouse-buttons+: Public constants
Constant, +system-keys+: Public constants
Constant, +true+: Public constants
Constant, +wait+: Public constants
Constant, +window+: Public constants
Constant, +window-no-resize+: Public constants

S
Special Variable, *char-callback*: Private special variables
Special Variable, *init-hooks*: Public special variables
Special Variable, *key-callback*: Private special variables
Special Variable, *mouse-button-callback*: Private special variables
Special Variable, *mouse-pos-callback*: Private special variables
Special Variable, *mouse-wheel-callback*: Private special variables
Special Variable, *mouse-wheel-cumulative*: Public special variables
Special Variable, *terminate-hooks*: Public special variables
Special Variable, *was-init*: Private special variables
Special Variable, *window-close-callback*: Private special variables
Special Variable, *window-refresh-callback*: Private special variables
Special Variable, *window-size-callback*: Private special variables


A.4 Data types

Jump to:   C   F   G   I   L   M   P   S   T   V  
Index Entry  Section

C
cl-glfw: The cl-glfw system
cl-glfw: The cl-glfw package
cl-glfw-system: The cl-glfw-system package
cl-glfw-types: The cl-glfw-types system
cl-glfw-types: The cl-glfw-types package
cl-glfw-types-system: The cl-glfw-types-system package
cl-glfw-types.asd: The cl-glfw-types/cl-glfw-types․asd file
cl-glfw.asd: The cl-glfw/cl-glfw․asd file
Class, gl-bitfield: Private classes
Class, gl-boolean: Private classes
Class, gl-byte: Private classes
Class, gl-char: Private classes
Class, gl-clampd: Private classes
Class, gl-clampf: Private classes
Class, gl-double: Private classes
Class, gl-enum: Private classes
Class, gl-float: Private classes
Class, gl-half: Private classes
Class, gl-handle: Private classes
Class, gl-int: Private classes
Class, gl-int64: Private classes
Class, gl-intprt: Private classes
Class, gl-short: Private classes
Class, gl-sizei: Private classes
Class, gl-sizeiptr: Private classes
Class, gl-ubyte: Private classes
Class, gl-uint: Private classes
Class, gl-uint64: Private classes
Class, gl-ushort: Private classes
Class, gl-void: Private classes
Class, image-tclass: Private classes
Class, vidmode-tclass: Private classes

F
File, cl-glfw-types.asd: The cl-glfw-types/cl-glfw-types․asd file
File, cl-glfw.asd: The cl-glfw/cl-glfw․asd file
File, glfw-lib.lisp: The cl-glfw/lib/glfw-lib․lisp file
File, glfw-macros.lisp: The cl-glfw/lib/glfw-macros․lisp file
File, glfw-package.lisp: The cl-glfw/lib/glfw-package․lisp file
File, glfw.lisp: The cl-glfw/lib/glfw․lisp file
File, types.lisp: The cl-glfw-types/lib/types․lisp file

G
gl-bitfield: Private classes
gl-boolean: Private classes
gl-byte: Private classes
gl-char: Private classes
gl-clampd: Private classes
gl-clampf: Private classes
gl-double: Private classes
gl-enum: Private classes
gl-float: Private classes
gl-half: Private classes
gl-handle: Private classes
gl-int: Private classes
gl-int64: Private classes
gl-intprt: Private classes
gl-short: Private classes
gl-sizei: Private classes
gl-sizeiptr: Private classes
gl-ubyte: Private classes
gl-uint: Private classes
gl-uint64: Private classes
gl-ushort: Private classes
gl-void: Private classes
glfw-lib.lisp: The cl-glfw/lib/glfw-lib․lisp file
glfw-macros.lisp: The cl-glfw/lib/glfw-macros․lisp file
glfw-package.lisp: The cl-glfw/lib/glfw-package․lisp file
glfw.lisp: The cl-glfw/lib/glfw․lisp file

I
image-tclass: Private classes

L
lib: The cl-glfw/lib module
lib: The cl-glfw-types/lib module

M
Module, lib: The cl-glfw/lib module
Module, lib: The cl-glfw-types/lib module

P
Package, cl-glfw: The cl-glfw package
Package, cl-glfw-system: The cl-glfw-system package
Package, cl-glfw-types: The cl-glfw-types package
Package, cl-glfw-types-system: The cl-glfw-types-system package

S
System, cl-glfw: The cl-glfw system
System, cl-glfw-types: The cl-glfw-types system

T
types.lisp: The cl-glfw-types/lib/types․lisp file

V
vidmode-tclass: Private classes