Hey there! Sign in to join this conversationNew here? Join for free
    • Thread Starter
    Offline

    16
    ReputationRep:
    #include<gl/glut.h>

    void renderScene(void) {
    glClear(GL_COLOR_BUFFER_BIT);
    glBegin(GL_POLYGON);
    glVertex2f(-0.5, -1.0);
    glVertex2f(-0.5, 1.0);
    glVertex2f(1.0, 0.0);
    glEnd();
    glFlush();
    }

    void main()
    {
    glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA);
    glutInitWindowPosition(100, 100);
    glutCreateWindow("Draw Triangle");
    glutDisplayFunc(renderScene);
    glutMainLoop();
    }




    nevermind.
    Offline

    15
    ReputationRep:
    :zomg:
    Offline

    2
    ReputationRep:
    Hax?
    Offline

    1
    ReputationRep:
    (Original post by Irrelevance)
    Hax?
    hax indeed
    Offline

    4
    ReputationRep:
    No effing way
 
 
 
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

  • Poll
    Would you like to hibernate through the winter months?
    Useful resources
    AtCTs

    Ask the Community Team

    Got a question about the site content or our moderation? Ask here.

    Welcome Lounge

    Welcome Lounge

    We're a friendly bunch. Post here if you're new to TSR.

    Groups associated with this forum:

    View associated groups
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

  • The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

    Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

    Quick reply
    Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.