flyx / OpenGLAda

Thick Ada binding for OpenGL and GLFW
flyx.github.io/OpenGLAda/
MIT License
96 stars 13 forks source link

Instancing example #122

Closed rogermc2 closed 6 years ago

rogermc2 commented 6 years ago

This demonstrates Instancing. This example does not use varyings.

flyx commented 6 years ago

Are there any more PRs from you incoming in the near future? I am planning to do a new release soon. I remember you had problems with transform feedback; do you still think there are errors in the OpenGLAda code regarding that?

rogermc2 commented 6 years ago

There's only the one that involves the transform feedback problem. I have the C version working and forced an error, using an invalid vary name, that resulted in an error message that DID include the dot at the end of the invalid vary name. So the dot is part of the error message and not part of the problem. I haven't investigated further as, to get more transform feedback experience, I've been working on another transform feedback tutorial example that has turned out out be much more complicated than I expected as it involves assimp and imagemagick. I suspect that you might not want this included as an OpenGLAda example due to its complexity involving additional external C packages? From our experience so far it does look like there may be a problem relating to the OpenGLAda code that involves passing string arrays (?) as both methods that we tried produced the same error message. Can you suggest further steps or checks that I can use to try and isolate the problem?

flyx commented 6 years ago

Can you PR the Ada version and provide the C version as archive or something, so I can investigate?