On Mon, 16 Jun 2003, Clemens Eisserer wrote:

> Hi there!
> 
> I want to extend Kaffe (a Java VM) which uses native X-funktions without an
> underlaying toolkit for graphics.
> I want to add support for DGA2, but I didnt find many informations about
> dga2,
> google showed about 10 useless results.
> 
> So, please answer me the following questions:
> 
> 1.) Is it possible to turn an app into dga-mode and then continue with the
> old code
> (same code for drawing, events..)?

    DGA is a full-screen-only mode.  It is not a windowed mode.
The X-server is essentially switched away to another VT when in
DGA mode.  It's more of an svgalib replacement.

> 
> 2.) How fast is it compared to normal xlib?

    Very slow.  It was intended for DOS-like games such as the
original Doom and Quake which rendered in software to the framebuffer.
It requires root permissions in that mode.

> 
> 3.) Where can I fand tutorials and/or code samples?

http://www.xfree86.org/~mvojkovi/texture.tar.gz

   Is an example usage, but I don't recommend using it.
There are usually better ways to do fast software rendering.
Rendering into system memory and using XShmPutImage is frequently
faster on modern systems.


                        Mark.

_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

Reply via email to