2002-10-12 11:37:38 +00:00
|
|
|
/**
|
|
|
|
* $Id$
|
|
|
|
*
|
2008-04-16 22:40:48 +00:00
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
2008-04-16 22:40:48 +00:00
|
|
|
* of the License, or (at your option) any later version.
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* The Original Code is: all of this file.
|
|
|
|
*
|
|
|
|
* Contributor(s): none yet.
|
|
|
|
*
|
2008-04-16 22:40:48 +00:00
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
|
|
|
#ifndef __RAS_CAMERADATA_H
|
|
|
|
#define __RAS_CAMERADATA_H
|
|
|
|
|
|
|
|
struct RAS_CameraData
|
|
|
|
{
|
|
|
|
float m_lens;
|
2009-04-26 12:23:30 +00:00
|
|
|
float m_scale;
|
2002-10-12 11:37:38 +00:00
|
|
|
float m_clipstart;
|
|
|
|
float m_clipend;
|
2004-04-11 02:50:02 +00:00
|
|
|
bool m_perspective;
|
2006-01-06 03:46:54 +00:00
|
|
|
bool m_viewport;
|
|
|
|
int m_viewportleft;
|
|
|
|
int m_viewportbottom;
|
|
|
|
int m_viewportright;
|
|
|
|
int m_viewporttop;
|
2008-05-24 08:34:04 +00:00
|
|
|
float m_focallength;
|
2006-01-06 03:46:54 +00:00
|
|
|
|
2009-04-26 12:23:30 +00:00
|
|
|
RAS_CameraData(float lens = 35.0, float scale = 6.0, float clipstart = 0.1, float clipend = 5000.0, bool perspective = true,
|
2009-12-29 15:47:20 +00:00
|
|
|
float focallength = 3.0, bool viewport = false, int viewportleft = 0, int viewportbottom = 0,
|
2008-05-24 08:34:04 +00:00
|
|
|
int viewportright = 0, int viewporttop = 0) :
|
2004-04-11 02:50:02 +00:00
|
|
|
m_lens(lens),
|
2009-04-26 12:23:30 +00:00
|
|
|
m_scale(scale),
|
2004-04-11 02:50:02 +00:00
|
|
|
m_clipstart(clipstart),
|
|
|
|
m_clipend(clipend),
|
2006-01-06 03:46:54 +00:00
|
|
|
m_perspective(perspective),
|
2009-12-29 15:47:20 +00:00
|
|
|
m_focallength(focallength),
|
2006-01-06 03:46:54 +00:00
|
|
|
m_viewport(viewport),
|
|
|
|
m_viewportleft(viewportleft),
|
|
|
|
m_viewportbottom(viewportbottom),
|
|
|
|
m_viewportright(viewportright),
|
2009-12-29 15:47:20 +00:00
|
|
|
m_viewporttop(viewporttop)
|
2004-04-11 02:50:02 +00:00
|
|
|
{
|
|
|
|
}
|
2002-10-12 11:37:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__RAS_CAMERADATA_H
|
2002-10-30 02:07:20 +00:00
|
|
|
|