flyx / OpenGLAda

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

Draw example #116

Closed rogermc2 closed 6 years ago

rogermc2 commented 6 years ago

This demonstrates OpenGL draw commands. It includes some additions and corrections to OpenGLAda including: Implementing Draw_Arrays_Instanced. Correcting GL.Objects.Buffers.Size and Usage enum values (according to the gpl3 header in my OpenGL framework) Correcting the size parameter of the call to API.Buffer_Sub_Data in Set_Sub_Data.

Some new procedures have been added to Common/Utilities.

rogermc2 commented 6 years ago

The real reason for this example is that I need it as a precursor to my transform feedback attempt.

rogermc2 commented 6 years ago

I'll look into this and fix it. OK I've changed it to Size

rogermc2 commented 6 years ago

Added fix to Maths.Scaling_Matrix (Scale_Factor : Single)