MCPcopy Create free account
hub / github.com/RenderKit/ospray / SetUp

Method SetUp

apps/ospTestSuite/test_interpolation.cpp:45–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void Interpolation::SetUp()
46{
47 Base::SetUp();
48
49 framebuffer =
50 cpp::FrameBuffer(imgSize.x, imgSize.y, frameBufferFormat, idBuffer);
51
52 instances.clear();
53
54 auto builder = ospray::testing::newBuilder("interpolation");
55 ospray::testing::setParam(builder, "rendererType", rendererType);
56 ospray::testing::setParam(builder, "useSubd", useSubd);
57 ospray::testing::setParam(builder, "attribute", attribute);
58 ospray::testing::setParam(builder, "interpolation", interpolation);
59 ospray::testing::commit(builder);
60
61 world = ospray::testing::buildWorld(builder);
62 ospray::testing::release(builder);
63}
64
65inline uint8_t to_uc(const float f)
66{

Callers

nothing calls this directly

Calls 7

newBuilderFunction · 0.85
setParamFunction · 0.85
buildWorldFunction · 0.85
FrameBufferClass · 0.50
commitFunction · 0.50
releaseFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected