Hello! I am considering Clutter (v/s GtkGlExt) for the OpenGL scene in the next version of Toonloop. (1.9) Toonloop is a live animation software that is free, and a lot of fun to play with.
Below are my four requirement for an OpenGL engine. I am trying to improve my Clutter prototype, but I find the documentation rather scarce. Before I choose to simply use GtkGlExt (and maybe regret it later when I need higher-level functionnality), I tought I would ask here if anyone has some examples/prototypes for one of the requirements that are listed above. 1) My first requirement is that we can set the texture data using a pointer to char*, like in http://github.com/aalex/proto-toonloop/blob/proto-gtkglext/src/gui.cpp on line 368. (that's where the interesting Toonloop development is hidden these days!) 2) My second requirement, is that we can set the actor (the plane on which we draw the texture) can be automatically resized when the window is resized. (the units are in pixels in Clutter, which is not what I am used with) I know this is possible in Clutter. 3) Third requirement: be able to resize the window, make it fullscreen, embed it in GTK+. Should be OK too in Clutter. 4) Fourth requirement: be able to use shaders with two textures fed to it. The idea is to blend two images together using the overlay mode. (the live input + the animation playback) That's what I am not sure at all about. So far, GtkGlExt meets them all. For Clutter, they are probably all possible too, but it's not so obvious. The good point for Clutter, is that using GLSL shaders is quite easy with it. It wraps the low-level OpenGL calls in an elegant manner. Thanks! -- Alexandre Quessy http://alexandre.quessy.net/ -- To unsubscribe send a mail to [email protected]
