Creates a window that can be rendered to by sending groups of render actions
(properties: TProperties)
| 12 | /// Creates a window that can be rendered to by sending groups of render actions |
| 13 | /// |
| 14 | pub fn create_render_window<'a, TProperties: 'a+FloWindowProperties>(properties: TProperties) -> (Publisher<Vec<RenderAction>>, impl Clone+Send+Stream<Item=DrawEvent>) { |
| 15 | // Create the publisher to send the render actions to the stream |
| 16 | let mut render_publisher = Publisher::new(1); |
| 17 | let event_subscriber = create_render_window_from_stream(render_publisher.subscribe(), properties); |
| 18 | |
| 19 | // Publisher can now be used to render to the window |
| 20 | (render_publisher, event_subscriber) |
| 21 | } |
| 22 | |
| 23 | /// |
| 24 | /// Creates a window that renders a stream of actions |
no test coverage detected