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

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

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

import cwinter.codecraft.graphics.engine.GraphicsContext

private[graphics] case class ProjectedParamsModelBuilder[
    TStatic, TDynamic, UDynamic](
    model: ModelBuilder[TStatic, UDynamic],
    projection: TDynamic => UDynamic
) extends ModelBuilder[TStatic, TDynamic] {
  def signature: TStatic = model.signature

  protected def buildModel(context: GraphicsContext): Model[TDynamic] =
    model.getModel(context).wireParameters(projection)

  override def isCacheable: Boolean = false
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy