2011-02-22 12:42:55 +00:00
|
|
|
/*
|
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,
|
2010-02-12 13:34:04 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
*/
|
2011-02-22 12:42:55 +00:00
|
|
|
|
|
|
|
/** \file RAS_CameraData.h
|
|
|
|
* \ingroup bgerast
|
|
|
|
*/
|
|
|
|
|
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,
|
2011-09-03 02:15:49 +00:00
|
|
|
float focallength = 3.0, bool viewport = false, int viewportleft = 0, int viewportbottom = 0,
|
|
|
|
int viewportright = 0, int viewporttop = 0) :
|
|
|
|
m_lens(lens),
|
|
|
|
m_scale(scale),
|
|
|
|
m_clipstart(clipstart),
|
|
|
|
m_clipend(clipend),
|
|
|
|
m_perspective(perspective),
|
|
|
|
m_viewport(viewport),
|
|
|
|
m_viewportleft(viewportleft),
|
|
|
|
m_viewportbottom(viewportbottom),
|
|
|
|
m_viewportright(viewportright),
|
|
|
|
m_viewporttop(viewporttop),
|
|
|
|
m_focallength(focallength)
|
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
|
|
|
|