pub fn create_render_window_from_stream<'a, RenderStream: 'static+Send+Stream<Item=Vec<RenderAction>>, TProperties: 'a+FloWindowProperties>(render_stream: RenderStream, properties: TProperties) -> impl Clone+Send+Stream<Item=DrawEvent> {
    // Create the publisher to send the render actions to the stream
    let window_properties       = WindowProperties::from(&properties);
    let mut event_publisher     = Publisher::new(1000);

    let event_subscriber        = event_publisher.subscribe();

    // Create a window that subscribes to the publisher
    let glutin_thread           = glutin_thread();
    glutin_thread.send_event(GlutinThreadEvent::CreateRenderWindow(render_stream.boxed(), event_publisher, window_properties));

    // Result is the events for the new window
    event_subscriber
}
///
/// Creates a window that renders a stream of actions
///
Creates a window that renders a stream of actions
Creates a window that renders a stream of actions
pub fn create_render_window_from_stream<'a, RenderStream: 'static+Send+Stream<Item=Vec<RenderAction>>, TProperties: 'a+FloWindowProperties>(render_stream: RenderStream, properties: TProperties) -> impl Clone+Send+Stream<Item=DrawEvent> {
    // Create the publisher to send the render actions to the stream
    let window_properties       = WindowProperties::from(&properties);
    let mut event_publisher     = Publisher::new(1000);
    let event_subscriber        = event_publisher.subscribe();
    // Create a window that subscribes to the publisher
    let glutin_thread           = glutin_thread();
    glutin_thread.send_event(GlutinThreadEvent::CreateRenderWindow(render_stream.boxed(), event_publisher, window_properties));
    // Result is the events for the new window
    event_subscriber
}
pub fn create_render_window_from_stream < ' a , RenderStream : ' static + Send + Stream < Item = Vec < RenderAction > > , TProperties : ' a + FloWindowProperties > ( render_stream : RenderStream , properties : TProperties ) -> impl Clone + Send + Stream < Item = DrawEvent > { // Create the publisher to send the render actions to the stream let window_properties = WindowProperties :: from ( & properties ) ; let mut event_publisher = Publisher :: new ( 1000 ) ; let event_subscriber = event_publisher . subscribe ( ) ; // Create a window that subscribes to the publisher let glutin_thread = glutin_thread ( ) ; glutin_thread . send_event ( GlutinThreadEvent :: CreateRenderWindow ( render_stream . boxed ( ) , event_publisher , window_properties ) ) ; // Result is the events for the new window event_subscriber }
Creates a window that renders a stream of actions
Creates a window that renders a stream of actions
render_stream
RenderStream
properties
TProperties