I need help! I need someone to help me with a simple C program with OpenGL + GLUT + GL stuff. It has to be before half an hour! (9:00 am CST)

It doesn't show anything on screen! I can't figure out why!

@avalos You're using double buffering. Where you're drawing is not where you're displaying.

Solution: Use glutSwapBuffers(); instead of glFlush(); at the end of the display()

@avalos Or alternatively, simply change
> glutInitDisplayMode (GLUT_DOUBLE
glutInitDisplayMode (GLUT_SINGLE

@niconiconi It worked! The shape is broken because I did it wrong, but at least now it's shown! <3 Thaaaaaanks!

Sign in to participate in the conversation
Mastodon 🐘

Discover & explore Mastodon with no ads and no surveillance. Publish anything you want on Mastodon: links, pictures, text, audio & video.

All on a platform that is community-owned and ad-free.
Hosted by Stuxhost.