Skip to content

Commit 49d389f

Browse files
committed
define some constants for named values that aren't really "enum"s
fixes #80
1 parent 26fa139 commit 49d389f

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

cl-opengl.asd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
(:file "funcs-gles2")
6363
;; Lispifications.
6464
(:file "package")
65+
(:file "special-constants")
6566
(:file "util")
6667
(:file "opengl")
6768
(:file "rasterization")

gl/package.lisp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,9 @@
455455
#:create-renderbuffers
456456
#:create-renderbuffer
457457
#:delete-renderbuffer
458-
#:bind-image-textures))
458+
#:bind-image-textures
459+
;; extra constants
460+
#:+all-pixels-amd+
461+
#:+invalid-index+
462+
#:+timeout-ignored+
463+
#:+timeout-ignored-apple+))

gl/special-constants.lisp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
(in-package #:cl-opengl)
2+
3+
;;; special values for some numeric arguments
4+
5+
(defconstant +all-pixels-amd+ #xFFFFFFFF)
6+
(defconstant +invalid-index+ #xFFFFFFFF)
7+
(defconstant +timeout-ignored+ #xFFFFFFFFFFFFFFFF)
8+
(defconstant +timeout-ignored-apple+ #xFFFFFFFFFFFFFFFF)
9+

0 commit comments

Comments
 (0)