From: Dennis S. <den...@gm...> - 2007-10-31 17:11:01
|
Hello! I am very delighted to see that you are rendering libvisual within the Gmerlin visualizer, super cool stuff! Parameters: There is no nth parameter function because parameters are entered in a hashmap by their name. You can iterate this hashmap tho! visual_collection_foreach_do (VISUAL_COLLECTION(¶mcontainer->entries), VisHashmapChainEntry *entry) { char *name = entry->key.key.string; VisParamEntry *paramEntry = VISUAL_PARAMENTRY(entry->data); } visual_collection_foreach_end; I have to admit that I didn't test this, and also won't deny that this should have been much easier. Another (half completed) feature is the VisUI stuff that plugins can expose which is an abstract representation of the configuration UI. you can access the VisUI by calling: VisUIWidget *widget = visual_plugin_get_userinterface (visual_actor_get_plugin (actor)); There is a not finished gtk driver for this in CVS, lvwidgets package. Good luck! and if you have more questions please go ahead! Cheers, Dennis On 10/31/07, Burkhard Plaum <pl...@ip...> wrote: > > Hi, > > after a complete rewrite of the Gmerlin visualizer, I'm now able to render > all libvisual plugins I tried. Everything works perfectly up to now. > > Now I want to support parameters: As far as I understand, I get a > VisParamContainer from a plugin, which describes all parameters a plugin > accepts. But how can I get a list of all parameters (name, type, limits)? > > There is a function visual_param_container_get(), which returns > a VisParamEntry (which is probably what I need), but for that, I need > to know the name. What I miss is something like: > > int visual_param_container_get_num(VisParamContainer *paramcontainer); > VisParamEntry * visual_param_container_get_nth(VisParamContainer > *paramcontainer, int); > > What's the official way to query all supported parameters from a plugin? > > Burkhard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Libvisual-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libvisual-devel > |