Starbase virtual 2

Starbase virtual 2

Post by Yasmi » Tue, 11 Nov 1997 04:00:00



Hello,

    I've asked a question (under the subject: Starbase virtual window)
and I think I didn't explain myself.

    So here goes again:

I want to draw to a virtual window (undisplayed) and then copy from it
to a displayed window (created with gopen). How do I do it in starbase ?

How do I create this window ?
Does an undisplayed window save it's graphic information ?
I don't want to use double buffering.

                                                Thanks,

                                                yasmin

+==================================================================+

|
|Display Engineer       | Phone: +972-3-5312260          | Givat
Shmuel,     |
|Cimatron CAD/CAM | Fax:   +972-3-5312192           | 51905,Israel
|
+==================================================================+

 
 
 

Starbase virtual 2

Post by Bill Morris » Thu, 13 Nov 1997 04:00:00


: I want to draw to a virtual window (undisplayed) and then copy from it
: to a displayed window (created with gopen). How do I do it in starbase ?

: How do I create this window ?
: Does an undisplayed window save it's graphic information ?
: I don't want to use double buffering.

It sounds like you want to use the Starbase memory driver (SMD).
Take a look at chapter 16 in the Starbase techniques manual and
the SMD chapter(s) in the Starbase Device Drivers manuals.

Regards,
--Bill
+-----------------------------------------------------------------------+
| Bill Morrison                     | Hewlett-Packard Company           |

| Phone: (1/770) 795-6304           | 2124 Barrett Park Dr.,  Suite B   |
| FAX  : (1/404) 648-1605 (yes,404) | Kennesaw, GA  30144               |
+-----------------------------------------------------------------------+
"Man shall never reach his full capacity while chained to the earth. We
 must take wing and conquer the heavens."
                                              -- Icarus

 
 
 

1. Starbase virtual window

The problem:
I have a window with fildes=gopen(...)
I want a virtual window that I can draw to, then XOR it to the first
one.

I'm a newbe and I don't know Starbase, but I do know X, so this is what
I did:

 char driver_name[12], *device ;
 int  res, flag1 = ACCELERATED, flag2 = MODEL_XFORM ;

 pix=XCreatePixmap(...)
 device=make_X11_gopen_string(display, pix);
 inquire_device_driver(device, OUTDEV, driver_name, &flag1);
 virt_fildes=gopen(device, OUTDEV, driver_name, flag2);

Now I switch between virt_fildes and fildes, but the drawing is always
done to the original one.
Maybe there's a switch_context or something like that?
Maybe it shouldn't be done with a pixmap ?

                             help ... :(

                                            Thanks,
                                            yasmin

(please e-mail me the answer)

+==================================================================+

|
|Display Engineer       | Phone: +972-3-5312260          | Givat
Shmuel,     |
|Cimatron CAD/CAM | Fax:   +972-3-5312192           | 51905,
Israel       |
+==================================================================+

2. Lack of Resources

3. StarBase Graphics Dump

4. CW Pro1: Where's mine?

5. Starbase

6. NM3 ActiveX control and UI sizing?

7. HPUX 10.20 Starbase Makefile?

8. Req: Can anybody name this font?

9. HPUX 10.20 Question re: Starbase makefile

10. Starbase graphic library documentation

11. starbase error 2050??

12. Looking for starbase.c.h file?

13. Starbase/Pex produce garbled image