Re: My code doesn't seem to display anything!



Alex Buell wrote:
I've just tried to port a tutorial from Windows to Linux, as part of my
attempt to learn to code OpenGL applications under X11. The code that I
ported is supposed to display a white square and a white triangle, but
all I can see is the black background. Consequently I am somewhat
stumped as to what I am doing wrong. Here's the code (feel free to
flame) Thanks if you can advise me on what I'm screwing up.

freeglut will give a blank screen under Linux if you link to the wrong libraries. Make sure you are not linking with -lGL. freeglut needs (at most): -lm -lglut -lpthread.
.