コード例 #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) ]