C++ programmers rejoice! I finally finished converting the Clutter tutorial written by Murray Cumming to C++ and the Cluttermm API. From the introduction of the new Cluttermm tutorial:
Cluttermm is a language binding for C++ on top of Clutter. It has the same functionality and concepts as plain Clutter, but provides C++ programmers with an interface that makes use of language features and common concepts of C++, such as static type safety, class inheritance and (optionally) exception handling.
Both the C tutorial and the new C++ one have been updated for the Clutter 0.9 API currently in development, which will eventually become 1.0. Therefore, this tutorial isn’t final yet and some of the examples still have quirks, but they all build fine. Right now, it only works with Cluttermm trunk, but a development release of Cluttermm 0.9 can be expected soon.
Richard says:
January 11th, 2009 at 21:21
Hello,
Thanks for the tutorial.
I was just trying it out, the first example works but the second one with Label does not seem to work. Clutter::Label has not been declared as it’s not in any of the header files brought in by cluttermm.h.
I have cluttermm and clutter trunk installed, I have grepped through the source code for cluttermm and I can only find reference to the word Label in the clutter_docs.xml file.
Any ideas on what I am missing?
Murray Cumming says:
January 12th, 2009 at 17:09
Richard, you were just unlucky. That label was removed from Clutter 0.9 (in git) a day or two after we uploaded the cluttermm tutorial. It’s now much more like a 0.8 tutorial than a 0.9/0.10 tutorial. We’ll try to update both the C and C++ tutorial to show the new ClutterText actor instead.
danielk says:
January 12th, 2009 at 17:51
Hi Richard, it’s nice to see someone is checking out the new tutorial already.
Murray is right, ClutterLabel was removed from Clutter trunk a couple of days ago and we already followed that change in Cluttermm, too. Clutter is currently in a state of flux as new API needs to get in before 0.9 is finalized. We’ll update the tutorial when the dust has settled.
Richard says:
January 12th, 2009 at 23:38
Hello,
Thanks for the replies, it actually clicked this morning when I read the weekly round up email and it was the second point.
Oh well, no harm done. I’ll have another look when I next have some free time.
Thanks for the tutorials.