Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw_Elements does not allow you to specify the offset of the index buffer. #93

Closed
AdaDoom3 opened this issue Sep 29, 2017 · 4 comments
Closed

Comments

@AdaDoom3
Copy link

I think this is a major feature of the API and should not be zero'ed out as it is currently.

@flyx
Copy link
Owner

flyx commented Sep 29, 2017

What exactly is missing? GL.Objects.Buffers provides Array_Buffer and Element_Array_Buffer and has Draw_Elements.

@AdaDoom3
Copy link
Author

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);

@AdaDoom3
Copy link
Author

Thanks for the quick response BTW : )

@flyx
Copy link
Owner

flyx commented Sep 29, 2017

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.

@flyx flyx reopened this Sep 29, 2017
@flyx flyx changed the title Library does not support VBO indexing Draw_Elements does not allow you to specify the offset of the index buffer. Sep 29, 2017
@flyx flyx closed this as completed in f2b1e21 Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants