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

Method vtkglColorMask

Rendering/OpenGL2/vtkOpenGLState.cxx:418–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418void vtkOpenGLState::vtkglColorMask(GLboolean r, GLboolean g, GLboolean b, GLboolean a)
419{
420 vtkOpenGLCheckStateMacro();
421 auto& cs = this->Stack.top();
422
423#ifndef NO_CACHE
424 if (cs.ColorMask[0] != r || cs.ColorMask[1] != g || cs.ColorMask[2] != b || cs.ColorMask[3] != a)
425#endif
426 {
427 cs.ColorMask[0] = r;
428 cs.ColorMask[1] = g;
429 cs.ColorMask[2] = b;
430 cs.ColorMask[3] = a;
431 ::glColorMask(r, g, b, a);
432 }
433
434 vtkCheckOpenGLErrorsWithStack("glColorMask");
435}
436
437void vtkOpenGLState::ClearColor(std::array<GLclampf, 4> val)
438{

Callers 15

ColorMaskMethod · 0.95
TextureDepthBlitMethod · 0.80
SetZbufferDataMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
ClearMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
ApplyStencilMethod · 0.80

Calls

no outgoing calls

Tested by 1

ExecuteMethod · 0.64