nanogui: Thread: Nano-X offscreen drawing


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Nano-X offscreen drawing
From: "Greg Haerr" ####@####.####
Date: 16 Dec 1999 20:37:49 -0000
Message-Id: <004801bf47f3$c22fc9c0$15320cd0@gregh>

: > Actually, Nano-X doesn't yet support off-screen bitmaps, and thus
: > will never call the GdBitblit function.  Have you added some blitting code?
: >
:
: Yes, experimental, just for testing, but it works.

Cool.  Nano-X needs a GrCopyArea that will work for both copying
screen-to-screen, as well as pixmap(offscreen)-to-screen.  If you've got
that, I'd be happy to add it.  Preferably, the two routines would look like
this:

void
GrCopyArea(GR_DRAWID src,GR_DRAWID dst,GR_COORD src_x,
    GR_COORD src_y,GR_COORD width,GR_COORD height,
    GR_COORD dst_x, GR_COORD dst_y);

and
GR_DRAWID GrCreatePixmap(GR_COORD width,GR_COORD height,
    GR_COORD depth);

GrCreatePixmap alloc's memory much like CreateCompatibleBitmap,
and GsPrepareDrawing returns a psd suitable for drawing on. Currently,
the psd is a global in srvfunc.c.  GrCopyArea ends up calling GdBitBlit.

I'd be happy to make this work if you want to send me your code.  (Along
with a test program would be nice, even if it doesn't work yet)

Regards,

Greg

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.