From: Brian Furtaw (brian++at++sgi.com)
Date: 09/25/2003 11:17:32
I am not sure about floats but I have never had a problem passing types
other then int into this array you must however cast your image pointer
to a uint * before passing it. Performer must require 4 byte aligned
arrays. I have had good success with passing the OpenGL glTexImage2D
tokens in through appropriate pfTexture functionality. So give it a try.
Brian
Anthony Clare wrote:
> Hi,
>
> I'm trying a simple program to use a texture I have created at runtime
> but I seem to be getting confused by the performer docs. According to
> the docs you can provide a image array as you would for an OpenGL app.
> However, the function prototype is
>
> void pfTexImage ( pfTexture* tex, uint* image, int comp, int ns, int nt,
> int nr );
>
> Does this means that the image must be in unsigned integer format? This
> seems to remove some of the functionality of glTexImagexx(). Surely you
> can provide a GL_FLOAT array etc. or am I reading this all wrong???
>
> Tony.
>
> _________________________________________________
>
> Anthony Clare
> Department of Automatic Control and Systems Engineering
> The University of Sheffield
> www.shef.ac.uk/acse/
> a.j.clare++at++sheffield.ac.uk
> _________________________________________________
> -----------------------------------------------------------------------
> 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
> -----------------------------------------------------------------------
--
----oOOo---- ----oOOo---- ----oOOo---- ----oOOo----
Brian Furtaw (brian++at++sgi.com) Mailstop: DSE-2612
Graphics Guru Office:(301)814.6858 Fax: (253)323-8182
12200-G Plum Orchard Drive OpenGL/OpenGL Performer/Commodity Graphics
Silver Spring, Maryland 20904 Solutions and Integration Services
This archive was generated by hypermail 2b29 : Thu Sep 25 2003 - 11:33:03 PDT