20 lines
382 B
C++
20 lines
382 B
C++
|
#include <scene/simplescene.h>
|
||
|
|
||
|
#include <camera/perspectivecamera.h>
|
||
|
|
||
|
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
SimpleScene scene;
|
||
|
|
||
|
// Set up the camera
|
||
|
PerspectiveCamera camera;
|
||
|
camera.setFovAngle(90.0f);
|
||
|
camera.setPosition(Vector3d(0.0f, 0.0f, -10.0f));
|
||
|
camera.setForwardDirection(Vector3d(0.0f, 0.0f, 1.0f));
|
||
|
camera.setUpDirection(Vector3d(0.0f, 1.0f, 0.0f));
|
||
|
|
||
|
|
||
|
return 0;
|
||
|
}
|