Issues with identifier equality and FFI

2024-03-21 Thread scippie
Oh ok, that's strange, because GL_UNSIGNED_BYTE worked, I never thought of looking for something like cGL_FLOAT. But it works, thanks! I maybe should have checked the sources first before asking here, but the errors didn't make me think that way. It seems both GL_UNSIGNED_BYTE and cGL_UNSIGNED_

Issues with identifier equality and FFI

2024-03-21 Thread sls1005
You mean [this one](https://github.com/nim-lang/opengl)? It seems to use the name `cGL_FLOAT` to avoid this issue.

Issues with identifier equality and FFI

2024-03-21 Thread demotomohiro
If you are using this OpenGL binding, `GL_FLOAT` constant was renamed to `cGL_FLOAT`: Other constants that has a similar name to OpenGL type name are renamed in the same way (`cGL_INT`, `cGL_SHORT`, etc).

Issues with identifier equality and FFI

2024-03-21 Thread scippie
> Should be fairly simple to solve, but first off, which bindings to you use? Sorry, what do you mean with that question? Do you mean which imports I use? Because that's the basic opengl package installed with nimble.

Issues with identifier equality and FFI

2024-03-21 Thread scippie
I am working on integrating OpenGL in a Nim project while I am still learning Nim. As I am still waiting on the arrival of the book, I hope I am not asking something that is addressed in the manual but I haven't found yet (although I DO hope there is a solution of course). But at this moment, i

Issues with identifier equality and FFI

2024-03-21 Thread PMunch
Should be fairly simple to solve, but first off, which bindings to you use?