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

Refactor GraphicContext to contain only primitive types #2

Open
obarry opened this issue Oct 4, 2016 · 1 comment
Open

Refactor GraphicContext to contain only primitive types #2

obarry opened this issue Oct 4, 2016 · 1 comment

Comments

@obarry
Copy link
Owner

obarry commented Oct 4, 2016

The fact that the perspective Matrix is contained in GraphicContext leads to some complexity.
In particular while updating the context or creating a new context from one of the default contexts, this implies that the perspective Matrix is sometimes created multiple times.
This can be avoided by simplifying the context to only contain the elementary data (width, height, etc.) and delegating the creation of the matrix to other party TBD and to be investigated.

@obarry
Copy link
Owner Author

obarry commented Apr 9, 2021

While implementing new perspective Matrix (or matrices) for the Shadowing, this tends to confirm that the perspective Matrix could be managed in other place, may be through another class, assuming that this new class can be generic enough to be used for multipurpose including a for shadow calculation.

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