1#include <qapplication.h>
15int main(
int argc,
char** argv)
18 QApplication application(argc,argv);
25 Color( 1.0, 1.0, 1.0 ) );
27 Color( 1.0, 1.0, 1.0 ) );
40 viewer.setWindowTitle(
"Ray-tracer preview");
43 viewer.setScene( scene );
PointVector< Real, 3 > Point3
The type for representing a 3d vector;.
Lights are used to give lights in a scene.
void addObject(GraphicalObject *anObject)
Adds a new object to the scene.
void addLight(Light *aLight)
Adds a new light to the scene.
A sphere is a concrete GraphicalObject that represents a sphere in 3D space.