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

Design enhancement #2

Open
ASverdlov opened this issue Nov 14, 2016 · 2 comments
Open

Design enhancement #2

ASverdlov opened this issue Nov 14, 2016 · 2 comments
Assignees

Comments

@ASverdlov
Copy link
Owner

ASverdlov commented Nov 14, 2016

We should probably add RenderTarget interface class.
All possible objects to render to (like Window, Image, etc.) would inherit this interface.
And change Renderer.RenderScene() to be Renderer.RenderScene(Scene* scene, RenderTarget* target).

@wheredyoufindthis
Copy link
Collaborator

Is it better to name it 'output'? Also we can create input interface

@ASverdlov
Copy link
Owner Author

I agree it is a correct generalization, but I don't see benefits of this naming. You want to move from "Scene renders to RenderTarget" to "Input renders to Output"?
Can you elaborate more on uses of Input interface? Who would inherit it besides Scene class?

@ASverdlov ASverdlov self-assigned this Nov 16, 2016
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

2 participants