Re: clutter-list Digest, Vol 10, Issue 6



Hi,
We figured out a way to do all of this.  Subclassing the Image content and actor classes was necessary and when rounded corner property is true, copying the background color to an added alternate background color for rounded corners property and changing the original one to transparent.  That's the only way to avoid executing the code that paints the square background in clutter_actor_paint_node(), which in this case is not wanted since the shape is not rectangular.

On another topic it looks like cogl_set_depth_test_enabled() is deprecated. However the stated replacement, cogl_material_set_depth_test_enabled() does not seem to exist either.  If anybody knows how you're supposed to change the depth test flag, please tell me and it would save me time from more searching.

Thanks.



On Sat, Jul 27, 2013 at 5:00 AM, <clutter-list-request gnome org> wrote:
Send clutter-list mailing list submissions to
        clutter-list gnome org

To subscribe or unsubscribe via the World Wide Web, visit
        https://mail.gnome.org/mailman/listinfo/clutter-list
or, via email, send a message with subject or body 'help' to
        clutter-list-request gnome org

You can reach the person managing the list at
        clutter-list-owner gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of clutter-list digest..."


Today's Topics:

   1. Re: clutter-list Digest, Vol 10, Issue 3 (Reza Ghassemi)
   2. clutter mingw windows (santhosh dhamodharan)


----------------------------------------------------------------------

Message: 1
Date: Fri, 26 Jul 2013 13:28:22 -0700
From: Reza Ghassemi <reza robin1 gmail com>
To: clutter-list gnome org
Subject: Re: clutter-list Digest, Vol 10, Issue 3
Message-ID:
        <CALqyGu7Hfsq_L+WfkQqxcvJMOzEGW+OWhWPCEVa5yxkhNBa7vA mail gmail com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,
We are pursuing using a cogl clip path with cogl_path_round_rectangle to do
the rounded rect shape.  However, after having difficulty combining a
rounded rect effect with a border effect and (our) gradient content and
image content so they all work together we are changing to making a
clutter-actor subclass with a rounded rect property (and other properties
we need) and overridden paint routine.

As an effect the rounded rect, using a clipping region set before the
continue paint routine and popped afterwards, would clip out any children
of the actor that were not in its allocation.  If instead the effect
completely replaced the drawing of the root actor it required having
conditional code for Image content, solid color content, and gradient
content.

The documentation warns against overriding the paint() routine in favor of
paint_node().  But I may have to override paint() to achieve what we need.
 For example image and (our) gradient content draw rectangular areas.  To
avoid overriding paint() the content would have to be made aware of the
shape of the actor since paint_node() is called after content is already
drawn in clutter_actor_paint_node().  It would seem better just to override
paint and do everything there.

Any alternate suggestions would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.gnome.org/archives/clutter-list/attachments/20130726/87a8b872/attachment.html>

------------------------------

Message: 2
Date: Thu, 25 Jul 2013 16:36:27 +0530
From: santhosh dhamodharan <ssanthshtech gmail com>
To: clutter-list gnome org
Subject: clutter mingw windows
Message-ID:
        <CAJVB4xXhBp7T0Sct8Q==Qk+dgQtCg0AqgJKSSEj-ag1g1qUe2Q mail gmail com>
Content-Type: text/plain; charset="iso-8859-1"

hi
    compiled clutter using mingw on windows without errors. after that
trying to run examples in clutter source package. gives error as

(test-state.exe:2996): Clutter-CRITICAL **: Unable to initialize Clutter:
Unable
 to find suitable GL pixel format

help me to solve this error .. thnx in advance..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.gnome.org/archives/clutter-list/attachments/20130725/99bd9cb5/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
clutter-list mailing list
clutter-list gnome org
https://mail.gnome.org/mailman/listinfo/clutter-list


------------------------------

End of clutter-list Digest, Vol 10, Issue 6
*******************************************



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