Immutable camera and viewport facts used to resolve one 3D draw list. Projection uses the engine's RH, zero-to-one depth, Vulkan Y-down convention and backends adapt these shared clip coordinates at submission. 更多...
#include <PrimitiveTypes.h>
Public 成员函数 | |
| void | validate () const |
| Validates viewport and clip-plane values. | |
Public 属性 | |
| glm::mat4 | view {1.f} |
| glm::mat4 | projection {1.f} |
| glm::vec3 | cameraPosition {0.f} |
| glm::ivec2 | viewportSize {0} |
| float | nearPlane = 0.1f |
| float | farPlane = 1000.f |
详细描述
Immutable camera and viewport facts used to resolve one 3D draw list. Projection uses the engine's RH, zero-to-one depth, Vulkan Y-down convention and backends adapt these shared clip coordinates at submission.
在文件 PrimitiveTypes.h 第 98 行定义.
成员函数说明
◆ validate()
| void eve::graphics::SceneDrawContext::validate | ( | ) | const |
Validates viewport and clip-plane values.
在文件 PrimitiveTypes.cpp 第 61 行定义.
引用了 EV_PARAM_CHECK, farPlane, nearPlane , 以及 viewportSize.
被这些函数引用 eve::graphics::PrimitiveSceneCanvas3D::PrimitiveSceneCanvas3D() , 以及 eve::graphics::resolvePrimitiveStrokes3D().
类成员变量说明
◆ cameraPosition
| glm::vec3 eve::graphics::SceneDrawContext::cameraPosition {0.f} |
在文件 PrimitiveTypes.h 第 101 行定义.
◆ farPlane
| float eve::graphics::SceneDrawContext::farPlane = 1000.f |
在文件 PrimitiveTypes.h 第 104 行定义.
被这些函数引用 validate().
◆ nearPlane
| float eve::graphics::SceneDrawContext::nearPlane = 0.1f |
在文件 PrimitiveTypes.h 第 103 行定义.
被这些函数引用 eve::graphics::PrimitiveSceneCanvas3D::drawPoint() , 以及 validate().
◆ projection
| glm::mat4 eve::graphics::SceneDrawContext::projection {1.f} |
在文件 PrimitiveTypes.h 第 100 行定义.
被这些函数引用 eve::graphics::PrimitiveSceneCanvas3D::drawSphere().
◆ view
| glm::mat4 eve::graphics::SceneDrawContext::view {1.f} |
◆ viewportSize
| glm::ivec2 eve::graphics::SceneDrawContext::viewportSize {0} |
该结构体的文档由以下文件生成:
- src/modules/graphics/PrimitiveTypes.h
- src/modules/graphics/PrimitiveTypes.cpp