MCPcopy Create free account
hub / github.com/Kitware/VTK / GetOpenGLVersion

Method GetOpenGLVersion

Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx:876–889  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

874
875//------------------------------------------------------------------------------
876void vtkOpenGLRenderWindow::GetOpenGLVersion(int& major, int& minor)
877{
878 int glMajorVersion = 2;
879 int glMinorVersion = 0;
880
881 if (this->Initialized)
882 {
883 this->GetState()->vtkglGetIntegerv(GL_MAJOR_VERSION, &glMajorVersion);
884 this->GetState()->vtkglGetIntegerv(GL_MINOR_VERSION, &glMinorVersion);
885 }
886
887 major = glMajorVersion;
888 minor = glMinorVersion;
889}
890
891//------------------------------------------------------------------------------
892bool vtkOpenGLRenderWindow::InitializeFromCurrentContext()

Callers 3

LoadMethod · 0.80
TestWindowBlitsFunction · 0.80
TestVBOPLYMapperFunction · 0.80

Calls 2

vtkglGetIntegervMethod · 0.80
GetStateMethod · 0.45

Tested by 2

TestWindowBlitsFunction · 0.64
TestVBOPLYMapperFunction · 0.64