Home
last modified time | relevance | path

Searched refs:ortho (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_loader.cpp1667 …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 Dgltf2_exporter.cpp492 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 Dgltf2_data_structures.h660 } ortho; in CORE3D_BEGIN_NAMESPACE() member
H A Dgltf2_importer.cpp1895 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()