Re: setting texture coordinates

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Tue, 27 Feb 1996 17:12:28 -0500


On Feb 27, 1:43pm, AnitaKishore wrote:

> The above works fine if called from DRAW. But if I call the tex coord
updation
> part from the APP, then no change takes palce in the tex coordinates, ie: no
> translation takes place.
> "*gset" has been malloced in the pf shared arena and is a global var.
>
>-- End of excerpt from AnitaKishore

Using a pfCycleBuffer (from pf2.0) for the texture coordinates array would do
exactly what you want. The man pages of pfCycleBuffers provides
some simple examples. Your changes will also be frame accurate in a
multiprocess
environment.

-- 
     ___/     |       ___/ Nicolas Gauvin	   e-mail: nicolas++at++cae.ca
    /       / |      /     Software Developper	   voice: (514) 341-2000 x2275
   /       /  |     __/    CAE Electronics Ltd.    fax:   (514) 340-5496
  /       ___ |    /	   8585 Cote De Liesse, P.O. Box 1800
_____/  _/   _| _____/     Saint-Laurent, Quebec, Canada, H4L-4X4

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:27 PDT

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