[osg-users] setTexCoordPointer

2008-02-26 Thread Kremser, Andreas (Praktikant)
hi, 
what does the first parameter=unit in state.setTexCoordPointer mean?
the documentation just tells me its called unit ;)

is this 

glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glTexCoordPointer(2,GL_FLOAT,0,texCoordArray);

the same as

_state.setTexCoordPointer(0,2,GL_FLOAT,0,texCoordArray); 

?

_state is a member variable of ShapeDrawable.

thanks in advance,
andi 
 
***
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und 
loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe 
dieser Mail ist nicht gestattet.
 
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
***
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] setTexCoordPointer

2008-02-26 Thread Paul Martz
 hi,
 what does the first parameter=unit in state.setTexCoordPointer mean?
 the documentation just tells me its called unit ;)

It's the texture unit for multitexturing.

Sounds like you didn't read the OSG Quick Start Guide.
  http://www.lulu.com/content/767629

Hope that helps,

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
303 859 9466

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org