Module: Roglew::Texture2dContext::Parameters2
- Defined in:
- lib/roglew/texture2d_context.rb
Instance Method Summary collapse
- #base_level=(v) ⇒ Object
- #max_level=(v) ⇒ Object
- #max_lod=(v) ⇒ Object
- #min_lod=(v) ⇒ Object
- #no_mipmaps! ⇒ Object
- #wrap_r=(v) ⇒ Object
- #wrap_str(s, t, r) ⇒ Object
Instance Method Details
#base_level=(v) ⇒ Object
42 |
# File 'lib/roglew/texture2d_context.rb', line 42 def base_level=(v) parameter(GL::TEXTURE_BASE_LEVEL, v) end |
#max_level=(v) ⇒ Object
43 |
# File 'lib/roglew/texture2d_context.rb', line 43 def max_level=(v) parameter(GL::TEXTURE_MAX_LEVEL, v) end |
#max_lod=(v) ⇒ Object
44 |
# File 'lib/roglew/texture2d_context.rb', line 44 def max_lod=(v) parameter(GL::TEXTURE_MAX_LOD, v) end |
#min_lod=(v) ⇒ Object
45 |
# File 'lib/roglew/texture2d_context.rb', line 45 def min_lod=(v) parameter(GL::TEXTURE_MIN_LOD, v) end |
#no_mipmaps! ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/roglew/texture2d_context.rb', line 49 def no_mipmaps! self.mag_filter = Roglew::GL::NEAREST self.min_filter = Roglew::GL::NEAREST self.base_level = 0 self.max_level = 0 nil end |
#wrap_r=(v) ⇒ Object
46 |
# File 'lib/roglew/texture2d_context.rb', line 46 def wrap_r=(v) parameter(GL::TEXTURE_WRAP_R, v) end |
#wrap_str(s, t, r) ⇒ Object
47 |
# File 'lib/roglew/texture2d_context.rb', line 47 def wrap_str(s, t, r) self.wrap_s, self.wrap_t, self.wrap_r = s, t, r end |