[cairo] glitz

Ignas B. ignohp at gmail.com
Mon Dec 18 07:34:39 PST 2006


Is glitz_set_rectangle the optimum way of drawing a rectangle in terms of
speed.
I tested it against simple gtk rectangle drawing  (with glitz_set_rectangle)
and the results were that the gtk application is
giving slightly faster drawing Could it be true that gtk is as fast as
opengl?
The thing is that its only trying to draw 2d primitive - rectangle. As i
imagine opengl does not give an acceleration for 2D primitives. Am i right?


On 12/18/06, David Reveman <davidr at novell.com> wrote:
> >
> > On Sat, 2006-12-16 at 14:19 +0000, Ignas B. wrote:
> > > Hello,
> > >
> > > is there a way of tweaking OpenGL parameters with glitz. Like turning
> > > on/off the depth testing or lights and so on.
> > > If there is a way, could you give an example. Basically, i just need
> > > to know how to implement
> > > glEnable(SOME_PROPERTY) in glitz.
> >
> > No, glitz requires full control over each context it uses for rendering.
> > If you would be able to modify the context state that would make it very
> >
> > unreliable. If you need to do your own GL rendering, then create your
> > own context. By using the glitz_context_t related functions for this you
> > can do it in window-system independent way and glitz_surfaces_t used for
> >
> > glitz/cairo rendering can the also be used as textures.
> >
> >
> > -David
> >
> >
>
>
> --
> Mane galima pasiekti:
> ignohp at hotmail.com
> ignohp at yahoo.com
> ignohp at gmail.com
> ibudvytis at acm.org
> ibudvytis at gmail.com




-- 
Mane galima pasiekti:
ignohp at hotmail.com
ignohp at yahoo.com
ignohp at gmail.com
ibudvytis at acm.org
ibudvytis at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/cairo/attachments/20061218/0fa422d1/attachment.htm


More information about the cairo mailing list