Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: I dont disable texture

  1. #1
    Intern Newbie
    Join Date
    Sep 2010
    Posts
    36

    I dont disable texture

    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

  2. #2
    Member Regular Contributor
    Join Date
    Oct 2010
    Location
    France
    Posts
    466

    Re: I dont disable texture

    mmmm, not sure to understand what you want...

    maybe something like this:

    Code :
    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();

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Oct 2009
    Posts
    595

    Re: I dont disable texture

    lol, my advice is do some online tuts, then go ask again if you're not coming forward and better in the basics forum.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •