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

add indicator in gl.xml that particular pointers also (or only) accept offsets #110

Open
3b opened this issue Oct 3, 2017 · 2 comments
Open
Assignees

Comments

@3b
Copy link
Contributor

3b commented Oct 3, 2017

Various functions (glVertexAttribPointer, etc) have arguments that accept void * or similar but also accept (or in core, only accept) an offset into a bound buffer. It would be nice to indicate that in the XML.

(I have a partial list, so could submit a PR for those, just need to know how to mark it in the XML. group="OffsetOrPointer" maybe, or new attribute?)

@oddhack
Copy link
Contributor

oddhack commented Oct 4, 2017

I think group= would be OK. There's already a group="String" used in a few places and that's not a scalar type (nor is there any attempt to define it in the XML).

@3b
Copy link
Contributor Author

3b commented Oct 4, 2017

hmm, looks like a few already have a group, like "CompressedTextureARB" in

  <command>
            <proto>void <name>glCompressedTexImage1D</name></proto>
<!-- ... -->
            <param group="CompressedTextureARB" len="imageSize">const void *<name>data</name></param>
<!-- ... -->
        </command>

not sure how to handle that.

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

3 participants
@3b @oddhack and others