/* static */ void UsdMayaGLBatchRenderer::Init() { GlfGlewInit(); GetGlobalRenderer(); }
USDVMP::USDVMP(FnKat::GroupAttribute args) : FnKat::ViewerModifier(args) { TF_DEBUG(KATANA_DEBUG_VMP_USD).Msg("%s @ %p\n", TF_FUNC_NAME().c_str(), this); GlfGlewInit(); }
/* virtual */ void Hdx_UnitTestWindow::OnInitializeGL() { GlfGlewInit(); GlfRegisterDefaultDebugOutputMessageCallback(); GlfContextCaps::InitInstance(); std::cout << glGetString(GL_VENDOR) << "\n"; std::cout << glGetString(GL_RENDERER) << "\n"; std::cout << glGetString(GL_VERSION) << "\n"; // // Create an offscreen draw target which is the same size as this // widget and initialize the unit test with the draw target bound. // _drawTarget = GlfDrawTarget::New(GfVec2i(GetWidth(), GetHeight())); _drawTarget->Bind(); _drawTarget->AddAttachment("color", GL_RGBA, GL_FLOAT, GL_RGBA); _drawTarget->AddAttachment("depth", GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8); _unitTest->InitTest(); _drawTarget->Unbind(); }