<commit_before>package se.gigurra.glasciia

import se.gigurra.math.Box

/**
  * @param layers
  *               In draw order, i.e. [Furthest away ... Closest]
  */
case class BackGround(layers: Seq[BackGround.Layer]) {

}

object BackGround {
  case class Layer(bounds: Box[Float],
                   translationScale: Float) {

  }



}<commit_msg>Start working on backgrounds<commit_after>package se.gigurra.glasciia

import com.badlogic.gdx.graphics.Camera
import com.badlogic.gdx.graphics.g2d.TextureRegion
import se.gigurra.glasciia.BackGround.Layer.Piece
import se.gigurra.math.Box

/**
  * @param layers
  *               In draw order, i.e. [Furthest away ... Closest]
  */
case class BackGround(layers: Seq[BackGround.Layer]) {

}

object BackGround {
  case class Layer(bounds: Box[Float], translationScale: Float, pieces: Seq[Piece]) {
    def piecesInView(camera: Camera): Seq[Piece] = {
      pieces.filter(_.isInView(camera))
    }
  }

  object Layer {
    case class Piece(bounds: Box[Float], region: TextureRegion) {
      def isInView(camera: Camera): Boolean = {
        ???
      }
    }
  }
}
{'fraction_non_alphanumeric': 0.12567324955116696, 'fraction_numerical': 0.0008976660682226212, 'mean_word_length': 3.0107913669064748, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1693597', 'n_tokens_mistral': 403, 'n_tokens_neox': 392, 'n_words': 78}