| 157 | } |
| 158 | |
| 159 | void vtkRenderbuffer::Resize(unsigned int width, unsigned int height) |
| 160 | { |
| 161 | if (this->Width == width && this->Height == height) |
| 162 | { |
| 163 | return; |
| 164 | } |
| 165 | |
| 166 | if (this->Context && this->Handle) |
| 167 | { |
| 168 | glBindRenderbuffer(GL_RENDERBUFFER, (GLuint)this->Handle); |
| 169 | if (this->Samples) |
| 170 | { |
| 171 | glRenderbufferStorageMultisample( |
| 172 | GL_RENDERBUFFER, this->Samples, (GLenum)this->Format, width, height); |
| 173 | } |
| 174 | else |
| 175 | { |
| 176 | glRenderbufferStorage(GL_RENDERBUFFER, (GLenum)this->Format, width, height); |
| 177 | } |
| 178 | } |
| 179 | this->Width = width; |
| 180 | this->Height = height; |
| 181 | } |
| 182 | |
| 183 | //------------------------------------------------------------------------------ |
| 184 | void vtkRenderbuffer::PrintSelf(ostream& os, vtkIndent indent) |
no outgoing calls