Hi Clutter Team!

(For some reason I can't see the previously sent instance of this mail
on the list, so I am sending it again.)

I have a problem on "clipping" pango_clutter_render_layout() rendered
texts. I need to implement actors in a way they do not require open-gl
clipping since the app I am working on needs to run with Gles<2.0.

In the case of images/textures I can use cogl_texture_rectanlge(). I can
draw a specific part of the image to a specific position with specific
size. Good. I just can not do the same with texts. I am thinking about
rendering text onto a cogl-texture. After that I could use
cogl_texture_rectangle on it. (It would be even more efficient for short
constant texts.)

I have searched google for some possible solution and I have also
studied clutter's PangoRenderer.

As far as I know at this point using Gdk or Xft tools requires to
specify the display/window (even for GdkPixmap). Since the
display/window in the case of clutter is managed by opengl, I am not
sure it is a good idea to try to use xft or gdk text rendering tools.

In the source of PangoRenderer I figured out that the problem might be
solved by implementing a (offscreen) renderer that renders onto a
cogl-texture by using cogl_texture_set_region(). It would be a similar
trick that the glyph-cache uses.

Unfortunately (if I am right) such a renderer implementation needs the
private interface of pango-clutter. Thus I can not do it outside of
clutter without reimplementing or coping the existing pango rendering
related tricks. Do you have any suggestion?

Am I the only one thinking in this way, or may be somebody else also
could use such "offscreen-clutter-pango-renderer"?

Peter
-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to