scene3d.h
来自「This contains Graphic gems code」· C头文件 代码 · 共 35 行
H
35 行
/************************************************************************* ** CLASS: Scene3D ** AUTHOR: Jean-Francois DOUE ** LAST MODIFICATION: 12 Oct 1993 ** ** This class implements a 3D scene. ** The scene is composed of a camera, a collection of light sources ** and a collection of primitives to render. ** The scene is capable of ray-tracing itself. ** Scenes are typically parsed from a text file description. (see the ** README file for a description of the format). ** *************************************************************************/#include "Camera.h"#include "Light.h"#include "Primitive.h"class Scene3D{protected: Camera *camera; // a camera Light **lList; // a list of point lights Primitive **pList; // a list of primitives int lightN, // number of light sources in the list primitiveN; // number of primitives in the scenepublic: Scene3D(); ~Scene3D(); char* rayTrace(vec2 res); // friends friend istream& operator >> (istream& s, Scene3D& a);};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?