示例#1
0
文件: Play.java 项目: SlonSky/Engine
 @Override
 public void render(RenderingEngine engine) {
   engine.render(level);
   if (pause || gameOver || levelEnded) {
     engine.render(manager.getMainFrame(), true);
   }
 }
示例#2
0
 public void render(Shader shader, RenderingEngine engine) {
   shader.bind();
   texture.bind();
   shader.updateUniforms(
       new Transform(
           engine.getMainCamera().getPos(),
           new Quaternion(0, 0, 0, 1),
           new Vector3f(SKY_BOX_SIZE, SKY_BOX_SIZE, SKY_BOX_SIZE)),
       null,
       engine);
   box.draw();
 }