Skip to content

Conversation

@LukaTD
Copy link
Contributor

@LukaTD LukaTD commented Nov 8, 2025

bindings.zig changes:

  • used literals instead of variables for enums in OpenGL 4.2,
  • moved DEBUGPROC to the beginning of OpenGL 4.3,
  • adjusted wrong enum name from VIEW_CLASS_RGTC1_RG to VIEW_CLASS_RGTC2_RG in OpenGL 4.3,
  • added missing enums to OpenGL 4.4,
  • removed enum TEXTURE_BINDING from OpenGL 4.5,
  • changed ARB enums to non-ARB ones in OpenGL 4.5,
  • added missing enums to OpenGL 4.5,
  • added POLYGON_OFFSET_CLAMP to OpenGL 4.6,
  • added spacing between sections.

wrapper.zig changes:

  • added changes from merge Adjusted bindings to match OpenGL-Registry(/api/GL/glcorearb.h) more closely #25 to wrapper placeholders,
  • applied enum changes done in bindings.zig,
  • moved DEBUGPROC to the beginning of OpenGL 4.3,
  • added many missing enums to OpenGL 4.3,
  • added missing function placeholders to OpenGL 4.3,
  • added missing function placeholders to OpenGL 4.5,
  • return type of getGraphicsResetStatus uses non-ARB enums in OpenGL 4.5,
  • added spacing between sections.

`bindings.zig` changes:
* used literals instead of variables for enums in OpenGL 4.2,
* moved `DEBUGPROC` to the beginning of OpenGL 4.3,
* adjusted wrong enum name from `VIEW_CLASS_RGTC1_RG` to `VIEW_CLASS_RGTC2_RG` in OpenGL 4.3,
* added missing enums to OpenGL 4.4,
* removed enum `TEXTURE_BINDING` from OpenGL 4.5,
* changed ARB enums to non-ARB ones in OpenGL 4.5,
* added missing enums to OpenGL 4.5,
* added `POLYGON_OFFSET_CLAMP` to OpenGL 4.6,
* added spacing between sections.
`wrapper.zig` changes:
* added changes from merge zig-gamedev#25 to wrapper placeholders,
* applied enum changes done in `bindings.zig`,
* moved `DEBUGPROC` to the beginning of OpenGL 4.3,
* added many missing enums to OpenGL 4.3,
* added missing function placeholders to OpenGL 4.3,
* added missing function placeholders to OpenGL 4.5,
* return type of `getGraphicsResetStatus` uses non-ARB enums in OpenGL 4.5,
* added spacing between sections.
@hazeycode hazeycode requested a review from Copilot November 11, 2025 11:12
Copilot finished reviewing on behalf of hazeycode November 11, 2025 11:16
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR performs a comprehensive cleanup of OpenGL bindings and wrapper code to improve consistency and completeness across OpenGL versions 4.2 through 4.6.

  • Uses literal values instead of constant references for OpenGL 4.2 enums
  • Reorganizes and completes enum definitions across OpenGL 4.3-4.6
  • Updates function signatures to use consistent pointer types ([*c] instead of [*] or single pointers)
  • Adds missing enums and function placeholders for better API coverage

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/bindings.zig Updated enum definitions to use literals in OpenGL 4.2, fixed VIEW_CLASS_RGTC2_RG enum name, moved DEBUGPROC to beginning of OpenGL 4.3, added missing enums to OpenGL 4.4-4.6, added spacing between sections
src/wrapper.zig Applied corresponding enum and function signature changes from bindings, reorganized OpenGL 4.3 enums and added many missing ones, added missing function placeholders for OpenGL 4.3 and 4.5, updated getGraphicsResetStatus to use non-ARB enum names, improved spacing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Successfully merging this pull request may close these issues.

1 participant