pfuEventQueue(3pf) OpenGL Performer 3.2.2 libpfutil Reference Pages
NAME
pfuNewEventQ, pfuResetEventStream, pfuResetEventQ, pfuAppendEventQStream,
pfuAppendEventQ, pfuEventQStream, pfuGetEventQStream, pfuGetEventQEvents,
pfuIncEventQFrame, pfuEventQFrame, pfuGetEventQFrame,
pfuIncEventStreamFrame, pfuEventStreamFrame, pfuGetEventStreamFrame -
Event queue and event stream management utilities
FUNCTION SPECIFICATION
#include <Performer/pfutil.h>
pfuEventQueue * pfuNewEventQ(pfDataPool *dp, int id);
void pfuResetEventStream(pfuEventStream *es);
void pfuResetEventQ(pfuEventQueue *eq);
void pfuAppendEventQStream(pfuEventQueue *dst,
pfuEventStream *src);
void pfuAppendEventQ(pfuEventQueue *dst,
pfuEventQueue *src);
void pfuEventQStream(pfuEventQueue *eq,
pfuEventStream *es);
pfuEventStream * pfuGetEventQStream(pfuEventQueue *eq);
void pfuGetEventQEvents(pfuEventStream *events,
pfuEventQueue *eq);
void pfuIncEventQFrame(pfuEventQueue *eq);
void pfuEventQFrame(pfuEventQueue *eq, int val);
int pfuGetEventQFrame(pfuEventQueue *eq);
void pfuIncEventStreamFrame(pfuEventStream *es);
void pfuEventStreamFrame(pfuEventStream *es, int val);
int pfuGetEventStreamFrame(pfuEventStream *es);
These functions provide a means to manage streams and queues of X and GL
input events. pfuEventQueues are compressed frames of events.
pfuEventStreams are sequences of events. They offer a way to manipulate
pfuEventQueues.
pfuNewEventQ creates, initializes and returns a new event queue. dp is
the pfDataPool from which memory for the new event queue is allocated. id
is the handle by which the event queue is identified. New memory is
allocated for the event queue only if an event queue with the same id is
not already present in dp.
Page 1
pfuEventQueue(3pf) OpenGL Performer 3.2.2 libpfutil Reference Pages
pfuResetEventStream resets the event stream es to a null event stream.
pfuResetEventQ resets the event stream associated with the event queue
eq.
pfuAppendEventQStream appends the event stream src to the event queue
dst. This is done by copying the events in src to the end of the event
stream associated with dst. pfuAppendEventQ appends the event stream
associated with src to dst.
pfuEventQStream sets the event stream associated with eq to be es.
pfuGetEventQStream returns a pointer to the event stream associated with
eq.
pfuGetEventQEvents copies the event stream associated with src into dst.
pfuIncEventQFrame increments the frame stamp of the event stream
associated with eq by 1 or sets the frame stamp to 0 if it is negative.
pfuEventQFrame sets the frame stamp of the event stream associated with
eq to val. pfuGetEventQFrame returns the frame stamp of the event stream
associated with eq.
pfuIncEventStreamFrame increments the frame stamp of the event stream es
by 1 or sets the frame stamp to 0 if it is negative.
pfuEventStreamFrame sets the frame stamp of the event stream es to val.
pfuGetEventStreamFrame returns the frame stamp of the event stream es.
SEE ALSO
pfDataPool, pfuGUI, pfuInitInput
Page 2