flyx / OpenGLAda

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

glTexSubImage2D needed #88

Closed rogermc2 closed 7 years ago

rogermc2 commented 7 years ago

glTexSubImage2D does not appear to have been implemented. glIsTexture would also be nice to have. I will try following the Readme instructions on autogeneration to implement glTexSubImage2D.

rogermc2 commented 7 years ago

I have implemented glTexSubImage2D as Load_SubImage_From_Data and glIsTexture as Is_Texture in src/gl of my texsub_example branch. My example program builds OK at this stage using Load_SubImage_From_Data but is not at the run testing stage yet. I'm wondering if I should submit Load_SubImage_From_Data and Is_Texture as PR on a separate branch. If Load_SubImage_From_Data for 2D is OK, I can probably also implement glTexSubImage1D and glTexSubImage3D?

rogermc2 commented 7 years ago

I have implemented routines for glTexSubImage2D and glIsTexture. A previous comment on this seems to have disappeared! This is covered in a PR for a new Superbible example so I'll close this.