Skip to content

Query renderer from sketch's code #663

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

Closed
codeanticode opened this issue Aug 14, 2021 · 2 comments
Closed

Query renderer from sketch's code #663

codeanticode opened this issue Aug 14, 2021 · 2 comments

Comments

@codeanticode
Copy link
Contributor

The renderer is needed during the sketch build process because selecting the correct template to build a watch face project depends on whether the sketch uses the default renderer or the OpenGL renderer.

There was a function in an early version of the preprocessor in processing 4 that allowed to retrieve the renderer, but its now gone. The parsed render string is private in the PdeParseTreeListener and not available outside the class, so this requires either re-introducing an method to get the string, or implementing a custom parsing of the renderer in the mode itself.

@sampottinger @benfry let me know if you have any comments about this. Thank you!

@codeanticode
Copy link
Contributor Author

Workaround at the moment with fa1441b

@codeanticode
Copy link
Contributor Author

Fixed with Processing 4.0b8 and this commit 0c52678

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant