#ifndef HGL_GRAPH_CAMERA_INCLUDE #define HGL_GRAPH_CAMERA_INCLUDE #include namespace hgl { namespace graph { /* * OpenGL Coordinate System Vulkan Coordinate System My Coordinate System * * /Z * Y| /Z / Z| /Y * | / / | / * | / *------------ | / * | / | X | / * |/ | |/ * *------------ | *------------ * X | Y X */ /** * 摄像机类型 */ enum class CameraType { Perspective, Ortho };//enum class CameraType /** * 摄像机数据结构 */ struct Camera { CameraType type=CameraType::Perspective; float width; ///<视图宽 float height; ///<视图高 float fov=60; ///<水平FOV float znear=-1,zfar=1; ///