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

Missing GL_LUMINANCE and GL_LUMINANCE_ALPHA ? #482

Open
carado opened this issue Feb 10, 2019 · 4 comments
Open

Missing GL_LUMINANCE and GL_LUMINANCE_ALPHA ? #482

carado opened this issue Feb 10, 2019 · 4 comments

Comments

@carado
Copy link

carado commented Feb 10, 2019

Hi,

These bindings seem to be missing the two constants gl::LUMINANCE and gl::LUMINANCE_ALPHA.
I'm finding no reference to them on the docs.rs page and they don't seem to be working in my project.
From what I can tell, these constants have been in OpenGL since at least OpenGL 1.1, so I doubt it's a version problem.

Have a nice day !

@igagen
Copy link

igagen commented Feb 14, 2019

I just noticed this as well.

@tomaka
Copy link
Collaborator

tomaka commented Feb 14, 2019

Starting from OpenGL 3.3, they are only there if you enable compatibility mode when generating the bindings.

@Pixel-Hellmin
Copy link

how can I enable compatibility mode?

@awused
Copy link

awused commented May 4, 2024

I ran into this because LUMINANCE and LUMINANCE_ALPHA are still the only non-deprecated one and two channel formats for OpenGL ES. They should be generated even without compatibility mode because for ES compatibility.

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

No branches or pull requests

5 participants