Searched refs:ortho (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/ |
H A D | gltf2_loader.cpp | 1667 …Orthographic(LoadResult& loadResult, const json::value& jsonData, Camera::Attributes::Ortho& ortho) in PrimitiveAttributes() argument 1669 if (!ParseOptionalNumber<float>(loadResult, ortho.xmag, jsonData, "xmag", 0)) { // required in PrimitiveAttributes() 1672 if (!ParseOptionalNumber<float>(loadResult, ortho.ymag, jsonData, "ymag", 0)) { // required in PrimitiveAttributes() 1675 if (!ParseOptionalNumber<float>(loadResult, ortho.zfar, jsonData, "zfar", -1.f)) { // required in PrimitiveAttributes() 1678 if (!ParseOptionalNumber<float>(loadResult, ortho.znear, jsonData, "znear", -1.f)) { // required in PrimitiveAttributes() 1681 if (ortho.zfar < 0 || ortho.znear < 0 || ortho.xmag == 0 || ortho.ymag == 0) { in PrimitiveAttributes() 1718 return CameraOrthographic(loadResult, orthographic, camera->attributes.ortho); in PrimitiveAttributes()
|
H A D | gltf2_exporter.cpp | 492 exportCamera->attributes.ortho.xmag = cameraComponent.xMag; in ExportGltfCameras() 493 exportCamera->attributes.ortho.ymag = cameraComponent.yMag; in ExportGltfCameras() 494 exportCamera->attributes.ortho.zfar = cameraComponent.zFar; in ExportGltfCameras() 495 exportCamera->attributes.ortho.znear = cameraComponent.zNear; in ExportGltfCameras() 1496 jsonOrthographic["xmag"] = json::value { camera->attributes.ortho.xmag }; in ExportCameras() 1497 jsonOrthographic["ymag"] = json::value { camera->attributes.ortho.ymag }; in ExportCameras() 1498 jsonOrthographic["zfar"] = camera->attributes.ortho.zfar; in ExportCameras() 1499 jsonOrthographic["znear"] = camera->attributes.ortho.znear; in ExportCameras()
|
H A D | gltf2_data_structures.h | 660 } ortho; in CORE3D_BEGIN_NAMESPACE() member
|
H A D | gltf2_importer.cpp | 1895 component->xMag = node.camera->attributes.ortho.xmag; in CreateCamera() 1896 component->yMag = node.camera->attributes.ortho.ymag; in CreateCamera() 1897 component->zFar = node.camera->attributes.ortho.zfar; in CreateCamera() 1898 component->zNear = node.camera->attributes.ortho.znear; in CreateCamera()
|