Blame README.in

Packit 31ecd5
README for Clutter @CLUTTER_VERSION@
Packit 31ecd5
===============================================================================
Packit 31ecd5
Packit 31ecd5
Clutter is an open source software library for creating fast, compelling,
Packit 31ecd5
portable, and dynamic graphical user interfaces.
Packit 31ecd5
Packit 31ecd5
REQUIREMENTS
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
Clutter currently requires:
Packit 31ecd5
Packit 31ecd5
  • GLib ≥ @GLIB_REQ_VERSION@
Packit 31ecd5
  • Cogl ≥ @COGL_REQ_VERSION@
Packit 31ecd5
  • JSON-GLib ≥ @JSON_GLIB_REQ_VERSION@
Packit 31ecd5
  • Atk ≥ @ATK_REQ_VERSION@
Packit 31ecd5
  • Cairo ≥ @CAIRO_REQ_VERSION@
Packit 31ecd5
  • PangoCairo ≥ @PANGO_REQ_VERSION@
Packit 31ecd5
Packit 31ecd5
When building the X11 backend, Clutter depends on the following extensions:
Packit 31ecd5
Packit 31ecd5
  • XComposite ≥ @XCOMPOSITE_REQ_VERSION@
Packit 31ecd5
  • XDamage
Packit 31ecd5
  • XExt
Packit 31ecd5
  • XInput (1.x or 2.x)
Packit 31ecd5
  • XKB
Packit 31ecd5
Packit 31ecd5
When building the Wayland backend, Clutter also depends on:
Packit 31ecd5
Packit 31ecd5
  • wayland-client
Packit 31ecd5
  • xkbcommon
Packit 31ecd5
Packit 31ecd5
When building the GDK backend, Clutter also depends on:
Packit 31ecd5
Packit 31ecd5
  • gdk-3.0 > @GDK_REQ_VERSION@
Packit 31ecd5
Packit 31ecd5
When building the CEx100 backend, Clutter also depends on:
Packit 31ecd5
Packit 31ecd5
  • libgdl
Packit 31ecd5
Packit 31ecd5
When building the evdev input backend, Clutter also depends on:
Packit 31ecd5
Packit 31ecd5
  • xkbcommon
Packit 31ecd5
  • libudev ≥ @LIBUDEV_REQ_VERSION@
Packit 31ecd5
  • libinput ≥ @LIBINPUT_REQ_VERSION@
Packit 31ecd5
Packit 31ecd5
If you are building the API reference you will also need:
Packit 31ecd5
Packit 31ecd5
  • GTK-Doc ≥ @GTK_DOC_REQ_VERSION@
Packit 31ecd5
Packit 31ecd5
If you are building the additional documentation you will also need:
Packit 31ecd5
Packit 31ecd5
  • xsltproc
Packit 31ecd5
  • jw (optional, for generating PDFs)
Packit 31ecd5
Packit 31ecd5
If you are building the Introspection data you will also need:
Packit 31ecd5
Packit 31ecd5
  • GObject-Introspection ≥ @GI_REQ_VERSION@
Packit 31ecd5
Packit 31ecd5
GObject-Introspection is available from:
Packit 31ecd5
Packit 31ecd5
  git://git.gnome.org/gobject-introspection
Packit 31ecd5
Packit 31ecd5
RESOURCES
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
The official Clutter website is:
Packit 31ecd5
Packit 31ecd5
   http://www.clutter-project.org/
Packit 31ecd5
Packit 31ecd5
The API references for the latest stable release are available at:
Packit 31ecd5
Packit 31ecd5
   https://developer.gnome.org/clutter/stable/
Packit 31ecd5
   https://developer.gnome.org/cogl/stable/
Packit 31ecd5
Packit 31ecd5
The Clutter Cookbook is available at:
Packit 31ecd5
Packit 31ecd5
   https://developer.gnome.org/clutter-cookbook/
Packit 31ecd5
Packit 31ecd5
New releases of Clutter are available at:
Packit 31ecd5
Packit 31ecd5
   https://download.gnome.org/sources/clutter/
Packit 31ecd5
Packit 31ecd5
The Clutter blog is available at:
Packit 31ecd5
Packit 31ecd5
   http://www.clutter-project.org/
Packit 31ecd5
Packit 31ecd5
To subscribe to the Clutter mailing list and read the archives, use the
Packit 31ecd5
Mailman web interface available at:
Packit 31ecd5
Packit 31ecd5
   https://mail.gnome.org/mailman/listinfo/clutter-list
Packit 31ecd5
Packit 31ecd5
New bug page on Bugzilla:
Packit 31ecd5
Packit 31ecd5
   https://bugzilla.gnome.org/enter_bug.cgi?product=clutter
Packit 31ecd5
Packit 31ecd5
Clutter is licensed under the terms of the GNU Lesser General Public
Packit 31ecd5
License, version 2.1 or (at your option) later.
Packit 31ecd5
Packit 31ecd5
BUILDING AND INSTALLATION
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
To build Clutter from a release tarball, the usual autotool triad should
Packit 31ecd5
be followed:
Packit 31ecd5
Packit 31ecd5
  $ ./configure
Packit 31ecd5
  $ make
Packit 31ecd5
  # make install
Packit 31ecd5
Packit 31ecd5
To build Clutter from a Git clone, run the autogen.sh script instead
Packit 31ecd5
of the configure one. The autogen.sh script will run the configure script
Packit 31ecd5
for you, unless the NOCONFIGURE environment variable is set to a non-empty
Packit 31ecd5
value.
Packit 31ecd5
Packit 31ecd5
See also the wiki page:
Packit 31ecd5
Packit 31ecd5
  https://wiki.gnome.org/Projects/Clutter
Packit 31ecd5
Packit 31ecd5
Clutter has additional command line options for the configure script:
Packit 31ecd5
Packit 31ecd5
 --enable-debug=[no/minimum/yes]
Packit 31ecd5
	Controls Clutter debugging level:
Packit 31ecd5
Packit 31ecd5
	yes:
Packit 31ecd5
                All GLib asserts, checks and support for runtime Clutter
Packit 31ecd5
                debugging notes through CLUTTER_DEBUG. This is the default
Packit 31ecd5
                value for developers snapshots.
Packit 31ecd5
Packit 31ecd5
        minimum:
Packit 31ecd5
                Just GType cast checks and support for runtime Clutter
Packit 31ecd5
                debugging notes through CLUTTER_DEBUG. This is the default
Packit 31ecd5
                for stable releases.
Packit 31ecd5
Packit 31ecd5
        no:
Packit 31ecd5
                No GLib asserts or checks and no support for runtime Clutter
Packit 31ecd5
                debugging notes. Only use in extreme performance and/or size
Packit 31ecd5
                optimization cases, though it is strongly discouraged.
Packit 31ecd5
Packit 31ecd5
 --enable-maintainer-flags=[no/yes/error]
Packit 31ecd5
        Use strict compiler flags. This defaults to 'yes' for building from
Packit 31ecd5
        Git to 'no' for tarball releases. If 'error' is used, then -Werror
Packit 31ecd5
        will be enabled (if available).
Packit 31ecd5
Packit 31ecd5
 --enable-gtk-doc
Packit 31ecd5
	use gtk-doc to build API documentation (default=no). Requires gtk-doc
Packit 31ecd5
	present on the target system.
Packit 31ecd5
Packit 31ecd5
 --enable-docs=[no/yes]
Packit 31ecd5
        Build additional documentation. Requires xsltproc for DocBook
Packit 31ecd5
        conversion, and optionally jw for PDF generation.
Packit 31ecd5
Packit 31ecd5
 --enable-gcov=[no/yes]
Packit 31ecd5
        Build Clutter with coverage report support, provided by gcov. This
Packit 31ecd5
        feature only works with the GNU Compiler Suite and gcov installed.
Packit 31ecd5
Packit 31ecd5
 --disable-tests
Packit 31ecd5
        Disable building the Clutter tests suite.
Packit 31ecd5
Packit 31ecd5
 --disable-examples
Packit 31ecd5
        Disable building the Clutter API reference examples.
Packit 31ecd5
Packit 31ecd5
 --enable-deprecated=[yes/no]
Packit 31ecd5
        Whether deprecated symbols should be available when compiling Clutter.
Packit 31ecd5
Packit 31ecd5
 --disable-Bsymbolic
Packit 31ecd5
        Disable linking with -Bsymbolic.
Packit 31ecd5
Packit 31ecd5
 --enable-x11-backend=[yes/no/check]
Packit 31ecd5
        Enable the X11 backend. (default=check)
Packit 31ecd5
Packit 31ecd5
 --enable-win32-backend=[yes/no/check]
Packit 31ecd5
        Enable the native Microsoft Windows backend. (default=check)
Packit 31ecd5
Packit 31ecd5
 --enable-quartz-backend=[yes/no/check]
Packit 31ecd5
        Enable the native Quartz backend. (default=check)
Packit 31ecd5
Packit 31ecd5
 --enable-gdk-backend=[yes/no/check]
Packit 31ecd5
        Enable the GDK backend. (default=check)
Packit 31ecd5
Packit 31ecd5
 --enable-wayland-backend=[yes/no]
Packit 31ecd5
        Enable the Wayland client backend. (default=no) [EXPERIMENTAL]
Packit 31ecd5
Packit 31ecd5
 --enable-cex100-backend=[yes/no]
Packit 31ecd5
        Enable the CEx100 platform backend. (default=no) [EXPERIMENTAL]
Packit 31ecd5
Packit 31ecd5
 --enable-egl-backend=[yes/no]
Packit 31ecd5
        Enable the EGL framebuffer backend. (default=no)
Packit 31ecd5
Packit 31ecd5
 --enable-tslib-input=[yes/no]
Packit 31ecd5
        Enable the TSLib input backend. (default=no) [EXPERIMENTAL]
Packit 31ecd5
Packit 31ecd5
 --enable-evdev-input=[yes/no]
Packit 31ecd5
        Enable the evdev input backend. (default=no) [EXPERIMENTAL]
Packit 31ecd5
Packit 31ecd5
See also the INSTALL file generated by autotools for further information.
Packit 31ecd5
Packit 31ecd5
VERSIONING
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
Clutter uses the common "Linux kernel" versioning system, where
Packit 31ecd5
even-numbered minor versions are stable and odd-numbered minor
Packit 31ecd5
versions are development snapshots.
Packit 31ecd5
Packit 31ecd5
Different major versions break both API and ABI but are parallel
Packit 31ecd5
installable. The same major version with differing minor version is
Packit 31ecd5
expected to be ABI compatible with other minor versions; differing
Packit 31ecd5
micro versions are meant just for bug fixing. On odd minor versions
Packit 31ecd5
the newly added API might still change.
Packit 31ecd5
Packit 31ecd5
The micro version indicates the origin of the release: even micro
Packit 31ecd5
numbers are only used for released archives; odd micro numbers are
Packit 31ecd5
only used on the Git repository.
Packit 31ecd5
Packit 31ecd5
HACKING
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
If you want to hack on and improve Clutter check the HACKING file for
Packit 31ecd5
general implementation guidelines, and the HACKING.backends for
Packit 31ecd5
backend-specific implementation issues.
Packit 31ecd5
Packit 31ecd5
The CODING_STYLE file contains the rules for writing code conformant to the
Packit 31ecd5
style guidelines used throughout Clutter. Remember: the coding style is
Packit 31ecd5
mandatory; patches not conforming to it will be rejected by default.
Packit 31ecd5
Packit 31ecd5
BUGS
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
Bugs should be reported to the Clutter Bugzilla at:
Packit 31ecd5
Packit 31ecd5
  http://bugzilla.gnome.org/enter_bug.cgi?product=clutter
Packit 31ecd5
Packit 31ecd5
You will need a Bugzilla account.
Packit 31ecd5
Packit 31ecd5
In the report you should include:
Packit 31ecd5
Packit 31ecd5
  • what system you're running Clutter on;
Packit 31ecd5
  • which version of Clutter you are using;
Packit 31ecd5
  • which version of GLib, Cogl, and OpenGL (or OpenGL ES) you are using;
Packit 31ecd5
  • which video card and which drivers you are using, including output of
Packit 31ecd5
    glxinfo and xdpyinfo (if applicable);
Packit 31ecd5
  • how to reproduce the bug.
Packit 31ecd5
Packit 31ecd5
If you cannot reproduce the bug with one of the tests that come with Clutter
Packit 31ecd5
source code, you should include a small test case displaying the bad
Packit 31ecd5
behaviour.
Packit 31ecd5
Packit 31ecd5
If the bug exposes a crash, the exact text printed out and a stack trace
Packit 31ecd5
obtained using gdb are greatly appreciated.
Packit 31ecd5
Packit 31ecd5
CONTRIBUTING
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
Patches should be submitted using Bugzilla. Patches fixing a bug should be
Packit 31ecd5
attached to the bug report; patches for new features or for fixing bugs not
Packit 31ecd5
yet reported should be attached to a newly opened bug.
Packit 31ecd5
Packit 31ecd5
Patches should always be in the unified diff format, using:
Packit 31ecd5
Packit 31ecd5
  diff -Nuarp clutter.source clutter.patched > clutter-patch.diff
Packit 31ecd5
Packit 31ecd5
If diffing against the Git repository, you should use:
Packit 31ecd5
Packit 31ecd5
  git diff > clutter-patch.diff
Packit 31ecd5
Packit 31ecd5
Or, better: commit locally and use `git format-patch` to generate a patch
Packit 31ecd5
containing authorship details, so that members of the Clutter development
Packit 31ecd5
team can credit your contribution properly.
Packit 31ecd5
Packit 31ecd5
Another useful tool for interacting with Git and Bugzilla is git-bz(1):
Packit 31ecd5
Packit 31ecd5
  http://git.fishsoup.net/man/git-bz.html
Packit 31ecd5
Packit 31ecd5
Which is available here:
Packit 31ecd5
Packit 31ecd5
  http://git.fishsoup.net/cgit/git-bz/
Packit 31ecd5
Packit 31ecd5
Patches submitted against Clutter have to pass the conformance test suite, or,
Packit 31ecd5
if possible, add new unit tests for the conformance test suite in case of new
Packit 31ecd5
features. Ensure you run the conformance test suite every for every patch you
Packit 31ecd5
wish to submit, by using:
Packit 31ecd5
Packit 31ecd5
  make -C tests/conform check
Packit 31ecd5
Packit 31ecd5
and verifying that the whole test suite passes.
Packit 31ecd5
Packit 31ecd5
RELEASE NOTES
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
Relevant information for developers with existing Clutter applications
Packit 31ecd5
wanting to port to newer releases (see NEWS for general information on new
Packit 31ecd5
features).
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.26
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
• The evdev backend specific ClutterPointerConstrainCallback type was changed
Packit 31ecd5
  to include not only the target position but also the previous position. This
Packit 31ecd5
  is an API change, and will require a version check in any caller code.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.24
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
• ClutterModel, ClutterModelIter, and ClutterListStore have been deprecated.
Packit 31ecd5
  You're strongly encouraged to use the GListModel interface, and the
Packit 31ecd5
  GListStore class, as a replacement.
Packit 31ecd5
Packit 31ecd5
• The macros used to access the state flags in ClutterActor have been
Packit 31ecd5
  deprecated, and replaced by equivalent functions.
Packit 31ecd5
Packit 31ecd5
• Clutter types now can be used with the `g_autoptr()` and `g_auto()`
Packit 31ecd5
  macros provided by GLib and supported by GCC and Clang.
Packit 31ecd5
Packit 31ecd5
• The old, non-namespaced CLUTTER_* key symbols now have an associated
Packit 31ecd5
  deprecation warning.
Packit 31ecd5
Packit 31ecd5
• The private, unused ClutterX11XInputEventTypes enumeration, which was
Packit 31ecd5
  erroneously placed in the clutter-x11.h public header, has been removed.
Packit 31ecd5
Packit 31ecd5
• The Wayland client backend is now autodetected depending on whether the
Packit 31ecd5
  required dependencies are available.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.22
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
• The default backend for Clutter starting from this release is the GDK
Packit 31ecd5
  backend, if Clutter was compiled with it. This allows better integration
Packit 31ecd5
  with the underlying windowing system platform on X11 and Wayland. On
Packit 31ecd5
  Windows and MacOS the native backends are still the preferred ones. If you
Packit 31ecd5
  require a specific backend you should use clutter_set_windowing_backend()
Packit 31ecd5
  with the CLUTTER_WINDOWING_* backend you require, prior to call
Packit 31ecd5
  clutter_init().
Packit 31ecd5
Packit 31ecd5
• The ClutterRequestMode enumeration has a new value. Code checking for the
Packit 31ecd5
  values of ClutterRequestMode should already be resilient to changes to this
Packit 31ecd5
  enumerations, like for all enumerations in Clutter.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.20
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
• The clutter_stage_set_paint_callback() experimental function has been
Packit 31ecd5
  removed from the Clutter ABI; it has been replaced by the ::after-paint
Packit 31ecd5
  signal on the ClutterStage class. The set_paint_callback() method was
Packit 31ecd5
  marked as "experimental", required a special definition to be usable, and
Packit 31ecd5
  no guarantees were made on its continued existence.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.18
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
• Until 1.18, ClutterStage removed its children during its dispose()
Packit 31ecd5
  implementation, before the default ClutterActor::destroy() implementation
Packit 31ecd5
  would run. ClutterStage will now destroy the children when it is destroyed
Packit 31ecd5
  to ensure that the children are destroyed, and that custom code can remove
Packit 31ecd5
  references through the ClutterActor::destroy signal.
Packit 31ecd5
Packit 31ecd5
• Clutter does not depend on the XFIXES extension API on X11 any more. Before
Packit 31ecd5
  1.18 Clutter used the XFIXES API to hide the cursor; the API is less than
Packit 31ecd5
  useful for toolkits and applications, so Clutter unconditionally uses the
Packit 31ecd5
  fall back code that was in place in case XFIXES was not available.
Packit 31ecd5
Packit 31ecd5
• ClutterText emits the ::insert-text and ::delete-text signals before the
Packit 31ecd5
  contents of the ClutterTextBuffer are changed, as documented. The signal
Packit 31ecd5
  emission cannot be guaranteed if the ClutterTextBuffer API is used instead
Packit 31ecd5
  of the ClutterText API.
Packit 31ecd5
Packit 31ecd5
• Starting from 1.18, the Clutter evdev input device backend no longer uses
Packit 31ecd5
  libevdev and libgudev directly, but relies on libinput for discovering,
Packit 31ecd5
  reading and processing input devices.
Packit 31ecd5
Packit 31ecd5
• The Clutter evdev input device backend was already considered
Packit 31ecd5
  experimental and not subject to Clutter's API and ABI stabitility
Packit 31ecd5
  guarantees. Starting from 1.18, users have to explicitly acknowldge
Packit 31ecd5
  this by having to #define CLUTTER_ENABLE_COMPOSITOR_API to use its
Packit 31ecd5
  public API.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.16
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
• Implicit transitions will not be created on actors that are not mapped,
Packit 31ecd5
  unless they are in a cloned branch of the scene graph. This was never an
Packit 31ecd5
  approved case, as ClutterActor would implicitly skip layout and paint on
Packit 31ecd5
  unmapped actors, but now it's being enforced through the animation machinery
Packit 31ecd5
  as well. Using explicit transitions still works, as explicit transitions
Packit 31ecd5
  completely place the developer in charge.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.14
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
• The X11 backend (both core X events and XInput 2 backends) now mask out
Packit 31ecd5
  scroll lock and num lock modifiers from the event state.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.12
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
• ClutterBinLayout no longer requests or allocates size for children that are
Packit 31ecd5
  not visible, which is how the other layout managers work.
Packit 31ecd5
Packit 31ecd5
• The expansion and alignment layout properties in all the layout managers
Packit 31ecd5
  that provide them have been deprecated in favour of the equivalent ones
Packit 31ecd5
  on ClutterActor; the ClutterLayoutManager implementations provided by
Packit 31ecd5
  Clutter have been updated to honour the ClutterActor:x-expand,
Packit 31ecd5
  ClutterActor:y-expand, ClutterActor:x-align, and ClutterActor:y-align
Packit 31ecd5
  properties, if set.
Packit 31ecd5
Packit 31ecd5
• Setting the ClutterActor:fixed-position-set to FALSE will reset any
Packit 31ecd5
  currently set fixed position to (0, 0).
Packit 31ecd5
Packit 31ecd5
• ClutterActor's margin properties are now animatable.
Packit 31ecd5
Packit 31ecd5
• ClutterBindingActionFunc typedef now has a user_data parameter; the user
Packit 31ecd5
  data was passed by every caller, and ClutterBindingActionFunc was not used
Packit 31ecd5
  anywhere in the API except for documentation purposes.
Packit 31ecd5
Packit 31ecd5
• The clutter_threads_enter() and clutter_threads_leave() functions have been
Packit 31ecd5
  deprecated; the lead to non portable code, and encourage broken behaviour
Packit 31ecd5
  with regards to threaded applications. The only supported, portable way of
Packit 31ecd5
  writing Clutter application employing threads is to defer long running
Packit 31ecd5
  operations to a worker thread, and schedule UI updates to the main loop at
Packit 31ecd5
  well defined synchronization points.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.10
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
• The ClutterActor::paint, ClutterActor::queue-redraw, and
Packit 31ecd5
  ClutterActor::queue-relayout signals are now annotated as not allowing
Packit 31ecd5
  signal emission hooks; this enables some optimization inside GLib, and
Packit 31ecd5
  given the amount of emissions these three signals have, we want to get
Packit 31ecd5
  through all the fast paths we can.
Packit 31ecd5
Packit 31ecd5
• The ClutterActorBox parameter of the ClutterActor::allocation-changed
Packit 31ecd5
  signal is now marked as G_SIGNAL_TYPE_STATIC_SCOPE.
Packit 31ecd5
Packit 31ecd5
• The clutter-stage-window.h header is not installed any more; this header
Packit 31ecd5
  was never meant to be public in the first place, and nothing could have
Packit 31ecd5
  been implementing the ClutterStageWindow interface and use it with Clutter.
Packit 31ecd5
Packit 31ecd5
• ClutterActor will call its unmap() implementation when it is removed from
Packit 31ecd5
  its parent. This may happen after the ClutterActor::destroy signal has been
Packit 31ecd5
  emitted, i.e. during its dispose(). Prior to 1.10, calling the
Packit 31ecd5
  clutter_actor_destroy() function would unmap the actor first, and then
Packit 31ecd5
  emit the destroy signal. This means that extra care should be used when
Packit 31ecd5
  overriding the map() and unmap() virtual functions, to avoid dereferencing
Packit 31ecd5
  NULL pointers. It is also worthy of note that since Clutter 1.8, overriding
Packit 31ecd5
  map() or unmap() is not required any more for subclasses of ClutterActor
Packit 31ecd5
  that have children, as ClutterActor will automatically do the right thing
Packit 31ecd5
  inside its own implementation, and map or unmap its children when needed.
Packit 31ecd5
Packit 31ecd5
• ClutterBox and ClutterGroup have been deprecated. ClutterActor should be
Packit 31ecd5
  used directly, instead. Since ClutterStage inherits from ClutterGroup, the
Packit 31ecd5
  instance and class structures are still available, but subclassing Group
Packit 31ecd5
  is strongly disencouraged.
Packit 31ecd5
Packit 31ecd5
• ClutterContainer provides default implementations for add(), remove(),
Packit 31ecd5
  foreach(), raise(), lower(), and sort_depth_order(); this means that
Packit 31ecd5
  overriding these virtual functions is now deprecated, and developers
Packit 31ecd5
  should only implement ClutterContainer for classes providing child
Packit 31ecd5
  properties.
Packit 31ecd5
Packit 31ecd5
• ClutterActor is not an abstract type any more, and can be instantiated
Packit 31ecd5
  either through clutter_actor_new() or through g_object_new().
Packit 31ecd5
Packit 31ecd5
• ClutterActor now implements ClutterContainer, and takes over the entire API
Packit 31ecd5
  for modifying the scene graph; this means that every actor can have children
Packit 31ecd5
  and it's not necessary any more to implement the ClutterContainer interface.
Packit 31ecd5
  ClutterActor provides new API to replace clutter_actor_set_parent() and
Packit 31ecd5
  clutter_actor_unparent(), as well as a default implementation of every
Packit 31ecd5
  Container virtual function. Existing actors overriding ClutterContainer and
Packit 31ecd5
  providing an alternate implementation will continue to work, even though it
Packit 31ecd5
  is strongly encouraged to port to the new API.
Packit 31ecd5
Packit 31ecd5
• The ClutterActor::destroy signal is going to be emitted at the beginning
Packit 31ecd5
  of the dispose sequence of a ClutterActor, instead of the end. This allows
Packit 31ecd5
  to access the state of the actor being destroyed, instead of just being
Packit 31ecd5
  able to use its pointer. This may expose bugs in code that does not check
Packit 31ecd5
  for NULL actor pointers.
Packit 31ecd5
Packit 31ecd5
• The long since broken depth cueing support in ClutterStage has been
Packit 31ecd5
  deprecated; the fixed pipeline fog API has been pretty much useless
Packit 31ecd5
  since the switch to colors and textures with premultiplied alpha
Packit 31ecd5
  channels. Setting ClutterStage:use-fog to TRUE has no visible results,
Packit 31ecd5
  and querying the :use-fog and :fog properties will always yield the
Packit 31ecd5
  default values.
Packit 31ecd5
Packit 31ecd5
• ClutterDeformEffect switched from using CoglVertexBuffer to using the
Packit 31ecd5
  CoglPrimitive API internally, to improve performance and use non-deprecated
Packit 31ecd5
  Cogl API. CoglPrimitive converts COGL_WRAP_MODE_AUTOMATIC to
Packit 31ecd5
  COGL_WRAP_MODE_CLAMP_TO_EDGE, unlike CoglVertexBuffer which converts it to
Packit 31ecd5
  COGL_WRAP_MODE_REPEAT. This prevents artifacts when sampling texture
Packit 31ecd5
  coordinates outside the [ 0, 1 ] range. This change may cause the back
Packit 31ecd5
  texture to not be painted if its coordinates go outside the allowed range,
Packit 31ecd5
  for instance when using a custom transformation matrix on the back material
Packit 31ecd5
  used by the ClutterDeformEffect.
Packit 31ecd5
Packit 31ecd5
• The "default stage" has been deprecated; since the 1.0 release, the default
Packit 31ecd5
  stage creation was deferred to the call to clutter_stage_get_default(), and
Packit 31ecd5
  the preferred way for getting a ClutterStage was calling clutter_stage_new()
Packit 31ecd5
  instead. On platforms that do not support multiple stages, attempting to
Packit 31ecd5
  create more than one stage will lead to an error, and Clutter will abort.
Packit 31ecd5
Packit 31ecd5
• Clutter can support multiple backends in the same shared library. Only one
Packit 31ecd5
  windowing or input backend can be used at run time. As a result of this
Packit 31ecd5
  change, the shared library name used by Clutter has changed from:
Packit 31ecd5
Packit 31ecd5
        libclutter-<flavour>-<API version>.so
Packit 31ecd5
Packit 31ecd5
  to:
Packit 31ecd5
Packit 31ecd5
        libclutter-<API version>.so
Packit 31ecd5
Packit 31ecd5
  The pkg-config file has been updated accordingly. Until the next major API
Packit 31ecd5
  break, Clutter will ship compatibility links for all the previous "flavours"
Packit 31ecd5
  that were available in versions < 1.10; this allows applications dynamically
Packit 31ecd5
  linking against Clutter, or using dlopen(), to keep working. For libraries
Packit 31ecd5
  and applications dynamically linking against Clutter, though, it is still
Packit 31ecd5
  recommended to recompile to make sure that the most recent version is being
Packit 31ecd5
  used. Language bindings using GObject Introspection will automatically use
Packit 31ecd5
  the new shared library without requiring any change.
Packit 31ecd5
Packit 31ecd5
• The windowing system backend for the CE3100 and CE4100 platforms using the
Packit 31ecd5
  libgdl library is now implemented as a separate backend instance, instead
Packit 31ecd5
  of being a sub-flavour of the EGL native framebuffer backend. This change
Packit 31ecd5
  introduces a new header file, under $includedir/clutter-1.0/clutter/cex100,
Packit 31ecd5
  which should be included to access the CEx100-specific API. The API and
Packit 31ecd5
  ABI of the platform API has not been changed, though it should still be
Packit 31ecd5
  considered experimental.
Packit 31ecd5
Packit 31ecd5
• As of 1.10 it is not necessary any more to call clutter_threads_init() to
Packit 31ecd5
  initialize threading support in Clutter; after the changes in GLib 2.32,
Packit 31ecd5
  threading support in Clutter is always enabled. The rules on how to use
Packit 31ecd5
  Clutter from multiple threads haven't changed.
Packit 31ecd5
Packit 31ecd5
• Deprecated API is now marked using the CLUTTER_DEPRECATED and the
Packit 31ecd5
  CLUTTER_DEPRECATED_FOR annotations; these two annotations will result in
Packit 31ecd5
  compiler warnings when attempting to use the deprecated API. It is possible
Packit 31ecd5
  to disable deprecation warnings for Clutter by defining the
Packit 31ecd5
  CLUTTER_DISABLE_DEPRECATION_WARNINGS symbol when compiling. The previous
Packit 31ecd5
  deprecation symbol, CLUTTER_DISABLE_DEPRECATED, is only used for macros.
Packit 31ecd5
Packit 31ecd5
• Deprecated functionality has been moved to separate header files, installed
Packit 31ecd5
  under the $includedir/clutter-1.0/clutter/deprecated directory. These files
Packit 31ecd5
  are still included by default by clutter/clutter.h.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.8
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
• Cogl has been split out of tree. Clutter depends on Cogl, so users should
Packit 31ecd5
  not notice anything. Developers using pkg-config will gain an extra Cogl
Packit 31ecd5
  dependency.
Packit 31ecd5
Packit 31ecd5
• The clutter_actor_get_gid() and clutter_get_actor_by_gid() functions have
Packit 31ecd5
  been deprecated. They should not have been public in the first place.
Packit 31ecd5
Packit 31ecd5
• ClutterShader and its relative API have been deprecated. ClutterShaderEffect
Packit 31ecd5
  and the effect API is the proper way to use GLSL shaders with ClutterActors.
Packit 31ecd5
  It is possible to instantiate a ClutterShaderEffect directly.
Packit 31ecd5
Packit 31ecd5
• ClutterText's paint volume has been implemented using the ink rectangle of
Packit 31ecd5
  the PangoLayout used to paint, to allow culling to work properly even in
Packit 31ecd5
  the case of glyphs spilling outside the logical rectangle.
Packit 31ecd5
Packit 31ecd5
• Non fully opaque children of a non fully opaque actor will be composited
Packit 31ecd5
  in an offscreen framebuffer object to preserve the correct overall opacity.
Packit 31ecd5
  This changes the way non fully opaque actors are drawn, and might cause
Packit 31ecd5
  some code relying on the old, unspecified behaviour to produce different
Packit 31ecd5
  results.
Packit 31ecd5
Packit 31ecd5
• ClutterBoxLayout layout algorithm has been changed to map the more mature
Packit 31ecd5
  and more stable GtkBox one.
Packit 31ecd5
Packit 31ecd5
• The ClutterText:editable property was incorrectly defined in the GParamSpec
Packit 31ecd5
  as being TRUE by default, but it was initialized to FALSE. To avoid breaking
Packit 31ecd5
  existing code, the default value inside the GParamSpec (and inside the
Packit 31ecd5
  documentation) has been changed to FALSE as well.
Packit 31ecd5
Packit 31ecd5
• The preferred way to draw inside a ClutterCairoTexture is connecting to
Packit 31ecd5
  its ::draw signal, and calling the invalidate() method. The old pattern
Packit 31ecd5
  of creating the Cairo context using the create() method is deprecated but
Packit 31ecd5
  still working as intended.
Packit 31ecd5
Packit 31ecd5
• ClutterScore has been deprecated; the preferred way to chain up multiple
Packit 31ecd5
  animations is to use the ClutterAnimator or ClutterState classes.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.6
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
• The internal copy of JSON-GLib has been removed: Clutter now strictly
Packit 31ecd5
  depends on the installed copy of this library. The --with-json configure
Packit 31ecd5
  switch has been removed.
Packit 31ecd5
Packit 31ecd5
• The ClutterBehaviour class and its sub-classes have been deprecated; the
Packit 31ecd5
  Clutter API reference contains a migration guide to port code based on
Packit 31ecd5
  behaviours to the implicit animations framework.
Packit 31ecd5
Packit 31ecd5
• The ClutterTimeoutPool and clutter_frame_source_* API have been deprecated;
Packit 31ecd5
  both API are not integrated in the Clutter main loop, and are not used
Packit 31ecd5
  internally any longer, so they are of relative use.
Packit 31ecd5
Packit 31ecd5
• It it not necessary any more to provide implementations for the
Packit 31ecd5
  ClutterActor::map() and ClutterActor::unmap() virtual functions, even
Packit 31ecd5
  for composite actors not implementing the ClutterContainer interface.
Packit 31ecd5
Packit 31ecd5
• ClutterTimeline now guarantees that the ::new-frame signal will be
Packit 31ecd5
  emitted at the beginning of the timeline, as well as guaranteeing that
Packit 31ecd5
  the ::completed signal will be emitted at the end of the timeline.
Packit 31ecd5
Packit 31ecd5
• ClutterActor will check for the enabled property of ClutterActorMeta
Packit 31ecd5
  instances (actions, constraints and effects), and will not invoke
Packit 31ecd5
  ClutterActorMeta functions on disabled instances. This removes the
Packit 31ecd5
  requirement for checking the property inside the ClutterActorMeta
Packit 31ecd5
  sub-classes.
Packit 31ecd5
Packit 31ecd5
• ClutterActorBox, ClutterGeometry and ClutterVertex install a progress
Packit 31ecd5
  function for ClutterInterval, allowing the interpolation of properties
Packit 31ecd5
  using them as storage types.
Packit 31ecd5
Packit 31ecd5
• ClutterColor's clutter_color_from_string() function accepts CSS3 color
Packit 31ecd5
  specifications.
Packit 31ecd5
Packit 31ecd5
• The previously unused "axes" field in the ClutterButtonEvent,
Packit 31ecd5
  ClutterScrollEvent and ClutterMotionEvent structures is now used on
Packit 31ecd5
  the X11-based backends with XInput support.
Packit 31ecd5
Packit 31ecd5
• ClutterListModel will honour the filter function when calling
Packit 31ecd5
  clutter_model_get_iter_at_row().
Packit 31ecd5
Packit 31ecd5
• ClutterClickAction does not use a pointer grab any longer, and uses
Packit 31ecd5
  a capture on the stage instead.
Packit 31ecd5
Packit 31ecd5
• On all platforms which allow it, ClutterStage will ask the windowing
Packit 31ecd5
  system for an explicit key focus when showing the stage window. This
Packit 31ecd5
  can be disabled using clutter_stage_set_accept_focus().
Packit 31ecd5
Packit 31ecd5
Release Notes for Cogl 1.6
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
• Cogl may internally optimise cogl_read_pixels when only a single
Packit 31ecd5
  pixel is drawn and the entire scene is comprised of solid colour
Packit 31ecd5
  rectangles. Instead of actually rendering the rectangles it will
Packit 31ecd5
  compute the single pixel value in software. This effectively means
Packit 31ecd5
  that Clutter can do software picking without any API changes.
Packit 31ecd5
Packit 31ecd5
• Internally Cogl now has a GLSL backend as well as the ARBfp and
Packit 31ecd5
  fixed function backends. By default, this backend has the lowest
Packit 31ecd5
  priority but it can be explicitly enabled by setting the
Packit 31ecd5
  COGL_DEBUG environment variable, e.g.:
Packit 31ecd5
Packit 31ecd5
    export COGL_DEBUG=disable-fixed,disable-arbfp
Packit 31ecd5
Packit 31ecd5
  for builds of Clutter with debug support enabled.
Packit 31ecd5
Packit 31ecd5
• Cogl will internally now cache generated ARBfp programs so that it
Packit 31ecd5
  should be able to reuse a previous program even if it was generated
Packit 31ecd5
  for an unrelated CoglMaterial. This makes using one-shot materials
Packit 31ecd5
  less expensive than before although it is still not recommended.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.4
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
• ClutterLayoutManager sub-classes overriding the set_container() virtual
Packit 31ecd5
  function should chain up to the parent class's implementation.
Packit 31ecd5
Packit 31ecd5
• The ClutterTexture:filename property is now readable, as well as writable;
Packit 31ecd5
  this allows querying the Texture for the filename storing the image data.
Packit 31ecd5
  The value will be unset when using the set_from_*_data() family of
Packit 31ecd5
  functions.
Packit 31ecd5
Packit 31ecd5
• If both the :sync-size and the :keep-aspect-ratio properties of a
Packit 31ecd5
  ClutterTexture are set to TRUE, then the texture actor will update its
Packit 31ecd5
  ClutterActor:request-mode property depending on the orientation of the
Packit 31ecd5
  image data - height-for-width for landscape, and width-for-height for
Packit 31ecd5
  portrait. Square image data will default to height-for-width, like all
Packit 31ecd5
  actors. You can still explicitly override the :request-mode value, or
Packit 31ecd5
  you can unset the :sync-size property to control the size yourself.
Packit 31ecd5
Packit 31ecd5
• All the key symbol macros have been renamed from CLUTTER_* to
Packit 31ecd5
  CLUTTER_KEY_*. The old names are still available inside the
Packit 31ecd5
  clutter-keysyms-compat.h header, which is included by clutter-keysyms.h
Packit 31ecd5
  unless CLUTTER_DISABLE_DEPRECATED is defined.
Packit 31ecd5
Packit 31ecd5
• The internal copy of json-glib is now deprecated. Building Clutter will
Packit 31ecd5
  default to the system copy and requires an explicit --with-json=internal
Packit 31ecd5
  to override the check.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.2
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
* ClutterStageManager is now publicly available and documented API.
Packit 31ecd5
Packit 31ecd5
* Clutter now depends on the system copy of JSON-GLib, and will fall
Packit 31ecd5
  back to the internal copy only if JSON-GLib is not installed.
Packit 31ecd5
Packit 31ecd5
* ClutterActor:opacity is now defined using GParamSpecUint instead of
Packit 31ecd5
  GParamSpecUchar; the same interval of [ 0, 255 ] applies, and GValue
Packit 31ecd5
  has internal transformation functions for converting between G_TYPE_UINT
Packit 31ecd5
  and G_TYPE_UCHAR, so this change should be fully transparent to the
Packit 31ecd5
  user of the code.
Packit 31ecd5
Packit 31ecd5
* On X11 Clutter will emulate XKB's detectable key auto-repeat; this means
Packit 31ecd5
  that when holding down a key, Clutter will emit multiple CLUTTER_KEY_PRESS
Packit 31ecd5
  events and a single CLUTTER_KEY_RELEASE event instead of a list of
Packit 31ecd5
  CLUTTER_KEY_PRESS and CLUTTER_KEY_RELEASE pairs.
Packit 31ecd5
Packit 31ecd5
* On X11 and Win32 the default Stage is created when
Packit 31ecd5
  clutter_stage_get_default() is called for the first time, and not as
Packit 31ecd5
  part of the stage initialization.
Packit 31ecd5
Packit 31ecd5
Cogl API changes for Clutter 1.2
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
* cogl_viewport is now deprecated in favour of cogl_set_viewport which
Packit 31ecd5
  accepts a viewport offset.
Packit 31ecd5
Packit 31ecd5
* cogl_clip_push() is now deprecated and new code should use
Packit 31ecd5
  cogl_clip_push_rectangle() instead. The old API wasn't consistent with other
Packit 31ecd5
  Cogl APIs that specify model space rectangles using (x0,y0)(x1,y1) pairs.
Packit 31ecd5
Packit 31ecd5
* cogl_clip_push_window_rect() is now deprecated and new code should use
Packit 31ecd5
  cogl_clip_push_window_rectangle(). The old API shouldn't have been defined
Packit 31ecd5
  to take floats and the abbreviation wasn't consistent with other Cogl API.
Packit 31ecd5
Packit 31ecd5
* cogl_clip_stack_save() and cogl_clip_stack_restore() are deprecated, as
Packit 31ecd5
  the functionality is redundant now that offscreen draw buffers own their
Packit 31ecd5
  clip state and switching to/from offscreen rendering will automatically
Packit 31ecd5
  save and restore the clip state.
Packit 31ecd5
Packit 31ecd5
* cogl_material_copy() was added. It is advised that developers use
Packit 31ecd5
  this instead of cogl_material_new() when creating a material that is in some
Packit 31ecd5
  way derived from another. This will allow Cogl to track material
Packit 31ecd5
  ancestries/similarities and reduce the cost of GPU state changes.
Packit 31ecd5
Packit 31ecd5
* cogl_push_draw_buffer, cogl_set_draw_buffer and cogl_pop_draw_buffer are now
Packit 31ecd5
  deprecated and new code should use the cogl_framebuffer_* API instead.
Packit 31ecd5
  Code that previously did:
Packit 31ecd5
    cogl_push_draw_buffer ();
Packit 31ecd5
    cogl_set_draw_buffer (COGL_OFFSCREEN_BUFFER, buffer);
Packit 31ecd5
    /* draw */
Packit 31ecd5
    cogl_pop_draw_buffer ();
Packit 31ecd5
  can now be re-written as:
Packit 31ecd5
    cogl_push_framebuffer (buffer);
Packit 31ecd5
    /* draw */
Packit 31ecd5
    cogl_pop_framebuffer ();
Packit 31ecd5
Packit 31ecd5
* All cogl_<type>_ref() and cogl_<type>_unref() functions have been
Packit 31ecd5
  deprecated, and superceded by cogl_handle_ref() and cogl_handle_unref()
Packit 31ecd5
  respectively.
Packit 31ecd5
Packit 31ecd5
* The cogl_check_extension() function has been deprecated. This function
Packit 31ecd5
  was never meant to be public, since it depends on calling glGetString()
Packit 31ecd5
  before its invocation. Users of this function can be replaced by the
Packit 31ecd5
  equivalent code:
Packit 31ecd5
Packit 31ecd5
    gl_ext = glGetString (GL_EXTENSIONS);
Packit 31ecd5
  - has_ext = cogl_check_extension (ext_name, gl_ext);
Packit 31ecd5
  + has_ext = strstr (gl_ext, ext_name) != NULL ? TRUE : FALSE;
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 1.0
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
* The clutter_actor_set_shader_param() function now takes a
Packit 31ecd5
  GValue, which can be set using the clutter_value_set_shader()
Packit 31ecd5
  family of functions. The floating point wrapper has been
Packit 31ecd5
  rename clutter_actor_set_shader_param_float() to match the newly
Packit 31ecd5
  added clutter_actor_set_shader_param_int().
Packit 31ecd5
Packit 31ecd5
* The Pango renderer API has been exposed as public API, after
Packit 31ecd5
  a full rename from PangoClutter to CoglPango, to avoid namespace
Packit 31ecd5
  collisions with upstream Pango. The Pango font map, renderer and
Packit 31ecd5
  glyph cache can be used by third party code and depend only on
Packit 31ecd5
  COGL.
Packit 31ecd5
Packit 31ecd5
* Both Clutter and COGL only allow including <clutter/clutter.h>
Packit 31ecd5
  and <cogl/cogl.h> directly, respectively. This allows avoiding
Packit 31ecd5
  breaking API every time a type definition is moved across
Packit 31ecd5
  headers, and improves the reliability of third party code against
Packit 31ecd5
  internal refactorings.
Packit 31ecd5
Packit 31ecd5
* COGL has an internal Color type, used to store a color definition
Packit 31ecd5
  that can be efficiently used with the least amount of conversions
Packit 31ecd5
  by both the GL and GLES implementations. The COGL API has been
Packit 31ecd5
  changed to drop the usage of ClutterColor in favour of CoglColor.
Packit 31ecd5
Packit 31ecd5
* The fixed point API implementation Clutter uses internally has been
Packit 31ecd5
  moved from the Clutter namespace to the COGL one.
Packit 31ecd5
Packit 31ecd5
* ClutterLabel and ClutterEntry have been removed from the API, as
Packit 31ecd5
  both have been superceded by the ClutterText actor.
Packit 31ecd5
Packit 31ecd5
* ClutterCloneTexture has been removed from the API; in its place,
Packit 31ecd5
  there is a generic ClutterClone actor which allows to "clone"
Packit 31ecd5
  any existing actors -- even composite ones -- without using
Packit 31ecd5
  frame buffer objects (FBOs).
Packit 31ecd5
Packit 31ecd5
* The ClutterEffectTemplate and clutter_effect_* functions have been
Packit 31ecd5
  superceded by ClutterAnimation and thus removed from the public API.
Packit 31ecd5
Packit 31ecd5
* The ClutterBehaviourBspline has been superceded by the usage of
Packit 31ecd5
  ClutterPath inside ClutterBehaviourPath, and thus removed from the
Packit 31ecd5
  public API.
Packit 31ecd5
Packit 31ecd5
* ClutterColor API has received a much needed review to increase its
Packit 31ecd5
  consistency. This has led to the following changes:
Packit 31ecd5
Packit 31ecd5
    - clutter_color_parse() has been renamed to clutter_color_from_string()
Packit 31ecd5
      and the order of the arguments has been changed
Packit 31ecd5
Packit 31ecd5
    - the factor argument of clutter_color_shade() has been swapped with
Packit 31ecd5
      the return location for the new color
Packit 31ecd5
Packit 31ecd5
    - the fixed point entry points have been removed
Packit 31ecd5
Packit 31ecd5
    - clutter_color_from_hls() and clutter_color_to_hls() do not
Packit 31ecd5
      normalize the values in the [ 0, 255 ] interval but use the
Packit 31ecd5
      correct HLS intervals:
Packit 31ecd5
Packit 31ecd5
         Hue: [ 0, 360 )
Packit 31ecd5
         Luminance: [ 0, 1 ]
Packit 31ecd5
         Saturation: [ 0, 1 ]
Packit 31ecd5
Packit 31ecd5
* The ClutterFixed symbols have been completely removed: fixed-point
Packit 31ecd5
  public entry points now take a CoglFixed.
Packit 31ecd5
Packit 31ecd5
* The -x and -u API have been removed. All the pixel-based API now
Packit 31ecd5
  takes a float to allow sub-pixel precision; this is true also for
Packit 31ecd5
  properties. WARNING: functions with variadic arguments (like
Packit 31ecd5
  g_object_set(), g_object_get() and clutter_actor_animate()) do not
Packit 31ecd5
  behave very well when dealing with integers instead of expected
Packit 31ecd5
  floating point values, and vice versa. On 32bit machines it will
Packit 31ecd5
  most likely lead to a crash. So:
Packit 31ecd5
Packit 31ecd5
    g_object_set (actor, "width", 100, NULL);
Packit 31ecd5
Packit 31ecd5
  is incorrect, and should be changed in:
Packit 31ecd5
Packit 31ecd5
    g_object_set (actor, "width", 100.0, NULL);
Packit 31ecd5
Packit 31ecd5
* Composite actors that do not implement the Container interface
Packit 31ecd5
  should implement the following virtual functions:
Packit 31ecd5
Packit 31ecd5
    - void map   (ClutterActor*)
Packit 31ecd5
    - void unmap (ClutterActor*)
Packit 31ecd5
Packit 31ecd5
  and chain up to the parent's implementation after calling
Packit 31ecd5
  clutter_actor_map() or clutter_actor_unmap() on their children.
Packit 31ecd5
Packit 31ecd5
* Actors implementing the Container interface that have private
Packit 31ecd5
  children that are not meant to be added/removed through the
Packit 31ecd5
  Container API should implement the:
Packit 31ecd5
Packit 31ecd5
    - void foreach_with_internals (ClutterContainer*,
Packit 31ecd5
                                   ClutterCallback,
Packit 31ecd5
                                   gpointer);
Packit 31ecd5
Packit 31ecd5
  virtual function.
Packit 31ecd5
Packit 31ecd5
* Actors that perform direct transformations using the COGL API inside
Packit 31ecd5
  their paint() implementation should override the apply_transform()
Packit 31ecd5
  virtual function instead. Implementations of the apply_transform()
Packit 31ecd5
  vfunc must chain up to the implementation of the parent class.
Packit 31ecd5
Packit 31ecd5
* The ClutterUnit type and the CLUTTER_UNITS_* conversion macros have
Packit 31ecd5
  been removed: all Actors are now using sub-pixel precision directly
Packit 31ecd5
  throughout the API. The new ClutterUnits type has been added as a
Packit 31ecd5
  generic opaque storage for logical distance values.
Packit 31ecd5
Packit 31ecd5
* Timelines are now fully time-based: all the frame-related properties
Packit 31ecd5
  and methods have been removed. ClutterTimeline::new-frame will provide
Packit 31ecd5
  the elapsed milliseconds since the beginning of the Timeline, instead
Packit 31ecd5
  of the current frame number. The clutter_timeline_new() constructor
Packit 31ecd5
  takes the duration of the timeline in milliseconds, and thus it replaces
Packit 31ecd5
  the clutter_timeline_new_for_duration() variant.
Packit 31ecd5
Packit 31ecd5
Cogl API changes for Clutter 1.0
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
* All drawing functions now use a source material to determine how geometry is
Packit 31ecd5
  filled. The source material is set via cogl_set_source. Or the convenience
Packit 31ecd5
  functions cogl_set_source_color and cogl_set_source_texture.
Packit 31ecd5
Packit 31ecd5
  "drawing functions" include: cogl_rectangle, cogl_texture_rectangle,
Packit 31ecd5
  cogl_texture_multiple_rectangles, cogl_texture_polygon (though the
Packit 31ecd5
  cogl_texture_* funcs have been renamed; see below for details),
Packit 31ecd5
  cogl_path_fill/stroke and cogl_vertex_buffer_draw*.
Packit 31ecd5
Packit 31ecd5
  cogl_texture_rectangle, cogl_texture_multiple_rectangles and
Packit 31ecd5
  cogl_texture_polygon no longer take a texture handle; instead the current
Packit 31ecd5
  source material is referenced. The functions have also been renamed to:
Packit 31ecd5
  cogl_rectangle_with_texture_coords, cogl_rectangles_with_texture_coords
Packit 31ecd5
  and cogl_polygon respectively.
Packit 31ecd5
Packit 31ecd5
  Most code that previously did:
Packit 31ecd5
    cogl_texture_rectangle (tex_handle, x, y,...);
Packit 31ecd5
  needs to be changed to now do:
Packit 31ecd5
    cogl_set_source_texture (tex_handle);
Packit 31ecd5
    cogl_rectangle_with_texture_coords (x, y,....);
Packit 31ecd5
Packit 31ecd5
  In the less likely case where you were blending your source texture with a
Packit 31ecd5
  color like:
Packit 31ecd5
    cogl_set_source_color4ub (r,g,b,a); /* (where r,g,b,a isn't just white) */
Packit 31ecd5
    cogl_texture_rectangle (tex_handle, x, y,...);
Packit 31ecd5
  you will need your own material to do that:
Packit 31ecd5
    material = cogl_material_new ();
Packit 31ecd5
    cogl_material_set_color4ub (r,g,b,a);
Packit 31ecd5
    cogl_material_set_layer (material, 0, tex_handle));
Packit 31ecd5
    cogl_set_source_material (material);
Packit 31ecd5
Packit 31ecd5
  Code that uses the texture coordinates, 0, 0, 1, 1 don't need to use
Packit 31ecd5
  cogl_rectangle_with_texture_coords since these are the coordinates that
Packit 31ecd5
  cogl_rectangle will use.
Packit 31ecd5
Packit 31ecd5
  For cogl_texture_polygon; as well as dropping the texture handle, the
Packit 31ecd5
  n_vertices and vertices arguments were transposed for consistency. So
Packit 31ecd5
  code previously written as:
Packit 31ecd5
    cogl_texture_polygon (tex_handle, 3, verts, TRUE);
Packit 31ecd5
  need to be written as:
Packit 31ecd5
    cogl_set_source_texture (tex_handle);
Packit 31ecd5
    cogl_polygon (verts, 3, TRUE);
Packit 31ecd5
Packit 31ecd5
* The arguments to cogl_rectangle, cogl_path_rectangle and
Packit 31ecd5
  cogl_path_round_rectangle have been changed - for consistency - from
Packit 31ecd5
  x, y, width, height, to x1, y1, x2, y2.
Packit 31ecd5
Packit 31ecd5
* A CoglMatrix type and utility API has been added; this is currently used to
Packit 31ecd5
  support describing texture matrices.
Packit 31ecd5
Packit 31ecd5
* cogl_alpha_func has been removed, since this is now controlled using the
Packit 31ecd5
  material API via cogl_material_set_alpha_test_function ()
Packit 31ecd5
Packit 31ecd5
* A Cogl Vertex Buffer API has been added that allows you to efficiently
Packit 31ecd5
  manage arrays of vertex attributes in buffers that may be stored on
Packit 31ecd5
  the GPU. These allow you to avoid the costs of repeatedy validating
Packit 31ecd5
  vertex data and mapping it into the GPU.
Packit 31ecd5
Packit 31ecd5
* cogl_scale now supports scaling on the z axis
Packit 31ecd5
Packit 31ecd5
* cogl_clip_set* and cogl_clip_unset have been renamed to cogl_clip_push and
Packit 31ecd5
  cogl_clip_pop respectively so they self document their stacking semantics.
Packit 31ecd5
Packit 31ecd5
* cogl_paint_init was renamed to cogl_clear and no longer disables lighting and
Packit 31ecd5
  fogging. cogl_clear also now takes a mask of the auxiliary buffers you want
Packit 31ecd5
  to clear so you can avoid redundant clears of buffers you aren't using.
Packit 31ecd5
Packit 31ecd5
* cogl_fog_set was renamed to cogl_set_fog and it now takes a mode argument
Packit 31ecd5
  giving control over the fogging blend factor equation, so that the
Packit 31ecd5
  density argument isn't just ignored. A cogl_disable_fog function was
Packit 31ecd5
  also added.
Packit 31ecd5
Packit 31ecd5
* cogl_get_*_matrix were changed to use the CoglMatrix type instead of
Packit 31ecd5
  GLfloat m[16] arrays.
Packit 31ecd5
Packit 31ecd5
* cogl_offscreen_blit_region, cogl_offscreen_blit were removed since they were
Packit 31ecd5
  only implemnted for GL, not GLES, and it was assumed no one was using them.
Packit 31ecd5
Packit 31ecd5
* cogl_offscreen_new_multisample was removed since it only ever returned
Packit 31ecd5
  COGL_INVALID_HANDLE so it wasn't usefull.
Packit 31ecd5
Packit 31ecd5
* The COGL_MASK_BUFFER type was removed, since there should be nicer ways of
Packit 31ecd5
  exposing color mask if anyone wants it later. It was assumed that no one was
Packit 31ecd5
  using this currently.
Packit 31ecd5
Packit 31ecd5
* COGLenum, COGLint and COGLuint which were simply typedefs for
Packit 31ecd5
  GL{enum,int,uint} have been removed from the API and replaced with
Packit 31ecd5
  specialised enum typedefs, int and unsigned int. These were causing
Packit 31ecd5
  problems for generating bindings and also considered poor style.
Packit 31ecd5
Packit 31ecd5
* The cogl texture filter defines CGL_NEAREST and CGL_LINEAR etc are now
Packit 31ecd5
  replaced by a namespaced typedef 'CoglTextureFilter' so they should be
Packit 31ecd5
  replaced with COGL_TEXTURE_FILTER_NEAREST and COGL_TEXTURE_FILTER_LINEAR etc.
Packit 31ecd5
Packit 31ecd5
* The shader type defines CGL_VERTEX_SHADER and CGL_FRAGMENT_SHADER are handled
Packit 31ecd5
  by a CoglShaderType typedef and should be replaced with
Packit 31ecd5
  COGL_SHADER_TYPE_VERTEX and COGL_SHADER_TYPE_FRAGMENT.
Packit 31ecd5
Packit 31ecd5
* cogl_shader_get_parameteriv has been replaced by cogl_shader_get_type and
Packit 31ecd5
  cogl_shader_is_compiled. More getters can be added later if desired.
Packit 31ecd5
Packit 31ecd5
* cogl_enable_depth_test has been renamed to cogl_set_depth_test_enabled and
Packit 31ecd5
  a corresponding cogl_get_depth_test_enabled function has been added.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 0.8
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
* The COGL GL wrapper API has been completely overhauled and now
Packit 31ecd5
  contains many new features including new greatly improved texture
Packit 31ecd5
  abstractions (slicing, mipmapping, deformations etc, greatly
Packit 31ecd5
  simplifying ClutterTexture), image loading and abstraction, path
Packit 31ecd5
  based primitive drawing, clipping, and improved FBO and shader
Packit 31ecd5
  support. It is now also fully documented.
Packit 31ecd5
Packit 31ecd5
* GL Texture Rectangle ext is no longer used, the regular 2D NPOTS
Packit 31ecd5
  extension is preffered instead but not required.
Packit 31ecd5
Packit 31ecd5
* Clutter now has basic suppport for multiple input devices assuming
Packit 31ecd5
  the backend supports it (currently X11 based via XInput and Fruity
Packit 31ecd5
  backends). New API supporting this includes
Packit 31ecd5
  clutter_event_get_device_id, clutter_get_input_device_for_id,
Packit 31ecd5
  clutter_grab_pointer_for_device & clutter_ungrab_pointer_for_device.
Packit 31ecd5
Packit 31ecd5
  XInput support needs to be explicitly enabled at runtime by calling
Packit 31ecd5
  clutter_x11_enable_xinput () before clutter_init. clutter_x11_has_xinput ()
Packit 31ecd5
  can then be called after to check if XInput extension present and use-able.
Packit 31ecd5
Packit 31ecd5
* The functions that return the transformed position of an actor have
Packit 31ecd5
  been renamed to be more explicit about it:
Packit 31ecd5
Packit 31ecd5
    clutter_actor_get_abs_position - clutter_actor_get_transformed_position
Packit 31ecd5
    clutter_actor_get_abs_size     - clutter_actor_get_transformed_size
Packit 31ecd5
Packit 31ecd5
  Their behaviour has not been changed.
Packit 31ecd5
Packit 31ecd5
* To increase portability, Clutter does not strictly depend on
Packit 31ecd5
  GdkPixbuf anymore; this means that you will have to include
Packit 31ecd5
  <gdk-pixbuf/gdk-pixbuf.h> yourself if you are operating with
Packit 31ecd5
  GdkPixbuf objects and not including that header. The GdkPixbuf-based
Packit 31ecd5
  API has been removed from Clutter core:
Packit 31ecd5
Packit 31ecd5
    clutter_texture_new_from_pixbuf
Packit 31ecd5
    clutter_texture_set_pixbuf
Packit 31ecd5
    clutter_texture_get_pixbuf
Packit 31ecd5
Packit 31ecd5
  are all deprecated functions. It is still possible to load a GdkPixbuf
Packit 31ecd5
  into a ClutterTexture with this sample code:
Packit 31ecd5
Packit 31ecd5
    clutter_texture_set_from_rgb_data (texture,
Packit 31ecd5
                                       gdk_pixbuf_get_pixels (pixbuf),
Packit 31ecd5
                                       gdk_pixbuf_get_has_alpha (pixbuf),
Packit 31ecd5
                                       gdk_pixbuf_get_width (pixbuf),
Packit 31ecd5
                                       gdk_pixbuf_get_height (pixbuf),
Packit 31ecd5
                                       gdk_pixbuf_get_rowstride (pixbuf),
Packit 31ecd5
                                       gdk_pixbuf_get_has_alpha (pixbuf) ? 4
Packit 31ecd5
                                                                         : 3,
Packit 31ecd5
                                       0,
Packit 31ecd5
                                       &error);
Packit 31ecd5
Packit 31ecd5
  ClutterTexture also now has a new filename property and
Packit 31ecd5
  clutter_texture_new_from_file which is intended as an alternate to
Packit 31ecd5
  common previous GdkPixbuf primary usage (i.e loading images from
Packit 31ecd5
  disk).
Packit 31ecd5
Packit 31ecd5
  To read texture data back into a pixbuf or system memory use a combination
Packit 31ecd5
  of clutter_texture_get_cogl_texture & cogl_texture_get_data.
Packit 31ecd5
Packit 31ecd5
  The clutter-gtk integration library has API for using GdkPixbuf with
Packit 31ecd5
  ClutterTextures (among others).
Packit 31ecd5
Packit 31ecd5
  ClutterTexture now supports a keep-aspect property which is set to FALSE
Packit 31ecd5
  by default.
Packit 31ecd5
Packit 31ecd5
* clutter_texture_from_actor will now reparent source actors if they
Packit 31ecd5
  are not parented. This behaviour may change in future releases.
Packit 31ecd5
  There are known not yet fixed issues with source actors that set
Packit 31ecd5
  depth or use clipping.
Packit 31ecd5
Packit 31ecd5
* The size negotiation API has been completely changed in order to allow
Packit 31ecd5
  the creation of non-fixed layout managers. These functions have been
Packit 31ecd5
  removed:
Packit 31ecd5
Packit 31ecd5
    clutter_actor_request_coords()
Packit 31ecd5
    clutter_actor_query_coords()
Packit 31ecd5
Packit 31ecd5
  from the ClutterActor API, as well as their virtual functions inside
Packit 31ecd5
  the ClutterActorClass. The size of an actor is now split into two
Packit 31ecd5
  different concepts: the preferred size (width and height
Packit 31ecd5
  separatedly) and the size that has been allocated by the container
Packit 31ecd5
  to which that actor belongs. Clutter still defaults to the fixed
Packit 31ecd5
  layout management (i.e ClutterGroup) of the actors, but supports
Packit 31ecd5
  fluid layout managers written using the new API.
Packit 31ecd5
Packit 31ecd5
  Composite actors (actors with 'private' children not implementing the
Packit 31ecd5
  container interface) now need to implement an allocate method here pass
Packit 31ecd5
  an allocation to any composite children.
Packit 31ecd5
Packit 31ecd5
* Clutter now depends on PangoCairo for the font rendering. The PangoClutter
Packit 31ecd5
  API is still considered semi-private and no guarantees are made on its
Packit 31ecd5
  stability.
Packit 31ecd5
Packit 31ecd5
* ClutterShader API has been slightly changed: the ClutterStage:bound
Packit 31ecd5
  property, clutter_shader_bind() and clutter_shader_is_bound() have
Packit 31ecd5
  been renamed to :compiled, clutter_shader_compile() and
Packit 31ecd5
  clutter_shader_is_compiled(), respectively. The previously semi-private
Packit 31ecd5
  clutter_shader_release_all() function is now not exported anymore.
Packit 31ecd5
Packit 31ecd5
* ClutterStage is not an abstract type anymore: it can be instantiated
Packit 31ecd5
  using clutter_stage_new() and it can be properly subclassed. If the
Packit 31ecd5
  backend supports multiple stages, every stage will be a new window,
Packit 31ecd5
  whose lifetime will have to be managed by the developer. Clutter will
Packit 31ecd5
  still create the default stage, and guarantees that every call to
Packit 31ecd5
  clutter_stage_get_default() will return exactly the same pointer.
Packit 31ecd5
Packit 31ecd5
* Actors now have a new 'show-on-set-parent' property set to TRUE by
Packit 31ecd5
  default. With this property set to TRUE, actors will automatically
Packit 31ecd5
  have clutter_actor_show() called on them when a parent is set (i.e
Packit 31ecd5
  added to a container).
Packit 31ecd5
Packit 31ecd5
* Clutter now features support for multiple stages assuming supported
Packit 31ecd5
  by the backend. See test-multistage.c for example of usage. This
Packit 31ecd5
  does not change the automatic creation of the default stage.
Packit 31ecd5
  A single GL context is used across all stages meaning GL resources
Packit 31ecd5
  are shared.
Packit 31ecd5
Packit 31ecd5
* There is now an experimental native iPod Touch/iPhone UIKit backend
Packit 31ecd5
  named 'fruity'.
Packit 31ecd5
Packit 31ecd5
* There is now an experimental native Win32 WGL backend.
Packit 31ecd5
Packit 31ecd5
* COGL (and therefor Clutter) now optionally features initial support for
Packit 31ecd5
  OpenGL ES 2.0. It features support for shaders.
Packit 31ecd5
Packit 31ecd5
* Some more focused timeline unit tests have been added and some tweaks to
Packit 31ecd5
  timeline semantics were made; E.g. For a 10 frame timeline here are some
Packit 31ecd5
  points about the semantics:
Packit 31ecd5
  - When you create a timeline it starts with current_frame_num == 0
Packit 31ecd5
  - After starting a timeline, the first timeout is for current_frame_num == 1
Packit 31ecd5
    (Notably it isn't 0 since there is a delay before the first timeout signals
Packit 31ecd5
    so re-asserting the starting frame (0) wouldn't make sense.)
Packit 31ecd5
  - For a non looping timeline the last timeout would be for
Packit 31ecd5
    current_frame_num == 10
Packit 31ecd5
  - For a looping timeline the timeout for current_frame_num == 10 would be
Packit 31ecd5
    followed by a timeout for current_frame_num == 1 and frame 0 is considered
Packit 31ecd5
    == frame 10.
Packit 31ecd5
  - Asking for a timeline of N frames might better be described as asking for
Packit 31ecd5
    a timeline of _length_ N.
Packit 31ecd5
Packit 31ecd5
* The behaviour of clutter_actor_get_opacity() has been slightly changed;
Packit 31ecd5
  instead of returning the composited opacity of the entire parents chain
Packit 31ecd5
  of an actor, clutter_actor_get_opacity() does what you mean, and returns
Packit 31ecd5
  the opacity set with clutter_actor_set_opacity(). The composited
Packit 31ecd5
  opacity value is now returned by clutter_actor_get_paint_opacity().
Packit 31ecd5
Packit 31ecd5
* Until 0.6, clutter_label_get_color() would have returned a ClutterColor
Packit 31ecd5
  with the alpha component equal to the composited opacity of the label.
Packit 31ecd5
  Now, clutter_label_get_color() returns a copy of the exact color set
Packit 31ecd5
  with clutter_label_set_color().
Packit 31ecd5
Packit 31ecd5
* The ClutterEntry actor will automatically handle key events inside
Packit 31ecd5
  a key-press-event handler. This deprecates the usage of
Packit 31ecd5
  clutter_entry_handle_key_event() to update the contents of the
Packit 31ecd5
  entry using the ClutterKeyEvent.
Packit 31ecd5
Packit 31ecd5
* The Clutter X11 and GLX backends feature support for wrapping external
Packit 31ecd5
  X Drawables (such as windows as pixmaps) via the 'texture_from_pixmap' GLX
Packit 31ecd5
  extension if available and fallback to slower XGetImage copies if not.
Packit 31ecd5
Packit 31ecd5
* ClutterContainer can have per child custom properties via ClutterChildMeta.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 0.6
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
* Now that every actor has events, the class signal handlers have been
Packit 31ecd5
  removed from ClutterStageClass and moved into ClutterActorClass.
Packit 31ecd5
Packit 31ecd5
* The CLUTTER_2BUTTON_PRESS and CLUTTER_3BUTTON_PRESS event types have been
Packit 31ecd5
  removed in favour of the ClutterButtonEvent:click_count counter
Packit 31ecd5
Packit 31ecd5
* X11 related called for glx and eglx backends are now shared and moved into
Packit 31ecd5
  a clutter_x11 prefix.
Packit 31ecd5
Packit 31ecd5
* Scaling with gravity functionality was replaced by more generic and
Packit 31ecd5
  powerful anchor point.
Packit 31ecd5
Packit 31ecd5
* The ClutterLayout interface, the ClutterBox and its implementations have
Packit 31ecd5
  been moved outside Clutter core.
Packit 31ecd5
Packit 31ecd5
* The Effects API has been simplified, and it only requires the final value
Packit 31ecd5
  of the effect instead of both the start and end value.
Packit 31ecd5
Packit 31ecd5
* The per-axis rotation API has been deprecated in favour of a single
Packit 31ecd5
  pair of accessors, clutter_actor_set_rotation() and
Packit 31ecd5
  clutter_actor_get_rotation().
Packit 31ecd5
Packit 31ecd5
* Every actor sub-class that is overriding the ClutterActor::request_coords()
Packit 31ecd5
  virtual function *must* chain up to the parent's implementation in order
Packit 31ecd5
  to store the bounding box inside the ClutterActor private data.
Packit 31ecd5
Packit 31ecd5
* It is now impossible to call clutter_actor_destroy() on the stage. Backends
Packit 31ecd5
  will have to unset the CLUTTER_ACTOR_IS_TOPLEVEL private flag to actually
Packit 31ecd5
  destroy the stage.
Packit 31ecd5
Packit 31ecd5
* The default value of the ClutterLabel:wrap property has been changed from
Packit 31ecd5
  TRUE to FALSE.
Packit 31ecd5
Packit 31ecd5
* All the behaviours properties have been renamed to match the $PROPERTY-start
Packit 31ecd5
  and $PROPERTY-end convention.
Packit 31ecd5
Packit 31ecd5
* The clutter_group_add() function has been "undeprecated" and reimplemented
Packit 31ecd5
  as a commodity macro; a clutter_stage_add() commodity macro has also been
Packit 31ecd5
  added. Both macros just safely wrap clutter_container_add_actor().
Packit 31ecd5
Packit 31ecd5
* The ClutterContainer::find_child_by_id() virtual function has been removed;
Packit 31ecd5
  Clutter keeps track of every actor, so there's no need to recurse into
Packit 31ecd5
  containers anymore.
Packit 31ecd5
Packit 31ecd5
* The unused ClutterActor::set_depth() and ClutterActor::get_depth() virtual
Packit 31ecd5
  functions have been removed.
Packit 31ecd5
Packit 31ecd5
* It is now possible to roundtrip the string created by
Packit 31ecd5
  clutter_color_to_string() to clutter_color_parse().
Packit 31ecd5
Packit 31ecd5
* The amount of motion events is now being throttled using the default frame
Packit 31ecd5
  rate setting as the base value to compute the default and maximum frequency
Packit 31ecd5
  of motion events to be delivered to every actor.
Packit 31ecd5
Packit 31ecd5
* ClutterAngle usage has been removed from the public API: it is an internal
Packit 31ecd5
  optimization, which can be used for faster angle computations; users of
Packit 31ecd5
  ClutterAngle now take a fixed point number in form of a ClutterFixed.
Packit 31ecd5
Packit 31ecd5
* ClutterGravity usage when scaling has been superceded by the anchor point.
Packit 31ecd5
Packit 31ecd5
* The precision of the clutter_sqrti() algorithm has been improved for small
Packit 31ecd5
  values.
Packit 31ecd5
Packit 31ecd5
* ClutterBehaviourScale constructor, scale properties and accessors have
Packit 31ecd5
  been changed to accomodate the scaling factors on both the X and Y axis,
Packit 31ecd5
  matching the clutter_actor_set_scale() function. This also changed the
Packit 31ecd5
  clutter_effect_scale() function, which now accepts the final scale
Packit 31ecd5
  factor on both the X and Y axis. The gravity property has also been
Packit 31ecd5
  removed, as it behaved incorrectly with regards to the anchor point. When
Packit 31ecd5
  scaling an actor using a BehaviourScale, the anchor point should be set
Packit 31ecd5
  before applying the behaviour (remember to adjust the positioning as
Packit 31ecd5
  well by factoring in the anchor point).
Packit 31ecd5
Packit 31ecd5
* The clutter_do_event() is now public; it can be used to feed an event to
Packit 31ecd5
  Clutter and let it generate the capture-bubble signal emissions; it should
Packit 31ecd5
  not be used by applications.
Packit 31ecd5
Packit 31ecd5
* In the X11-based backends, the DestroyNotify event is not propagated to
Packit 31ecd5
  Clutter core if the stage is using a foreign window.
Packit 31ecd5
Packit 31ecd5
* To avoid method name collisions between ClutterActor and ClutterEntry
Packit 31ecd5
  in high-level languages, the clutter_entry_set_position() and
Packit 31ecd5
  clutter_entry_get_position() functions have been renamed to
Packit 31ecd5
  clutter_entry_set_cursor_position() and clutter_entry_get_cursor_position()
Packit 31ecd5
  respectively.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 0.4.0
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
* clutter_actor_show_all does not recurse for groups at least (this is to
Packit 31ecd5
  match the original group_show_all behaviour). This is like 0.3 but was
Packit 31ecd5
  never noted.
Packit 31ecd5
Packit 31ecd5
* ClutterBox API has changed: clutter_box_pack_start() and
Packit 31ecd5
  clutter_box_pack_end() have been removed in favour of the clutter_box_pack()
Packit 31ecd5
  API.
Packit 31ecd5
Packit 31ecd5
* Both clutter_threads_enter() and clutter_threads_leave() have been
Packit 31ecd5
  removed from the API, as they just created confusion and the wrong
Packit 31ecd5
  idea that Clutter is either thread-safe or thread-aware. Full
Packit 31ecd5
  thread-awareness is arriving in the next revision (see bug #429).
Packit 31ecd5
Packit 31ecd5
* The ClutterBehaviourRotate and ClutterBehaviourEllsipse APIs have been
Packit 31ecd5
  overhauled.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 0.3.1
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
* clutter_actor_apply_transform_to_point() parameters changed to use
Packit 31ecd5
  ClutterVertices.
Packit 31ecd5
Packit 31ecd5
* New 'Native API' backend expects EGL implementation to provide a
Packit 31ecd5
  CreateNativeWindow() API call.
Packit 31ecd5
Packit 31ecd5
* Exisiting X11 based egl backend public API calls now prefixed eglx.
Packit 31ecd5
Packit 31ecd5
Release Notes for Clutter 0.3
Packit 31ecd5
-------------------------------------------------------------------------------
Packit 31ecd5
Packit 31ecd5
* ClutterTexture changes:
Packit 31ecd5
  + clutter_texture_set_pixbuf() now takes a GError paremeter.
Packit 31ecd5
  + clutter_texture_upload_data has been split into two new and
Packit 31ecd5
    more functional versions; clutter_texture_set_from_rgb_data(),
Packit 31ecd5
    clutter_texture_set_from_yuv_data().
Packit 31ecd5
Packit 31ecd5
* The GLX specific API has been moved to the GLX backend code and
Packit 31ecd5
  it's now under the ClutterGlx namespace.
Packit 31ecd5
Packit 31ecd5
* The priority of the various users of the GLib main loop has been
Packit 31ecd5
  reviewed and changed were necessary. Every paint is queued with a
Packit 31ecd5
  priority of G_PRIORITY_DEFAULT + 10; timelines are allocated with
Packit 31ecd5
  a G_PRIORITY_DEFAULT + 30 priority; events are processed with a
Packit 31ecd5
  G_PRIORITY_DEFAULT priority. This ensures that events are processed
Packit 31ecd5
  before the paints take place.
Packit 31ecd5
Packit 31ecd5
* The ClutterActor::allocate_coords() has been renamed to
Packit 31ecd5
  ClutterActor::query_coords(), in order to clarify its usage.
Packit 31ecd5
Packit 31ecd5
* Actors overriding ClutterActor::request_coords() and
Packit 31ecd5
  ClutterActor::query_coords() must convert sizes obtained from the
Packit 31ecd5
  public API from pixels to ClutterUnits, using the conversion
Packit 31ecd5
  macros found in clutter-units.h. The conversion will be necessary
Packit 31ecd5
  until the public API will switch over to returning the generic
Packit 31ecd5
  units too.
Packit 31ecd5
Packit 31ecd5
* Users of Intel video cards should find that disabling sync-to-vblank
Packit 31ecd5
  is no longer necessary. In case Clutter applications take really
Packit 31ecd5
  long times for redrawing and appear stuck and unresponsive, the
Packit 31ecd5
  sync-to-vblank feature might still be the culprit; in that case, use
Packit 31ecd5
  "export CLUTTER_VBLANK=none" to disable it and file a bug reporting the
Packit 31ecd5
  video card model, the driver version and the X server version.
Packit 31ecd5
Packit 31ecd5
* ClutterTimeline objects now share the same timeout pool (see the
Packit 31ecd5
  ClutterTimeoutPool API). This might cause problems with heavily
Packit 31ecd5
  threaded libraries without integration with the GLib main loop.
Packit 31ecd5
  If an application experiences bad behaviours during animations
Packit 31ecd5
  use "export CLUTTER_TIMELINE=no-pool" to disable the timeout pool.
Packit 31ecd5
Packit 31ecd5
* clutter_color_parse() now handles color definitions with alpha. Alpha
Packit 31ecd5
  will default to fully Opaque rather than fully transparent if not specified.
Packit 31ecd5
Packit 31ecd5
* The Clutter examples/ directory has been removed and replaced with a
Packit 31ecd5
  tests/ directory.
Packit 31ecd5
Packit 31ecd5
* The ClutterEvent API has been changed, and specific functions have been
Packit 31ecd5
  removed in favour of event-agnostic ones.
Packit 31ecd5
Packit 31ecd5
* The ClutterStage::input-event signal has been removed. All the events now
Packit 31ecd5
  emit the ClutterStage::event and ClutterStage::event-after signals, for
Packit 31ecd5
  generic event handling.
Packit 31ecd5
Packit 31ecd5
* Runtime options now dependant on backend.
Packit 31ecd5
Packit 31ecd5
* ClutterGroup API to add, remove and list children has been deprecated in
Packit 31ecd5
  favour of ClutterContainer API. The ClutterGroup::add and
Packit 31ecd5
  ClutterGroup::remove signals have been deprecated:
Packit 31ecd5
  ClutterContainer::actor-added and ClutterContainer::actor-removed should
Packit 31ecd5
  be used instead.