All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cwinter.codecraft.graphics.model.EmptyModel.scala Maven / Gradle / Ivy

The newest version!
package cwinter.codecraft.graphics.model

import cwinter.codecraft.util.maths.matrices.Matrix4x4


private[codecraft] class EmptyModel[T] extends Model[T] {
  def update(params: T) = ()
  def setVertexCount(n: Int) = ()
  def draw(modelview: Matrix4x4, material: GenericMaterial) = ()
  def hasMaterial(material: GenericMaterial) = false
  def vertexCount = 0

  def prettyPrintTree(depth: Int): String =
    prettyPrintNode(depth, "Empty")
}

private[codecraft] object EmptyModel extends EmptyModel[Unit]





© 2015 - 2025 Weber Informatics LLC | Privacy Policy