Пример #1
0
 @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();
 }