Esempio n. 1
0
 def max_lod(self):
     _max_lod = _gl.GLint()
     _gl.glGetSamplerParameteriv(self._id, _gl.GL_TEXTURE_MAX_LOD, _gl.pointer(_max_lod))
     return _max_lod.value
Esempio n. 2
0
 def compare_mode(self):
     _compare_mode = _gl.GLint()
     _gl.glGetSamplerParameteriv(self._id, _gl.GL_TEXTURE_COMPARE_MODE, _gl.pointer(_compare_mode))
     return self.compare_modes[_compare_mode.value]
Esempio n. 3
0
 def mag_filter(self):
     _mag_filter = _gl.GLint()
     _gl.glGetSamplerParameteriv(self._id, _gl.GL_TEXTURE_MAG_FILTER, _gl.pointer(_mag_filter))
     return self.mag_filters[_mag_filter.value]
Esempio n. 4
0
 def wrap_r(self):
     _wrap_r = _gl.GLint()
     _gl.glGetSamplerParameteriv(self._id, _gl.GL_TEXTURE_WRAP_R, _gl.pointer(_wrap_r))
     return self.wrapmodes[_wrap_r.value]
Esempio n. 5
0
 def compare_func(self):
     _compare_func = _gl.GLint()
     _gl.glGetSamplerParameteriv(self._id, _gl.GL_TEXTURE_COMPARE_FUNC, _gl.pointer(_compare_func))
     return self.compare_funcs[_compare_func.value]
Esempio n. 6
0
 def min_lod(self):
     _min_lod = _gl.GLint()
     _gl.glGetSamplerParameteriv(self._id, _gl.GL_TEXTURE_MIN_LOD,
                                 _gl.pointer(_min_lod))
     return _min_lod.value
Esempio n. 7
0
 def mag_filter(self):
     _mag_filter = _gl.GLint()
     _gl.glGetSamplerParameteriv(self._id, _gl.GL_TEXTURE_MAG_FILTER,
                                 _gl.pointer(_mag_filter))
     return self.mag_filters[_mag_filter.value]
Esempio n. 8
0
 def compare_mode(self):
     _compare_mode = _gl.GLint()
     _gl.glGetSamplerParameteriv(self._id, _gl.GL_TEXTURE_COMPARE_MODE,
                                 _gl.pointer(_compare_mode))
     return self.compare_modes[_compare_mode.value]
Esempio n. 9
0
 def compare_func(self):
     _compare_func = _gl.GLint()
     _gl.glGetSamplerParameteriv(self._id, _gl.GL_TEXTURE_COMPARE_FUNC,
                                 _gl.pointer(_compare_func))
     return self.compare_funcs[_compare_func.value]
Esempio n. 10
0
 def wrap_r(self):
     _wrap_r = _gl.GLint()
     _gl.glGetSamplerParameteriv(self._id, _gl.GL_TEXTURE_WRAP_R,
                                 _gl.pointer(_wrap_r))
     return self.wrapmodes[_wrap_r.value]