Example #1
0
static VALUE wrap_initialize( int argc, VALUE* argv, VALUE self ) {
    Driver* dp = retrieve_structure( self );
    VALUE application_title;
    VALUE timeout;
    rb_scan_args( argc, argv, "11", &application_title, &timeout );
    dp->millisec_timeout = NIL_P(timeout) ? 500 : FIX2INT(timeout);
    initialize( dp, RSTRING_PTR(application_title) );

    return Qnil;
}
Example #2
0
//-----------------------------------------------------------------------------
//renderer sync info to viewer -- virtual function
//renderer save the segment_polygon of their overlaps, 
//and send them to viewer. Viewer will transform them into image fragments.
//-----------------------------------------------------------------------------
void Compose_Viewer::sync_render_structure()
{
    std::vector<int> infobuf;
    std::vector<int> ainfobuf;

    if(m_streamer) //master server is also master client
    {
        m_streamer->sync_info(infobuf, ainfobuf); //
    }

    retrieve_structure(ainfobuf);
}
Example #3
0
static VALUE wrap_closedown( VALUE self ) {
    Driver* dp = retrieve_structure( self );
    closedown( dp );
    return Qnil;
}