public static void initWindowGL(int width, int height, String title)
    {
        try
        {
            Display.setTitle(title);
            Display.setDisplayMode(new DisplayMode(width, height));
            Display.create();
        }
        catch (LWJGLException e)
        {
            e.printStackTrace();
        }

        RenderingEngine.instance.init();

        lastFPS = Time.getTime();


        while (!Display.isCloseRequested() && !Keyboard.isKeyDown(Keyboard.KEY_ESCAPE))
        {
            renderingEngine.render();
            int delta = getDelta();

            update(delta);

            Display.update();
            Display.sync(60);
        }

//        RenderUtil.cleanUP();
        Display.destroy();
    }