[clutter] clutter-gtk CSW work
Hey all, In case you didn't see my blog post, I've been doing some work on extending alexl's clutter-gtk CSW branch. http://davyd.livejournal.com/280866.html http://git.collabora.co.uk/?p=user/davyd/clutter-gtk-davyd.git;a=shortlog;h=refs/heads/client-side-windows-additions The important additions here are GtkClutterWindow, which is a GtkWidget that looks like a regular GtkWindow, but transparently places actors onto a GtkClutterEmbed stage and GtkClutterStandin, which is a widget that accepts a ClutterActor and makes room within a GTK+ packing tree for that actor. The work also includes a bunch of test cases to check ref-counting, reparenting and a bunch of other things work correctly. It also includes some demos of intermixing Clutter work with GTK+ (some of these are quite hacky). Performance is ok, but some transient updates (like short button presses) can be lost if the widget tree is large (looking into this). Feedback greatly appreciated. --d -- Davyd Madeley Collabora Ltd., Melbourne, Australia http://www.collabora.co.uk/ -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
Re: [clutter] clutter-gtk CSW work
Excellent work! What is the long term plan for Clutter-Gtk? Will we see Gtk depending on clutter in the near future? On Tue, Aug 25, 2009 at 7:51 PM, Davyd Madeley davyd.made...@collabora.co.uk wrote: Hey all, In case you didn't see my blog post, I've been doing some work on extending alexl's clutter-gtk CSW branch. http://davyd.livejournal.com/280866.html http://git.collabora.co.uk/?p=user/davyd/clutter-gtk-davyd.git;a=shortlog;h=refs/heads/client-side-windows-additions The important additions here are GtkClutterWindow, which is a GtkWidget that looks like a regular GtkWindow, but transparently places actors onto a GtkClutterEmbed stage and GtkClutterStandin, which is a widget that accepts a ClutterActor and makes room within a GTK+ packing tree for that actor. The work also includes a bunch of test cases to check ref-counting, reparenting and a bunch of other things work correctly. It also includes some demos of intermixing Clutter work with GTK+ (some of these are quite hacky). Performance is ok, but some transient updates (like short button presses) can be lost if the widget tree is large (looking into this). Feedback greatly appreciated. --d -- Davyd Madeley Collabora Ltd., Melbourne, Australia http://www.collabora.co.uk/ -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.comclutter%2bunsubscr...@o-hand.com
[clutter] Clutter and MSVC
Hi, I'm trying to use clutter with Microsoft Visual Studio 2008 Express. AFAIK the vcproj file is removed from the repository. I tried to create a project, but had several compile error, and gave up. I found precompiled binaries for the dependencies (glib,pango,...), but for clutter this is not avalaible. Is there any way to use Clutter with MSVC? Is there any plan to support it? Thx
Re: [clutter] Clutter and MSVC
On Tue, 2009-08-25 at 19:09 +0200, Attila Kocsis wrote: I'm trying to use clutter with Microsoft Visual Studio 2008 Express. AFAIK the vcproj file is removed from the repository. I tried to create a project, but had several compile error, and gave up. I found precompiled binaries for the dependencies (glib,pango,...), but for clutter this is not avalaible. Is there any way to use Clutter with MSVC? Is there any plan to support it? as the documentation[0] says: If you were looking to build Clutter with Visual Studio [...] there is an external project which is maintaining build files for Clutter (and other glib-based projects) here: https://launchpad.net/oah ciao, Emmanuele. [0] http://git.clutter-project.org/cgit.cgi?url=clutter/tree/build/mingw/README -- Emmanuele Bassi, Senior Engineer| emmanuele.ba...@intel.com Intel Open Source Technology Center | http://oss.intel.com -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
Re: [clutter] Clutter and MSVC
Just what I needed. Thanks for the help. 2009/8/25 Emmanuele Bassi eba...@linux.intel.com On Tue, 2009-08-25 at 19:09 +0200, Attila Kocsis wrote: I'm trying to use clutter with Microsoft Visual Studio 2008 Express. AFAIK the vcproj file is removed from the repository. I tried to create a project, but had several compile error, and gave up. I found precompiled binaries for the dependencies (glib,pango,...), but for clutter this is not avalaible. Is there any way to use Clutter with MSVC? Is there any plan to support it? as the documentation[0] says: If you were looking to build Clutter with Visual Studio [...] there is an external project which is maintaining build files for Clutter (and other glib-based projects) here: https://launchpad.net/oah ciao, Emmanuele. [0] http://git.clutter-project.org/cgit.cgi?url=clutter/tree/build/mingw/README -- Emmanuele Bassi, Senior Engineer| emmanuele.ba...@intel.com Intel Open Source Technology Center | http://oss.intel.com -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.comclutter%2bunsubscr...@o-hand.com
[clutter] Does it work vertex shader in clutter actor?
Hello. I tried to apply vertex shader with ClutterShader api, but it seems it doesn't draw anything. And I found there is no sample code for vertex shader in tests/interactive/test_shader.c source file, there is only fragment shader test. I'll attach a simple source code for applying vertex shader. Should anyone tell me code is wrong? or is this known issue? Regards. #include string.h #include clutter/clutter.h #define NOOP_VERTEX \ void main(void) {gl_Position = ftransform();} int main(int argc, char **argv) { clutter_init(argc, argv); ClutterActor *stage = clutter_stage_get_default(); ClutterColor color = {0x00, 0x00, 0xff, 0xff}; ClutterShader *shader = clutter_shader_new(); clutter_shader_set_vertex_source(shader, NOOP_VERTEX, strlen(NOOP_VERTEX)); ClutterActor *rect = clutter_rectangle_new_with_color(color); clutter_actor_set_size(rect, 100, 100); clutter_container_add_actor(CLUTTER_CONTAINER(stage), rect); if (clutter_actor_set_shader(rect, shader)) { g_print(shader is applied\n); } rect = clutter_rectangle_new_with_color(color); clutter_actor_set_size(rect, 100, 100); clutter_actor_set_position(rect, 110, 0); clutter_container_add_actor(CLUTTER_CONTAINER(stage), rect); clutter_actor_show_all(stage); clutter_main(); return 0; }