janet-lang / jaylib

Janet bindings to Raylib
MIT License
137 stars 36 forks source link

What is the jaylib equivalent for texture.width ? #51

Open gamecubate opened 1 year ago

gamecubate commented 1 year ago

How does one access a texture's inner fields, for example tex.width and tex.height ?

(def img (load-image-1 "raylib.png"))
(def tex (load-texture-from-image img))
(unload-image img)

# This doesn't work
(def w (get tex :width))
(def h (get tex :height))
bramtechs commented 5 months ago

I wondered the same thing. It appears to not be implemented so I did a quick fix for my project.