public static void setupOpenGL() {
        try {
            if (FULLSCREEN && Display.getDisplayMode().isFullscreenCapable()) {
                Display.setFullscreen(true);
                Display.setVSyncEnabled(true);
            }
            else {
                Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
                Display.setDisplayMode(new DisplayMode(screenSize.width, screenSize.height));
                //Display.setDisplayMode(new DisplayMode(1280, 800));
            }
            Display.create(new PixelFormat(8, 0, 0, 8));
        } catch (LWJGLException ex) {
            ex.printStackTrace();
        }

        GL11.glViewport(0, 0, Display.getWidth(), Display.getHeight());

        GL11.glMatrixMode(GL11.GL_PROJECTION);
        GL11.glLoadIdentity();

        GL11.glOrtho(0, Display.getWidth(), Display.getHeight(), 0, -1, 1);

        GL11.glMatrixMode(GL11.GL_MODELVIEW);
        GL11.glLoadIdentity();

        GL11.glEnable(GL11.GL_TEXTURE_2D);

        GL11.glShadeModel(GL11.GL_SMOOTH);

        GL11.glEnable(GL11.GL_BLEND);
        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);

        GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
        GL11.glEnableClientState(GL11.GL_COLOR_ARRAY);
        GL11.glEnableClientState(GL11.GL_TEXTURE_COORD_ARRAY);

        GL11.glDisable(GL11.GL_DEPTH_TEST);
        GL11.glDisable(GL11.GL_LIGHTING);

        Open_GL_Ready = true;
    }