summaryrefslogtreecommitdiffstats
path: root/src/controller/callbacks/display.c (plain)
blob: bee3286e7f24bafeca3be4eea0f789fa03a0910f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "display.h"
#include "../../view/geometry.h"
#include "../actions/set_ortho.h"
#include <GL/glut.h>

void
display (void)
{
  glMatrixMode (GL_PROJECTION);
  glLoadIdentity ();
  set_ortho ();

  glMatrixMode (GL_MODELVIEW);
  glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  geometry (GL_RENDER);
  glutSwapBuffers ();

  return;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.