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

#define S state0

void
set_ortho (void)
{
  if (S.zoom.active)
    {
      gluOrtho2D (S.zoom.coords[0],
		  S.zoom.coords[1], S.zoom.coords[2], S.zoom.coords[3]);
    }
  else
    {
      gluOrtho2D (S.ortho.min_x, S.ortho.max_x, S.ortho.min_y, S.ortho.max_y);
    }

  return;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.