Example #1
0
 /**
  * Renders (draws) the whole screen, and then flips the double buffer, so that the newly rendered
  * screen is visible.
  *
  * @priority 3
  */
 public static void render() {
   try {
     currentGame.render(Video.getDisplaySurface());
   } catch (Exception e) {
     handleException(e);
   }
   Video.flip();
 }
Example #2
0
 /**
  * Gets the surface the game is being drawn to. This will not have an alpha channel.
  *
  * @return The display's surface.
  */
 public static Surface getDisplaySurface() {
   return Video.getDisplaySurface();
 }