src/neon/rendering/RenderSystem.java
/**
   * Draws an image.
   *
   * @param graphics the graphics object used to draw the game's graphics
   * @param imgObj the image to be drawn
   */
Draws an image.
@param graphics the graphics object used to draw the game's graphics
@param imgObj the image to be drawn
Draws an image . @param graphics the graphics object used to draw the game ' s graphics @param imgObj the image to be drawn
public static void drawImage(Graphics graphics, ImageObject imgObj) {
    Hitbox hitbox = imgObj.getHitbox();
    WindowSettings settings = NeonEngine.getSettings().windowSettings;
    int width = settings.width;
    int height = settings.height;
    graphics.drawImage(
        imgObj.getSprite(),
        (int) Math.round(hitbox.getLowerXBound() * width),
        (int) Math.round(reverseY(hitbox.getHigherYBound() * height)),
        (int) Math.round(hitbox.getWidth() * width),
        (int) Math.round(hitbox.getHeight() * height),
        null);
  }
public static void drawImage ( Graphics graphics , ImageObject imgObj ) { Hitbox hitbox = imgObj . getHitbox ( ) ; WindowSettings settings = NeonEngine . getSettings ( ) . windowSettings ; int width = settings . width ; int height = settings . height ; graphics . drawImage ( imgObj . getSprite ( ) , ( int ) Math . round ( hitbox . getLowerXBound ( ) * width ) , ( int ) Math . round ( reverseY ( hitbox . getHigherYBound ( ) * height ) ) , ( int ) Math . round ( hitbox . getWidth ( ) * width ) , ( int ) Math . round ( hitbox . getHeight ( ) * height ) , null ) ; }
Draws an image.
Draws an image .