Re: [info-performer] glTexImage1D

Date view Thread view Subject view Author view

From: Paolo Farinelli (paolo++at++sgi.com)
Date: 07/24/2003 19:06:35


Hi Bram,

I just had a quick look at the source, and it seems that Performer
should support 1D textures without particular efforts on your part.

Simply set image size accordingly (through pfTexture::setImage),
and it should all work. Note however that you will still have to
provide an array of pfVec2s for your texture coordinates.. the
second float in each vec2 should have no effect (but try setting it
to 0.0 to avoid surprises).

If things don't work as I described, please let me know and I will
take a closer look at it.

Hope this helps,
Regards,
Paolo

Bram Stolk wrote:

>Hello people,
>
>
>Does Performer feature 1D textures, as OpenGL does via glTexImage1D ?
>I could not find any references to 1D pf textures, other these two:
>
>one at Fraunhofer:
>http://www.avango.de/documentation/doxygen/texture1d.inc/html/classpf1DTexGeoState.html
>It looks like they extended performer themselves to include 1D textures?
>
>The other reference was one regarding pfVolFog.
>
>Thanks,
>
> Bram
>
>
>

-- 
Paolo Farinelli                                           paolo++at++sgi.com
Member of Technical Staff, OpenGL Performer              1-650-933-1808
Silicon Graphics        1600 Amphitheatre Pkwy, Mountain View, CA 94043


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jul 24 2003 - 19:06:47 PDT