janet-lang / janet-lang/jaylib
What is the jaylib equivalent for texture.width ?
Open
- Dominant language
- C
- Stars
- 193
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
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))
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Review the jaylib API around load-texture-from-image and the Texture value, then check how equivalent field access is exposed. Done means confirming how to obtain width and height and recording an example or documentation reference for the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- api
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100