|
pgl
PrimitiveOpenGL3Dprimitivelibrary
|
Defines camera position and frustum. More...
#include <pgl.h>

Public Member Functions | |
| Camera (Scene *_scene, double _fovy=0.92) | |
| Specifies the Scene to draw, as well as the vertical field of view. More... | |
| void | draw () |
| Draw Scene from this camera's perspective. | |
Public Attributes | |
| Transform | transform |
| Camera position. | |
| Scene * | scene |
| Scene to draw. | |
| double | fovy |
| Vertical field of view. | |
Defines camera position and frustum.
|
inline |
Specifies the Scene to draw, as well as the vertical field of view.
By default, sets field of view such that an object of size X fills the vertical field at distance X.
1.8.13