Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Color dimmed with texture mapping enabled



> problem because it makes printed text illegible. I can fix this by calling
> glDisable before displaying the text and then calling glEnable again but why
> does this happen and is there a better solution. I'm using glut.

it is a good idea to disable texturing when you haven't set up the current
texture (either with glTexImage2D() or glBindTexture()).

Additionally, the OpenGL texture mode defaults to GL_MODULATE, which
combines (by componentwise multiplication) the current texture (if any)
with your rasterized polygons.

Issue a glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE) to
turn off texture modulation so you can see what textures are being applied
to your geometry behind your back.

=td=




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.