void AbstractGLDisplayHelper::initRenderingContext(WorldPtr world) { int height = world->getHeight(); int width = world->getWidth(); int depth = world->getDepth(); int pixelResolution = world->getPixelResolution(); _renderContext = std::make_shared<OpenGLRenderContext>(width, height, depth, pixelResolution); }