jaylib icon indicating copy to clipboard operation
jaylib copied to clipboard

What is the jaylib equivalent for texture.width ?

Open gamecubate opened this issue 1 year ago • 1 comments

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))

gamecubate avatar Jul 06 '23 04:07 gamecubate

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

bramtechs avatar Apr 10 '24 11:04 bramtechs