Messges on the scrren

New Message Reply Date view Thread view Subject view Author view

Kamen Kanev (kamen++at++vsl.co.jp)
Fri, 7 Jun 1996 15:48:01 +0900


What is the suggested way to write messages on top of performer image.
Here is what I've found so far:

/* Draw a message justified wrt to x,y in font of size 'size'.
 * 'just' may be CENTER, LEFT, RIGHT. x, y should range from 0 to 1
 * and 'size' should be SMALL, MED, or BIG.
 * The colors of the message are fixed: purple text with black shadow.
 * This is ageneral and expensive routine and is meant to be used for
 * fairly static messages that only need updating upon a REDRAW event.
 * For messages that need to be
 * updated frequently, a more streamlined routine should be used.
 */
void
pfuDrawMessage(pfChannel *chan, const char *msg,
                int rel, int just, float x, float y, int size, int cimode)

When I use it (messages change each frame) I get considerable flicking.
How can I avoid it or is there any other convenient way to write messages?

Many thanks in advance!
Kamen Kanev

-- 
__________________________________

Kamen Kanev, PhD Senior Researcher

Visual Science Laboratory Awajicho MH Building 2-21 Kanda Awajicho Chiyoda-ku, Tokyo 101 JAPAN

Phone: +81-3-5256-7662 FAX: +81-3-5256-1070

e-mail:kamen++at++vsl.co.jp __________________________________ ======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer.html Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:59 PDT

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