Closed AdaDoom3 closed 7 years ago
What exactly is missing? GL.Objects.Buffers
provides Array_Buffer
and Element_Array_Buffer
and has Draw_Elements
.
Indeed, my mistake. I was looking at the "element array buffer offset" parameter being set to Low_Level.Zero as it was labeled "Indicies" when you imported it.
procedure Draw_Elements (Mode : Connection_Mode; Count : Size; Index_Type : Unsigned_Numeric_Type; Indices : Low_Level.Zero);
Thanks for the quick response BTW : )
Ah yes, that is one of those very strange parts of OpenGL where the function takes a void pointer which actually is an integer offset for whatever reason. So you actually found a missing feature: OpenGLAda does not allow you to specify that offset. I'll rename the issue, this should be fixed.
I think this is a major feature of the API and should not be zero'ed out as it is currently.