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

Method DisplayDrawBuffers

Rendering/OpenGL2/vtkOpenGLFramebufferObject.cxx:1087–1119  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Display the draw buffers.

Source from the content-addressed store, hash-verified

1085// Description:
1086// Display the draw buffers.
1087void vtkOpenGLFramebufferObject::DisplayDrawBuffers()
1088{
1089 GLint ivalue = 1;
1090 glGetIntegerv(GL_MAX_DRAW_BUFFERS, &ivalue);
1091
1092 std::cout << "there ";
1093 if (ivalue == 1)
1094 {
1095 std::cout << "is ";
1096 }
1097 else
1098 {
1099 std::cout << "are ";
1100 }
1101 std::cout << ivalue << " draw buffer";
1102 if (ivalue != 1)
1103 {
1104 std::cout << "s";
1105 }
1106 std::cout << ". " << endl;
1107
1108 GLint i = 0;
1109 int c = ivalue;
1110 while (i < c)
1111 {
1112 glGetIntegerv(GL_DRAW_BUFFER0 + i, &ivalue);
1113
1114 std::cout << "draw buffer[" << i << "]=";
1115 this->DisplayBuffer(ivalue);
1116 std::cout << endl;
1117 ++i;
1118 }
1119}
1120
1121//------------------------------------------------------------------------------
1122// Description:

Callers 1

StartNonOrthoMethod · 0.95

Calls 1

DisplayBufferMethod · 0.95

Tested by

no test coverage detected