scg3  0.6
OrthographicCamera.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright 2014 Volker Ahlers
11  *
12  * Licensed under the Apache License, Version 2.0 (the "License");
13  * you may not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  * http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  */
24 
25 #ifndef ORTHOGRAPHICCAMERA_H_
26 #define ORTHOGRAPHICCAMERA_H_
27 
28 #include "scg_glew.h"
29 #include "Camera.h"
30 
31 namespace scg {
32 
33 
47 class OrthographicCamera: public Camera {
48 
49 public:
50 
52 
53  virtual ~OrthographicCamera();
54 
59 
72  void init(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top,
73  GLfloat near, GLfloat far);
74 
79  virtual void updateProjection();
80 
81 protected:
82 
83  GLfloat left_;
84  GLfloat right_;
85  GLfloat bottom_;
86  GLfloat top_;
87  GLfloat near_;
88  GLfloat far_;
89 
90 };
91 
92 
93 } /* namespace scg */
94 
95 #endif /* ORTHOGRAPHICCAMERA_H_ */
A camera with orthographic projection(composite node).
void init(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat near, GLfloat far)
Base class for all cameras (composite node, abstract).
Definition: Camera.h:51
Local header file for GLEW library.
virtual void updateProjection()
static OrthographicCameraSP create()
Base class for all cameras (leaf node, abstract).
Definition: Animation.h:28