Re: [info-performer] pfTexture TextureSize

Date view Thread view Subject view Author view

From: Stace Peterson (stacep++at++sgi.com)
Date: 11/29/2004 18:26:04


Denis,

Although it is slightly unintuitive, the function you want is
pfTexture::getImage() (or pfGetTexImage() with the C API). The
declaration looks like this:

pfTexture::getImage(uint **image, int *comp, int *ns,
    int *nt, int *nr);

Where comp is number of components (e.g., 3 for an RGB image), and ns,
nt, nr are the size of the image in x, y, and z directions. If you pass
NULL for any parameter, it will ignore returning that value.

Hope this helps,
Stace

Denis Mohnhaupt wrote:
>
> Hi, i loaded an RGB-File into a pfTexture Object.
> How can I determine the texture's x- and y-dimensions in pixels?
> None of the pfTexture-methods seemed appropiate...
>
> Thanks in advance
> Denis
>
> --
> NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
> GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------

-- 
------------------------------------------------------------------
Stace Peterson                                      stacep++at++sgi.com
Silicon Graphics, Inc.                              (650) 933-2323


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Nov 29 2004 - 18:26:12 PST