-
Notifications
You must be signed in to change notification settings - Fork 61
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
Use a namespace for all GL extension test cvars #1236
Comments
cvar, extension and feature mapping
I disagree as I prefer the cvar to exactly match an extension, no less and no more, and not be about a vague feature that can be achieved with different combinations of various extensions. EXT or ARB is part of the extension name and cannot be ignored
As a first thing to say, I also disagree about using Basically For details, Common prefix for GL extension cvarsI don't disagree with the idea of having a common prefix for GL extension cvars, but Namespaces and conventions
There is no new conventions of underscore as a name space. There are two conventions: Legacy convention, a 2-level tree:
The New convention, a N-level tree:
It happens that a mistake has been done once in game with some bots cvar being N-level trees with Some example of cvar naming schemeWe can imagine something like |
On a related topic, I'm in favor of the convention that every |
What is new is that underscore treatment as namespace is officially codified in the engine in some way, namely with tab completion. The "new convention" with dots doesn't seem like an improvement; we should probably abandon that... If we want a single convention, moving the ones with dots back to underscores would be easier. Migrating all cvars to dots would be a tremendous waste of time that just makes the cvar names needlessly verbose. It seems the only advantage of dots is that you could stick these extension names that happen to contain underscores in them. The point about wanting to retain the EXT_ or ARB_ prefixes is fair. Taking that into account I would suggest names like |
I propose moving all of the cvars that cause the renderer to assume failure when testing for a certain optional OpenGL feature under the
r_ext_
prefix. Currently they are divided betweenr_ext_
andr_arb_
. As a user I don't care about which OpenGL committee process the feature was proposed under, or whatever the stupid prefix means. There is even an extension that is supposedly available under three different names:ARB_framebuffer_object
,EXT_framebuffer_object
, andOES_framebuffer_object
. So the ARB or EXT prefix doesn't seem like a reliable or informative way of grouping these; the feature test cvars are all the same sort of thing. Let's makeext
mean extension test rather than a part of the verbatim extension identifier.We should also consider removing the subsequent underscores, to make the names respect the new convention of underscore as namespace.
The text was updated successfully, but these errors were encountered: