Performer event handling, Image loading..

New Message Reply Date view Thread view Subject view Author view

From: Bryan Housel (bryan++at++DRAWCOMP.COM)
Date: 02/29/2000 08:54:29


This message has 2 questions:

First, I have a question about the way that Performer handles events..
We are trying to implement a browser plugin version of our software that
uses an X window created by Netscape to draw into.. I added the
following to the InitPipe() function in perfly:
   pw->setWSWindow((pfWSConnection)display, (pfWSWindow)window);
   pw->setSize(width, height);

This effectively uses the Netscape window for drawing..
(kind of cool.. see http://www.openworlds.com/images/plugin.jpg)
However we are unable to process any events (Keyboard, Mouse, Expose,
etc), even after calling:
   pfuInitInput(ViewState->masterChan->getPWin(), ViewState->input);

So I took a look at the libpfutil code (input.c), and it is using
XEventsQueued() and XNextEvent() to get the events.. It looks like the
events aren't properly queued...

However, I was able to call XtAddRawEventHandler() to register a
callback that prints a message whenever events occur.. All of the normal
events are occuring as expected.. Any ideas why I can register a
callback to receive events, but Performer's XEventsQueued() and
XNextEvent() calls don't work?

Second question: We have been working on a Linux VRML loader..
Currently it is working well, but only handles properly sized rgb
textures... I am looking for examples on how to decode and scale
images.. Our IRIX version uses IFL/IL, but I am looking to move to a
more portable solution... (Anyone interested in the Linux VRML loader,
email me privately)..

Thanks in advance!
Bryan

-- 
DRaW Computing Associates, Inc.    http://www.drawcomp.com
OpenWorlds VRML C++ toolkit        http://www.openworlds.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 08:58:54 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.