pgl
PrimitiveOpenGL3Dprimitivelibrary
Public Member Functions | Public Attributes | List of all members
pgl::Camera Class Reference

Defines camera position and frustum. More...

#include <pgl.h>

Collaboration diagram for pgl::Camera:
Collaboration graph
[legend]

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.
 
Scenescene
 Scene to draw.
 
double fovy
 Vertical field of view.
 

Detailed Description

Defines camera position and frustum.

Constructor & Destructor Documentation

◆ Camera()

pgl::Camera::Camera ( Scene _scene,
double  _fovy = 0.92 
)
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.


The documentation for this class was generated from the following file: