Hi,
I'm using vertex arrays to draw my scene, but the texture is displayed in a
shade of pink!
what should glColor3f be set to before calling glTextureCoordsPointer?
Regards
Michael
PS is it nessesary to call glDisableClientState( xx ) on all the unused
vertex arrays or can they be considered disbled on startup??
|
|
0
|
|
|
|
Reply
|
Michael
|
10/15/2004 10:40:43 AM |
|
Michael wrote:
> Hi,
> I'm using vertex arrays to draw my scene, but the texture is displayed in a
> shade of pink!
>
> what should glColor3f be set to before calling glTextureCoordsPointer?
>
Whatever color you want to color the texture with.
(1,1,1) is white and doesn't color it at all.
> PS is it nessesary to call glDisableClientState( xx ) on all the unused
> vertex arrays or can they be considered disbled on startup??
>
When your programs get bigger then 20 lines and have
many different drawing functions then it's best to
know for sure the state of your arrays, not rely on
"startup" or anything else.
--
<\___/> For email, remove my socks.
/ O O \
\_____/ FTB. The Cheat is not dead!
|
|
0
|
|
|
|
Reply
|
fungus
|
10/15/2004 11:22:54 AM
|
|