GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: Add Line Numbers


aaa by banshee
while(i <= max_vertices)
    {            
        glTexCoord2f(a,b); glVertex3f(data[i],data[i+1],data[i+2]);    
        i = i + 3;
        
        if (a == 0 && b == 1)
        {
            a = 1;
            b = 0;
        }
        else    
            if (a == 1 && b ==0)
            {
                a = 0;
                b = 0;
            }
            else if (a == 0 && b == 0)
                {
                    a = 0;
                    b = 1;
                }
                
    }