flyx / OpenGLAda

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

Single char storage #96

Closed rogermc2 closed 6 years ago

rogermc2 commented 6 years ago

I've fixed text_manager. Could be other problems that I can't find.

rogermc2 commented 6 years ago

It looks like I've messed up my master! Can I recover??? I suppose I should revert it to wherever it wasn't messed up. How to do that?

rogermc2 commented 6 years ago

I may have (hopefully) fixed my master.

flyx commented 6 years ago

What exactly is the difference between this example and the existing one? Using Texture_2D.Load_Sub_Image_From_Data instead of Texture_2D.Load_From_Data?

I think these two examples need more description to clarify what they are about. For me, it is not clear why Load_Sub_Image_From_Data is now used and what the consequences are compared to Load_From_Data.

rogermc2 commented 6 years ago

On reviewing the code, I see what you mean. As a development example, it was essential for me in sorting out how to use Texture_2D.Storage and Texture_2D.Load_Sub_Image_From_Data. Finding the correct data to supply to each of the parameters for these procedures was, I remember, the big difficulty. However, as a general example, its not very useful unless I provide an intermediate texture storage step between Texture_2D.Storage and Texture_2D.Load_Sub_Image_From_Data. But this is probably not useful as I expect the complete string example is just as informative. So I'll withdraw this PR and submit the complete string example.