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

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

src/f/l/Flappy-0.3.7/samples/heroku_shaders.py   Flappy(Download)
        scene.setProgram(self.heroku_program)
        scene.setVertexBufferAt('pos', self.vbuffer, 0, 
                                            VertexBuffer3DFormat.FLOAT_2)
 
        scene.setProgramConstant('resolution', [float(RES_X), float(RES_Y)])
        scene.setProgram(self.render_program)
        scene.setVertexBufferAt('pos', self.vbuffer, 0, 
                                            VertexBuffer3DFormat.FLOAT_2)
        scene.setProgramConstant('resolution', [float(WIDTH), float(HEIGHT)])
        scene.setProgramConstant('surfaceSize', [float(WIDTH), float(HEIGHT)])