Skyscraper
2.0
src
sbs
cameratexture.h
Go to the documentation of this file.
1
/*
2
Scalable Building Simulator - Camera Texture Object
3
The Skyscraper Project - Version 2.0
4
Copyright (C)2004-2024 Ryan Thoryk
5
https://www.skyscrapersim.net
6
https://sourceforge.net/projects/skyscraper/
7
Contact - ryan@skyscrapersim.net
8
9
This program is free software; you can redistribute it and/or
10
modify it under the terms of the GNU General Public License
11
as published by the Free Software Foundation; either version 2
12
of the License, or (at your option) any later version.
13
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
18
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
*/
23
24
#ifndef _SBS_CAMERATEXTURE_H
25
#define _SBS_CAMERATEXTURE_H
26
27
namespace
SBS
{
28
29
class
SBSIMPEXP
CameraTexture
:
public
Object
30
{
31
public
:
32
33
//functions
34
CameraTexture
(
Object
*parent,
const
std::string &name,
int
quality,
Real
fov,
const
Vector3
&position,
bool
use_rotation,
const
Vector3
&rotation,
bool
permanent =
false
);
35
~CameraTexture
();
36
void
Enabled(
bool
value);
37
bool
IsEnabled();
38
void
SetFOVAngle(
Real
angle);
39
Real
GetFOVAngle();
40
void
SetToDefaultFOV();
41
void
LookAt(
const
Vector3
&position);
42
void
EnableOrthographic(
bool
value);
43
void
GetImage(Ogre::Image &image);
44
void
SetZoom(
Real
value);
45
Real
GetZoom();
46
47
private
:
48
49
float
FOV
;
50
bool
ortho
;
51
52
Ogre::Camera *
camera
;
53
std::string
texturename
;
54
Ogre::RenderTexture *
renderTexture
;
55
Ogre::TexturePtr
texture
;
56
57
Real
zoom
;
58
};
59
60
}
61
62
#endif
SBS::CameraTexture
Definition
cameratexture.h:30
SBS::CameraTexture::renderTexture
Ogre::RenderTexture * renderTexture
Definition
cameratexture.h:54
SBS::CameraTexture::texturename
std::string texturename
Definition
cameratexture.h:53
SBS::CameraTexture::texture
Ogre::TexturePtr texture
Definition
cameratexture.h:55
SBS::CameraTexture::zoom
Real zoom
Definition
cameratexture.h:57
SBS::CameraTexture::FOV
float FOV
Definition
cameratexture.h:49
SBS::CameraTexture::ortho
bool ortho
Definition
cameratexture.h:50
SBS::CameraTexture::camera
Ogre::Camera * camera
Definition
cameratexture.h:52
SBS::Object
Definition
object.h:56
Vector3
Ogre::Vector3 Vector3
Definition
globals.h:58
Real
Ogre::Real Real
Definition
globals.h:57
SBSIMPEXP
#define SBSIMPEXP
Definition
globals.h:53
SBS
Definition
skyscraper.h:45
Generated by
1.11.0