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

Method Resize

Rendering/OpenGL2/vtkRenderbuffer.cxx:159–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void 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//------------------------------------------------------------------------------
184void vtkRenderbuffer::PrintSelf(ostream& os, vtkIndent indent)

Callers 15

InitializeMethod · 0.45
InitOpenGLResourcesMethod · 0.45
ReadPixelsMethod · 0.45
GetZbufferDataMethod · 0.45
CreateFramebuffersMethod · 0.45
RenderMethod · 0.45
RenderMethod · 0.45
RenderMethod · 0.45
RenderMethod · 0.45
RenderMethod · 0.45
RenderMethod · 0.45

Calls

no outgoing calls

Tested by 4

ExecuteMethod · 0.36
ExecuteMethod · 0.36
MakePolyLineSourceFunction · 0.36
MakePolyLineSourceFunction · 0.36