-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No examples #1
Comments
There are many OpenGL ES tutorials on the internet. The bindings follow the naming conventions of the C API. |
It's not that I don't know OpenGL, it's that there is no sample code for this API. For example, I'm able to get the buffers binding, but I'm hitting a brick wall with the It would really help me (and others) if there was a very minimal example. |
Oh I see, I misunderstood then, sorry. I'm currently completely overloaded with work stuff and won't have any time to work on this package until after GDC. I'll see if I can find out about the string parameter in glShaderSource though. I just converted the GLES API directly to Nim, and not all interfaces may be convenient as a result. If you have suggestions for improvements, I'm accepting pull requests as well :) |
Thanks for reopening this. Do you have any ideas about how to translate the Nim |
I was able to get over that hurdle. Expect a working example soon enough. |
Okay, So I've been running into an issue trying to use Here is my call: var
attribIndex = 0.GlUint
attribSize = 3.GlInt
attribStride = 0.GlSizei
glVertexAttribPointer(attribIndex, attribSize, GL_FLOAT, GL_FALSE, attribStride, cast[pointer](nil)) What the compiler is telling me is this:
Do you have an idea of what to do here? |
Hi. I'm interested in using this package, but the
examples/
directory is barren, except for some import statements. Could you please provide a more robust example of how to use the bindings?The text was updated successfully, but these errors were encountered: