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

Fix glClear() enum display in vogleditor #148

Open
jon-lunarg opened this issue Jul 28, 2014 · 0 comments
Open

Fix glClear() enum display in vogleditor #148

jon-lunarg opened this issue Jul 28, 2014 · 0 comments

Comments

@jon-lunarg
Copy link
Contributor

No description provided.

openforeveryone added a commit to openforeveryone/vogl that referenced this issue Apr 8, 2015
The API tree view now displays human readable values for GLbitfields e.g. glClear( GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT ).

Changes:
Modified pretty_print_param_val() to be able to output pretty interpretations of GLbitfields.
If it finds that the parameter is of type VOGL_GLBITFIELD then it will test each bit in turn and if it is set will look for an appropriate name for that mask.
It separates each mask with a "|", displays a decimal representation if no name is found for a mask and simply displays "0" if no bits are set.
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

1 participant