mosra / magnum

Lightweight and modular C++11 graphics middleware for games and data visualization
https://magnum.graphics/
Other
4.75k stars 439 forks source link

glDepthRange lacks sensible bindings #558

Closed amras0000 closed 1 year ago

amras0000 commented 2 years ago

It is possible to use glDepthRange and glDepthRangef without issues by way of Magnum/External/flextGL.h, but as far as I can tell there's no non-external reference to those functions, nor any mention of them in the docs. It's possible other functions have been missed, but this is the only missing pair I've run into.

I believe there should be a GL::Renderer::setDepthRange(double, double) and (float,float).

mosra commented 2 years ago

Yeah, not everything from GL is exposed. A complete list of the incompletely exposed APIs is here.

I'll look into this when I find time, another such candidate is in #543. And you're right, at the moment it's no problem using the raw GL APIs directly.

mosra commented 1 year ago

Exposed in bede836077af1bd67ee6e501d797dbf7ac7f1842, and the NV variant that doesn't clamp in 56a850f9ad24f9db23f54fb080b5fbfc68a390d2.