#include <windows.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "camera.h"

void Camera::use ()
{
	if (directional)
		gluLookAt (	pos[0], pos[1], pos[2],
					pos[0]+tgt[0], pos[1]+tgt[1], pos[2]+tgt[2],
					0, 1, 0 );
	else
		gluLookAt (	pos[0], pos[1], pos[2],
					tgt[0], tgt[1], tgt[2],
					0, 1, 0 );
}