All pastes #829913 Raw Edit

Untitled

public text v1 · immutable
#829913 ·published 2007-12-23 16:16 UTC
rendered paste body
    void Draw()
    {

        glTranslatef( -(A.XY.X + B.XY.X + C.XY.X)/3 , -(A.XY.Y + B.XY.Y + C.XY.Y)/3 , 0 );
        glRotatef(Angle,0.0f ,0.0f ,1.0f);
        //glTranslatef( (A.XY.X + B.XY.X + C.XY.X)/3 , (A.XY.Y + B.XY.Y + C.XY.Y)/3 , 0 );
        
        //Draws triangle on screen
        glBegin (GL_TRIANGLES);
        glColor3f (A.RGB.R , A.RGB.G, A.RGB.B);   
        glVertex2f ( A.XY.X + DisXY.X, A.XY.Y + DisXY.Y);
        glColor3f (B.RGB.R , B.RGB.G, B.RGB.B);   
        glVertex2f ( B.XY.X + DisXY.X, B.XY.Y + DisXY.Y);
        glColor3f (C.RGB.R , C.RGB.G, C.RGB.B);   
        glVertex2f ( C.XY.X + DisXY.X, C.XY.Y + DisXY.Y);
        glEnd (); 
    }