Turn on thread page Beta
    • 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

    17
    ReputationRep:
    :zomg:
    Offline

    15
    ReputationRep:
    Hax?
    Offline

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

    18
    ReputationRep:
    No effing way
 
 
 

2,903

students online now

800,000+

Exam discussions

Find your exam discussion here

Poll
Should predicted grades be removed from the uni application process
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

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

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