KhronosGroup / KhronosGroup/OpenGL-API

Function signature description error

Open
#94 3 comments 0 reactions 1 assignee Claimed by @oddhack View on GitHub
Dominant language
No language data
Stars
42
Forks
8
PR merge metrics
No merged PRs in 30d

Description

There is a function signature error on page 369 of [https://registry.khronos.org/OpenGL/specs/gl/glspec46.core.pdf](https://registry.khronos.org/OpenGL/specs/gl/glspec46.core.pdf)
```c
void MultiDrawArraysIndirectCount( enum mode, const
void *indirect, intptr drawcount, intptr maxdrawcount,
sizei stride );
```
According to the description below: `maxdrawcount specifies the maximum number of draws that are expected
to be stored in the buffer`, The variable `maxdrawcount` seems to have a sizei type.
And i found the signature of this function in glad as
```c
#define glMultiDrawArraysIndirectCount glad_glMultiDrawArraysIndirectCount
typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC)(GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
```
I think the type of intptr is very confusing and hard to understand

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.