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

VisualiserTool : Visualise value #6159

Open
wants to merge 15 commits into
base: 1.5_maintenance
Choose a base branch
from

Conversation

ericmehl
Copy link
Collaborator

This adds the CsVisualiseValue tool contributed by @proberts-cinesite in #6142 in the form of a slightly more generalised tool called VisualiserTool. We plan to add more visualisation modes to this tool, rather than as separate tools.

Here I've reformatted the code to fit our conventions, but tried not to make any other changes not needed to get the tool ready. The biggest difference is probably in how we typically do const values - hopefully I've gotten those right and didn't lose any const-ness.

Checklist

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have tested my change(s) in the test suite, and added new test cases where necessary.
  • My code follows the Gaffer project's prevailing coding style and conventions.

As the comment in the code indicates, this is needed to fix something
that MSVC is doing that prevents setting the polygon mode with the
original value obtained from `glGetIntegerv` from working. I've verified
that `polygonMode is in fact a valid value. Initializing the varaible
seems to prevent whatever compiler optimization is causing the value
to appear as an "invalid enum".
We instead add a stroke-like effect to always-white text so it is
visible on a full range of background colors without needing user
modification.
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

Successfully merging this pull request may close these issues.

1 participant