⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scene3d.h

📁 This contains Graphic gems code
💻 H
字号:
/*************************************************************************									** 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -