ASverdlov / ray-tracing

1 stars 0 forks source link

Design enhancement #2

Open ASverdlov opened 7 years ago

ASverdlov commented 7 years ago

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 commented 7 years ago

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

ASverdlov commented 7 years ago

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?