Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window-hint is undefined outside of %glfw #33

Open
ajithmk opened this issue Aug 1, 2020 · 0 comments
Open

window-hint is undefined outside of %glfw #33

ajithmk opened this issue Aug 1, 2020 · 0 comments

Comments

@ajithmk
Copy link

ajithmk commented Aug 1, 2020

I am producing a minimal example to repro the issue. I am on Linux and using sbcl.

(defpackage #:playground2
  (:nicknames :pg2)
  (:use #:cl #:cl-vulkan #:cl-glfw3)
  (:export :basic-example))

(in-package #:playground2)

(defun basic-example ()
  (with-init-window (:width 860 :height 600 :title "vulkan" :resizable 0 :client-api 0)
    (loop until (window-should-close-p)
       do (poll-events)
	 )))

Now basic-example won't run for me. It complains that window-hint is undefined. I had to change (window-hint :client-api 0) to (%glfw:window-hint :client-api) in with-window macro to get it working. But strangely if I remove :resizable 0 :client-api 0 in the above code, then it does not complain about undefined window-hint.

Btw, I also noticed that there is a c enum defined with window-hint name and also a function with the same name glfw-bindings.lisp. Not sure if that is related to this issue or not though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant