flyx / OpenGLAda

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

Example demonstrating the use of Texture subimages. #89

Closed rogermc2 closed 6 years ago

rogermc2 commented 7 years ago

This example is intended to demonstrate the use of Texture_2D.Storage (glTexStorage2D) and glTexSubImage2D. As glTexSubImage2D does not seem to have been previously implemented, I have provided a new Texture_2D.Load_SubImage_From_Data procedure following the generate instructions provided in the Developer Documentation section of the OpenGLAda Readme. Following review of my implementation, if accepted, I could implement corresponding code for glTexSubImage1D and glTexSubImage3D. I have also provided an implementation for glIsTexture which I have found useful for debugging in a another project.

rogermc2 commented 7 years ago

Requested changes implemented.