Module: Roglew::Texture2dContext::Parameters3

Defined in:
lib/roglew/texture2d_context.rb

Instance Method Summary collapse

Instance Method Details

#depth_mode=(v) ⇒ Object



59
# File 'lib/roglew/texture2d_context.rb', line 59

def depth_mode=(v) parameter(GL::DEPTH_TEXTURE_MODE, v) end

#generate_mipmap=(v) ⇒ Object



61
62
63
64
# File 'lib/roglew/texture2d_context.rb', line 61

def generate_mipmap=(v)
  v = v ? GL::TRUE : GL::FALSE if v == true || v == false
  parameter(GL::GENERATE_MIPMAP, v)
end