src/jtwod/engine/Scene.java
private void initializeInternalDrawables(ParentEngine engine)
    {
        this.tpsRenderer = new Text<>(
            Integer.MAX_VALUE, // Highest possible layer
            "TPS: " + this.getTps(),
            new Font("Monospaced", Font.BOLD, 9),
            Color.white,
            Vector.Zero().plusY(11).plusX(20),
            engine, this
        );
        this.tpsRenderer.setVisible(false);

        this.fpsRenderer = new Text<>(
            Integer.MAX_VALUE, // Highest possible layer
            "FPS: " + this.getFps(),
            new Font("Monospaced", Font.BOLD, 9),
            Color.white,
            Vector.Zero().plusY(24).plusX(20),
            engine, this
        );
        this.fpsRenderer.setVisible(false);

        this.background = new Image<>(
            0, // First layer
            Texture.colorTexture(Color.black,
                    new Dimensions(
                            this.getParentEngine().getWindowSize().getWidth(),
                            this.getParentEngine().getWindowSize().getHeight()
                    )
            ),
            Vector.Zero(),
            engine,
            this
        );

        this.fpsColorBlock = new Image<>(
            Integer.MAX_VALUE,
            Texture.colorTexture(
                    Color.blue,
                    new Dimensions(10, 10)
            ),
            new Vector(5, 15),
            engine, this
        );
        this.fpsColorBlock.setVisible(false);

        this.tpsColorBlock = new Image<>(
            Integer.MAX_VALUE,
            Texture.colorTexture(
                    Color.green,
                    new Dimensions(10, 10)
            ),
            new Vector(5, 1),
            engine, this
        );
        this.tpsColorBlock.setVisible(false);

        this.graphRenderer = new Graph<ParentEngine>(
            Integer.MAX_VALUE,
            engine,
            this,
            Vector.Zero().plusY(44),
            new Dimensions(200, 50),
            2, 1
        ) {
            @Override
            public double getNextValueForDataSet(int dataSet) {
                switch (dataSet) {
                    case 0 : {
                        return getTps();
                    }

                    case 1 : {
                        return getFps();
                    }
                }

                return 0;
            }

            @Override
            public double getMaxValueForDataSet(int dataSet) {
                switch (dataSet) {
                    case 0 : {
                        return tpsLimit;
                    }

                    case 1 : {
                        return fpsLimit;
                    }
                }

                return 0;
            }

            @Override
            public Color getColorForDataSet(int dataSet) {
                switch (dataSet) {
                    case 0 : {
                        return Color.green;
                    }

                    case 1 : {
                        return Color.blue;
                    }
                }

                return Color.white;
            }
        };
        this.graphRenderer.setVisible(false);

        this.drawableGroup.addDrawable(this.fpsColorBlock);
        this.drawableGroup.addDrawable(this.tpsColorBlock);
        this.drawableGroup.addDrawable(this.graphRenderer);
        this.drawableGroup.addDrawable(this.background);
        this.drawableGroup.addDrawable(this.tpsRenderer);
        this.drawableGroup.addDrawable(this.fpsRenderer);
    }
/**
     * Initialize the internal Drawables for this scene.
     *
     * @param engine The engine.
     */
Initialize the internal Drawables for this scene.

@param engine The engine.
Initialize the internal Drawables for this scene . @param engine The engine .
private void initializeInternalDrawables(ParentEngine engine)
    {
        this.tpsRenderer = new Text<>(
            Integer.MAX_VALUE, 
            "TPS: " + this.getTps(),
            new Font("Monospaced", Font.BOLD, 9),
            Color.white,
            Vector.Zero().plusY(11).plusX(20),
            engine, this
        );
        this.tpsRenderer.setVisible(false);
        this.fpsRenderer = new Text<>(
            Integer.MAX_VALUE, 
            "FPS: " + this.getFps(),
            new Font("Monospaced", Font.BOLD, 9),
            Color.white,
            Vector.Zero().plusY(24).plusX(20),
            engine, this
        );
        this.fpsRenderer.setVisible(false);
        this.background = new Image<>(
            0, 
            Texture.colorTexture(Color.black,
                    new Dimensions(
                            this.getParentEngine().getWindowSize().getWidth(),
                            this.getParentEngine().getWindowSize().getHeight()
                    )
            ),
            Vector.Zero(),
            engine,
            this
        );
        this.fpsColorBlock = new Image<>(
            Integer.MAX_VALUE,
            Texture.colorTexture(
                    Color.blue,
                    new Dimensions(10, 10)
            ),
            new Vector(5, 15),
            engine, this
        );
        this.fpsColorBlock.setVisible(false);
        this.tpsColorBlock = new Image<>(
            Integer.MAX_VALUE,
            Texture.colorTexture(
                    Color.green,
                    new Dimensions(10, 10)
            ),
            new Vector(5, 1),
            engine, this
        );
        this.tpsColorBlock.setVisible(false);
        this.graphRenderer = new Graph<ParentEngine>(
            Integer.MAX_VALUE,
            engine,
            this,
            Vector.Zero().plusY(44),
            new Dimensions(200, 50),
            2, 1
        ) {
            @Override
            public double getNextValueForDataSet(int dataSet) {
                switch (dataSet) {
                    case 0 : {
                        return getTps();
                    }
                    case 1 : {
                        return getFps();
                    }
                }
                return 0;
            }
            @Override
            public double getMaxValueForDataSet(int dataSet) {
                switch (dataSet) {
                    case 0 : {
                        return tpsLimit;
                    }
                    case 1 : {
                        return fpsLimit;
                    }
                }
                return 0;
            }
            @Override
            public Color getColorForDataSet(int dataSet) {
                switch (dataSet) {
                    case 0 : {
                        return Color.green;
                    }
                    case 1 : {
                        return Color.blue;
                    }
                }
                return Color.white;
            }
        };
        this.graphRenderer.setVisible(false);
        this.drawableGroup.addDrawable(this.fpsColorBlock);
        this.drawableGroup.addDrawable(this.tpsColorBlock);
        this.drawableGroup.addDrawable(this.graphRenderer);
        this.drawableGroup.addDrawable(this.background);
        this.drawableGroup.addDrawable(this.tpsRenderer);
        this.drawableGroup.addDrawable(this.fpsRenderer);
    }
private void initializeInternalDrawables ( ParentEngine engine ) { this . tpsRenderer = new Text < > ( Integer . MAX_VALUE , "TPS: " + this . getTps ( ) , new Font ( "Monospaced" , Font . BOLD , 9 ) , Color . white , Vector . Zero ( ) . plusY ( 11 ) . plusX ( 20 ) , engine , this ) ; this . tpsRenderer . setVisible ( false ) ; this . fpsRenderer = new Text < > ( Integer . MAX_VALUE , "FPS: " + this . getFps ( ) , new Font ( "Monospaced" , Font . BOLD , 9 ) , Color . white , Vector . Zero ( ) . plusY ( 24 ) . plusX ( 20 ) , engine , this ) ; this . fpsRenderer . setVisible ( false ) ; this . background = new Image < > ( 0 , Texture . colorTexture ( Color . black , new Dimensions ( this . getParentEngine ( ) . getWindowSize ( ) . getWidth ( ) , this . getParentEngine ( ) . getWindowSize ( ) . getHeight ( ) ) ) , Vector . Zero ( ) , engine , this ) ; this . fpsColorBlock = new Image < > ( Integer . MAX_VALUE , Texture . colorTexture ( Color . blue , new Dimensions ( 10 , 10 ) ) , new Vector ( 5 , 15 ) , engine , this ) ; this . fpsColorBlock . setVisible ( false ) ; this . tpsColorBlock = new Image < > ( Integer . MAX_VALUE , Texture . colorTexture ( Color . green , new Dimensions ( 10 , 10 ) ) , new Vector ( 5 , 1 ) , engine , this ) ; this . tpsColorBlock . setVisible ( false ) ; this . graphRenderer = new Graph < ParentEngine > ( Integer . MAX_VALUE , engine , this , Vector . Zero ( ) . plusY ( 44 ) , new Dimensions ( 200 , 50 ) , 2 , 1 ) { @ Override public double getNextValueForDataSet ( int dataSet ) { switch ( dataSet ) { case 0 : { return getTps ( ) ; } case 1 : { return getFps ( ) ; } } return 0 ; } @ Override public double getMaxValueForDataSet ( int dataSet ) { switch ( dataSet ) { case 0 : { return tpsLimit ; } case 1 : { return fpsLimit ; } } return 0 ; } @ Override public Color getColorForDataSet ( int dataSet ) { switch ( dataSet ) { case 0 : { return Color . green ; } case 1 : { return Color . blue ; } } return Color . white ; } } ; this . graphRenderer . setVisible ( false ) ; this . drawableGroup . addDrawable ( this . fpsColorBlock ) ; this . drawableGroup . addDrawable ( this . tpsColorBlock ) ; this . drawableGroup . addDrawable ( this . graphRenderer ) ; this . drawableGroup . addDrawable ( this . background ) ; this . drawableGroup . addDrawable ( this . tpsRenderer ) ; this . drawableGroup . addDrawable ( this . fpsRenderer ) ; }
Initialize the internal Drawables for this scene.
Initialize the internal Drawables for this scene .
// Highest possible layer
 // Highest possible layer
 // First layer
