jfc's patch for reorganising cl-glfw-opengl and cl-glfw packages. Changed need propog...
[cl-glfw.git] / lib / glfw-types.lisp
blob4aec9d0a2349e518dd5a5b84e99a907f1aa3185a
2 (in-package #:glfw)
4 ;; copy the boolean from OpenGL
5 (defctype boolean :uint8)
7 (defconstant +false+ #x0)
8 (defconstant +true+ #x1)
10 (defmethod cffi:expand-to-foreign (value (type (eql 'boolean)))
11 `(if ,value +true+ +false+))
13 (defmethod cffi:expand-from-foreign (value (type (eql 'boolean)))
14 `(not (= ,value +false+)))