lispgames / cl-sdl2

Common Lisp bindings for SDL2 using C2FFI.
MIT License
304 stars 82 forks source link

SDL2 Example Gives Error on Windows #27

Closed resttime closed 10 years ago

resttime commented 10 years ago

Windows 7 64bit CCL 1.9 x86 and x64 Steel Bank Common Lisp 1.1.4.0.mswin.1288-90ab477 (X86)

I install sdl2 through quicklisp quickload

The examples break every time I want to show or hide cursor. (sdl2:mouse-is-haptic-p) also breaks I have found out that every time #'sdl-true-p is run, there is a crash because it compares a nil in #'=

(autowrap:enum-value 'sdl2-ffi:sdl-bool :true) returns a nil for me whereas someone else has said it returns a 1 on their system.

Error when pressing 's' or 'h': Argument X is not a NUMBER: NIL [Condition of type SIMPLE-TYPE-ERROR] Closing the window gives: :COLOR-BUFFERDL is not a valid symbol for bitfield type #<CFFI::FOREIGN-BITFIELD CL-OPENGL-BINDINGS:CLEARBUFFERMASK>.

resttime commented 10 years ago

Sorry jumped the gun... works with the latest autowrap and cl-sdl2 bindings from the Github repos. Was using quicklisp versions which seemed to have the problem. Learned my lesson about going to use the latest Github repos if the quicklisp ones are broken. Seems to be the same as #25 which is fixed now.