Looking for XRender examples
Vlad
vladc6 at yahoo.com
Thu Dec 6 10:39:37 PST 2007
--- Carl Worth <cworth at cworth.org> wrote:
> On Thu, 06 Dec 2007 10:44:10 +0000 (GMT), KAMALNEET SINGH wrote:
> > Some notes on xclock's usage of XRender:
> > * Destination surface is created using XftDrawPicture.
> > * Source surface is created using
> > XftDrawSrcPicture. XftDrawSrcPicture uses XCreatePixmap to
> create a
> > 1x1 pixmap and then uses it as a drawable to create a new
> Picture. And
> > then uses XRenderFillRectangle to draw the color onto it.
>
> For an application using XRender "only" you can use
> XRenderCreatePicture instead of relying on the Xft library as well.
>
> As soon as you want to render text through XRender, you will quickly
> find that there's quite a bit of work required to manage everything
> necessary. At that point, you might find it quite helpful to use an
> existing library. Originally, Xft was the recommended library, (and
> should still work fine, of course). But today active development has
> instead moved
I highly recommend Qt for high-performance text and graphics
rendering. Qt has a very intuitive and mature C++ API and bindings for
other languages (Python, Java, Ruby, etc). It is actively developed as
open source software and supported commercially.
http://trolltech.com/products/qt
http://doc.trolltech.com/4.3/index.html
Vlad
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
More information about the xorg
mailing list