stage: Deprecate :use-fog and :fog
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 30 Dec 2011 10:23:15 +0000 (10:23 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 30 Dec 2011 10:26:12 +0000 (10:26 +0000)
commite689d0180056a2b02757c896910ff649187958fd
treef2b7c2ffda0db57f3331f5b0374467330ea2132d
parent65889fa075f6123caf0d47568413466e039b5eef
stage: Deprecate :use-fog and :fog

The depth cueing through GL fog has been broken for a long while, now.

The fog-related API in Clutter is ridiculously limited, and harks back
to simpler times; the ClutterFog structure is not enough to express all
the GL fog machinery, and required application code to connect to the
Stage's paint implementation and drop into Cogl directly.

Additionally, the fixed pipeline fog machinery in GL simply does not
work with premultiplied alpha, unless you use a shader - and in that
case it would only work for textures. Let's deprecate it, and just
don't do anything if somebody has the brilliant idea of setting the
:use-fog property to TRUE.
clutter/clutter-stage.c
clutter/clutter-stage.h
clutter/deprecated/clutter-stage.h