LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.83k stars 642 forks source link

fix(OpenGL) Added missing constant GL_BLEND_COLOR and GL_BLEND_EQUATION to GL14 #992

Closed boredhuman closed 4 months ago

boredhuman commented 4 months ago

https://registry.khronos.org/OpenGL/specs/gl/glspec14.pdf https://registry.khronos.org/OpenGL/specs/gl/glspec13.pdf

From the specifications above we can see that these constants moved from being part of the arb imaging extensions to part of opengl. This can also be verified by generating headers using GLAD without extensions , for opengl 1.4 and finding these constants present in the headers.

To find these constants in the specifications consult the the state tables specifically the pixel operations table.

Spasi commented 4 months ago

Hey @boredhuman,

I have made some changes/additions to this commit, but I don't have push access to the PR branch. Could you please enable it? See https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork.

boredhuman commented 4 months ago

@Spasi Ok you should be able to make the changes now.

Spasi commented 4 months ago

Thank you @boredhuman!