Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/f/l/Flappy-0.3.7/flappy/display3d/program3d.py   Flappy(Download)
    def upload(self, vertex_shader_src, fragment_shader_src):
#TODO: make error messages more specific
        gl.shaderSource(self.gl_vshader, vertex_shader_src)
        gl.compileShader(self.gl_vshader)
        if gl.getShaderParameter(self.gl_vshader, gl.COMPILE_STATUS) == 0:
            raise RuntimeError('Error compiling vertex shader')     
 
        gl.shaderSource(self.gl_fshader, fragment_shader_src)
        gl.compileShader(self.gl_fshader)
        if gl.getShaderParameter(self.gl_fshader, gl.COMPILE_STATUS) == 0: