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; }
//----------------------------------------------------------------------------- //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); }
static VALUE wrap_closedown( VALUE self ) { Driver* dp = retrieve_structure( self ); closedown( dp ); return Qnil; }