------------------------------------------------------------------------------ Description: Display all the attachments of the current framebuffer object.
| 951 | // Description: |
| 952 | // Display all the attachments of the current framebuffer object. |
| 953 | void vtkOpenGLFramebufferObject::DisplayFrameBufferAttachments() |
| 954 | { |
| 955 | GLint framebufferBinding; |
| 956 | glGetIntegerv(GL_FRAMEBUFFER_BINDING, &framebufferBinding); |
| 957 | vtkOpenGLCheckErrorMacro("after getting FRAMEBUFFER_BINDING"); |
| 958 | if (framebufferBinding == 0) |
| 959 | { |
| 960 | std::cout << "Current framebuffer is bind to the system one" << endl; |
| 961 | } |
| 962 | else |
| 963 | { |
| 964 | std::cout << "Current framebuffer is bind to framebuffer object " << framebufferBinding << endl; |
| 965 | |
| 966 | GLint maxColorAttachments; |
| 967 | glGetIntegerv(GL_MAX_COLOR_ATTACHMENTS, &maxColorAttachments); |
| 968 | vtkOpenGLCheckErrorMacro("after getting MAX_COLOR_ATTACHMENTS"); |
| 969 | int i = 0; |
| 970 | while (i < maxColorAttachments) |
| 971 | { |
| 972 | std::cout << "color attachment " << i << ":" << endl; |
| 973 | this->DisplayFrameBufferAttachment(GL_COLOR_ATTACHMENT0 + i); |
| 974 | ++i; |
| 975 | } |
| 976 | std::cout << "depth attachment :" << endl; |
| 977 | this->DisplayFrameBufferAttachment(GL_DEPTH_ATTACHMENT); |
| 978 | std::cout << "stencil attachment :" << endl; |
| 979 | this->DisplayFrameBufferAttachment(GL_STENCIL_ATTACHMENT); |
| 980 | } |
| 981 | } |
| 982 | |
| 983 | //------------------------------------------------------------------------------ |
| 984 | // Description: |
no test coverage detected