Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • backtracking
  • vis
  • pure_wfc
  • plain_sudoku
5 results

window.cpp

Blame
  • cube-2.c 429 B
    #include <GL/gl.h>
    #include <GL/glu.h>
    #include <GL/glut.h>
    #include "opengl-magic.h"
    
    void draw (void)
    {
      glClear (GL_COLOR_BUFFER_BIT + GL_DEPTH_BUFFER_BIT);
      set_material_color (1.0, 0.7, 0.0);
      glRotatef (-30.0, 0.5, 1.0, 0.0);
      glutSolidCube (0.75);
      glFlush ();
      glutSwapBuffers ();
    }
    
    int main (int argc, char **argv)
    {
      init_opengl (&argc, argv, "Cube");
      glutDisplayFunc (draw);
      glutMainLoop ();
      return 0;
    }