Skip to content
Snippets Groups Projects
Select Git revision
  • 37b596db3747628cc74066bfccca543fb8c7cfb2
  • master default
  • feature_scripts
  • develop
  • feature_without_logging
  • feature_opc_server
  • feature_seperate_apps
  • fix_raspi_cmake
  • ss19 protected
  • ss20
10 results

ModelState.cpp

Blame
  • cube-1.c 393 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);
      glutSolidCube (0.75);
      glFlush ();
      glutSwapBuffers ();
    }
    
    int main (int argc, char **argv)
    {
      init_opengl (&argc, argv, "Cube");
      glutDisplayFunc (draw);
      glutMainLoop ();
      return 0;
    }