MCPcopy Create free account
hub / github.com/ImageEngine/cortex / doConversion

Method doConversion

src/IECoreGL/ToGLCameraConverter.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64IECore::RunTimeTypedPtr ToGLCameraConverter::doConversion( IECore::ConstObjectPtr src, IECore::ConstCompoundObjectPtr operands ) const
65{
66 IECoreScene::ConstCameraPtr camera = boost::static_pointer_cast<const IECoreScene::Camera>( src );
67 return new Camera(
68 Imath::M44f(),
69 camera->getProjection() == "orthographic",
70 camera->getResolution(),
71 camera->frustum(),
72 camera->getClippingPlanes()
73 );
74}

Callers

nothing calls this directly

Calls 2

frustumMethod · 0.80
getResolutionMethod · 0.45

Tested by

no test coverage detected