Re: Deprecated cogl_set_source_color4ub() in pick()



Cogl 2.0 added framebuffer drawing apis that took a pipeline argument like cogl_framebuffer_fill_path(fb, pipeline, path) and cogl_framebuffer_stroke_path(fb, pipeline, path); which removed the dependence on the source stack.

COGL_ENABLE_EXPERIMENTAL_2_0_API had to be defined to expose those apis via cogl-path.h.

I can't quite remember how CoglFramebuffer is exposed within Clutter but guess it would be possible to use those apis to avoid cogl_set_source_color_4ub().

Regards,
- Robert


On Mon, Apr 4, 2016 at 12:59 PM, Jiří Techet <techet gmail com> wrote:

On Sat, Apr 2, 2016 at 6:32 PM, Lionel Landwerlin <llandwerlin gmail com> wrote:
Hi,

I don't think there is a path forward for using the CoglPath API :/
You'll always end up using a deprecated function as far as I can tell.

And is there anything else than CoglPath API? I'd expect that when a function got deprecated it got deprecated in favour of something else. If there's no alternative it shouldn't have been deprecated.

Cheers,

Jiri




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]