예제 #1
0
파일: test_shader.py 프로젝트: joe311/vispy
 def test_attribute_vec4(self):
     shader = VertexShader("attribute vec4 color;")
     attributes = shader._get_attributes()
     assert attributes == [("color", gl.GL_FLOAT_VEC4)]
예제 #2
0
파일: test_shader.py 프로젝트: joe311/vispy
 def test_attribute_vec4(self):
     shader = VertexShader("attribute vec4 color;")
     attributes = shader._get_attributes()
     assert attributes == [ ("color", gl.GL_FLOAT_VEC4) ]
예제 #3
0
파일: test_shader.py 프로젝트: joe311/vispy
 def test_attribute_float(self):
     shader = VertexShader("attribute float color;")
     attributes = shader._get_attributes()
     assert attributes == [("color", gl.GL_FLOAT)]
예제 #4
0
파일: test_shader.py 프로젝트: joe311/vispy
 def test_attribute_float(self):
     shader = VertexShader("attribute float color;")
     attributes = shader._get_attributes()
     assert attributes == [ ("color", gl.GL_FLOAT) ]