PDA

View Full Version : I dont disable texture



Kal Mar
12-01-2010, 10:34 AM
Hey guys

I textured a cube with textures (1D and 2D), next I want to graphics at scene a single triangle, but I can't apply color3f to triangle.

I disabled a texture 1d and 2d, again continue without applying a color to cone.

What can I do?

Thank, very much

_arts_
12-01-2010, 03:55 PM
mmmm, not sure to understand what you want...

maybe something like this:



glEnable (GL_TEXTURE1D);
// draw objects needing 1D textures
glDisable (GL_TEXTURE1D);

glEnable (GL_TEXTURE2D);
// draw objects needing 2D textures
glDisable (GL_TEXTURE2D);

// draw objects needing no textures
glColor3f (...);
drawTriangle();
glColor3f (...);
drawCone();

ugluk
12-01-2010, 04:49 PM
lol, my advice is do some online tuts, then go ask again if you're not coming forward and better in the basics forum.