MCPcopy Create free account
hub / github.com/RenderKit/embree / loadPerspectiveCamera

Method loadPerspectiveCamera

tutorials/common/scenegraph/xml_loader.cpp:835–842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833 }
834
835 Ref<SceneGraph::Node> XMLLoader::loadPerspectiveCamera(const Ref<XML>& xml)
836 {
837 const Vec3fa from = xml->parm_Vec3fa("from");
838 const Vec3fa to = xml->parm_Vec3fa("to");
839 const Vec3fa up = xml->parm_Vec3fa("up");
840 const float fov = xml->parm_float("fov");
841 return new SceneGraph::PerspectiveCameraNode(from,to,up,fov);
842 }
843
844 Ref<SceneGraph::Node> XMLLoader::loadAnimatedPerspectiveCamera(const Ref<XML>& xml)
845 {

Callers

nothing calls this directly

Calls 2

parm_Vec3faMethod · 0.80
parm_floatMethod · 0.80

Tested by

no test coverage detected