source: GTP/trunk/Lib/Vis/Preprocessing/src/mixkit/MxCamera.h @ 1097

Revision 1097, 724 bytes checked in by mattausch, 18 years ago (diff)
Line 
1#ifndef MXCAMERA_INCLUDED // -*- C++ -*-
2#define MXCAMERA_INCLUDED
3#if !defined(__GNUC__)
4#  pragma once
5#endif
6
7/************************************************************************
8
9  MxCamera
10
11  Copyright (C) 1998 Michael Garland.  See "COPYING.txt" for details.
12 
13  $Id: MxCamera.h,v 1.1 2002/09/24 16:53:54 wimmer Exp $
14
15 ************************************************************************/
16
17#include "MxGL.h"
18#include "MxGeom3D.h"
19
20class MxCamera
21{
22public:
23
24    double fovy, aspect;
25    double znear, zfar;
26    Vec3 from, at, up;
27
28    void look_at(const MxBounds&, double ratio=1.333333);
29
30    void apply();
31    void apply(GLenum mode);
32};
33
34
35
36// MXCAMERA_INCLUDED
37#endif
Note: See TracBrowser for help on using the repository browser.