aconstlink / motor

Software Framework for Audio/Visual/Interactive Real-Time Applications
MIT License
2 stars 0 forks source link

Returns Rendering Windows for Graphics Window Creation #18

Closed aconstlink closed 9 months ago

aconstlink commented 9 months ago

When creating a graphics window, the carrier needs to return a rendering window that has the renderer inside, so the user can render directly into the window.

motor::application::graphics_window_info_t gi ;
auto wnd = carrier->create_window( gi ) ;

// engine allows to render into the window
wnd->get_render_engine() ;
aconstlink commented 9 months ago

This one changed. The renderer is now created along with a normal window. The engine is not used for any other purpose than rendering to the screen. So introducing another window type is just more boiler plate.