floooh / sokol-tools

Command line tools for use with sokol headers
MIT License
229 stars 57 forks source link

undeclared identifier: 'backendGlcore' (Sokol-Nim target lang) #140

Closed crystalthoughts closed 2 months ago

crystalthoughts commented 2 months ago

Hi - when generating gl nim code it gives me the error undeclared identifier: 'backendGlcore'. Is this a user error or a bug?

floooh commented 2 months ago

Are you on the latest version of the sokol-nim bindings? The sokol_gfx.h enum item SG_BACKEND_GLCORE was previously called SG_BACKEND_GLCORE33 (e.g. in Nim this would have changed from backendGlcore33 to backendGlcore.

The change was in the storage buffer update in May 2024: https://github.com/floooh/sokol/blob/master/CHANGELOG.md#09-may-2024

crystalthoughts commented 2 months ago

I'll look into that later and confirm with you. Thanks

crystalthoughts commented 2 months ago

Works fine, thanks for your quick response :)