Skip to content

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

@rdunnington

Description

@rdunnington

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions