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

GLES: Update all functions to use zig native types instead of openGL types #2

Open
rdunnington opened this issue Nov 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@rdunnington
Copy link
Collaborator

While some bindings have been partially updated to use zig types such as slices, bool, and u8, all other types remain GL types. For example:

// The raw openGL binding:
extern fn glCompressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, data: *const anyopaque) void;
// The zig binding:
fn glCompressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: []const u8) void

In this example, only data has been updated to use zig types. The other parameters should use zig types such as u32, i32, etc. The same treatment should be given to the whole API.

@rdunnington rdunnington changed the title Update all functions to use zig native types instead of openGL types GLES: Update all functions to use zig native types instead of openGL types Nov 30, 2023
@rdunnington rdunnington added the enhancement New feature or request label Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant