#ifndef HGL_GRAPH_CAMERA_INCLUDE #define HGL_GRAPH_CAMERA_INCLUDE #include namespace hgl { namespace graph { enum class CameraType { Perspective, Ortho };// /** * 摄像机数据结构 */ struct Camera { CameraType type=CameraType::Perspective; float width; ///<视图宽 float height; ///<视图高 float fov=60; ///<水平FOV float znear=0,zfar=1000; ///