Class: Rugl::State::ColorMask

Inherits:
Object
  • Object
show all
Defined in:
lib/rugl/state/color_mask.rb

Class Method Summary collapse

Class Method Details

.apply(gl:, params:) ⇒ Object



7
8
9
10
# File 'lib/rugl/state/color_mask.rb', line 7

def apply(gl:, params:)
  mask = normalize(params)
  Util.gl_call(gl, :ColorMask, *mask)
end

.defaultObject



12
13
14
# File 'lib/rugl/state/color_mask.rb', line 12

def default
  [true, true, true, true]
end