object S3d extends DbpfTypeCompanion[S3d]
- Source
- S3d.scala
- Alphabetic
- By Inheritance
- S3d
- DbpfTypeCompanion
- WithContentConverter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class AnimGroup(vertBlock: IndexedSeq[Int], indxBlock: IndexedSeq[Int], primBlock: IndexedSeq[Int], matsBlock: IndexedSeq[Int], name: Option[String] = None, flags: Int = 0) extends S3dGroup with Product with Serializable
- case class AnimSection(numFrames: Short, frameRate: Short, playMode: PlayMode.Value, displacement: Float, groups: IndexedSeq[AnimGroup]) extends IndexedSeqProxy[AnimGroup] with Product with Serializable
- case class IndxGroup(indxs: IndexedSeq[Int]) extends IndexedSeqProxy[Int] with S3dGroup with Product with Serializable
-
case class
Material(id: Int, wrapU: WrapMode.Value, wrapV: WrapMode.Value, magFilter: MagnifFilter.Value, minFilter: MinifFilter.Value, animRate: Short = 0, animMode: Short = 0, name: Option[String]) extends Product with Serializable
A material referencing a specific ID.
A material referencing a specific ID.
- animRate
0 or 33
- animMode
0 or 2
-
case class
MatsGroup(flags: MatsFlags.ValueSet, alphaFunc: MatsFunc.Value = MatsFunc.Greater, depthFunc: MatsFunc.Value = MatsFunc.LessEqual, sourceBlend: MatsBlend.Value = MatsBlend.One, destBlend: MatsBlend.Value = MatsBlend.Zero, alphaThreshold: Short, matClass: Int = 0, reserved: Byte = 0, materials: IndexedSeq[Material]) extends S3dGroup with Product with Serializable
Settings of a material.
Settings of a material.
- alphaFunc
greater
- depthFunc
less equal
- sourceBlend
one
- destBlend
zero
- alphaThreshold
0, 0xFF or 0x7FF
- matClass
0
- reserved
0
- materials
usually has length 1 (or 0).
- case class Orientation(x: Float, y: Float, z: Float, w: Float) extends Product with Serializable
- case class Prim(primType: PrimType.Value, firstIndx: Int, numIndxs: Int) extends Product with Serializable
- case class PrimGroup(prims: IndexedSeq[Prim]) extends IndexedSeqProxy[Prim] with S3dGroup with Product with Serializable
- case class PropGroup(meshIndex: Short, frameIndex: Short, assignmentType: String, assignedValue: String) extends S3dGroup with Product with Serializable
- case class RegpGroup(name: String, translations: IndexedSeq[Translation], orientations: IndexedSeq[Orientation]) extends S3dGroup with Product with Serializable
- case class Translation(x: Float, y: Float, z: Float) extends Product with Serializable
- case class Vert(x: Float, y: Float, z: Float, u: Float, v: Float) extends IndexedSeq[Float] with Product with Serializable
- case class VertGroup(verts: IndexedSeq[Vert]) extends IndexedSeqProxy[Vert] with S3dGroup with Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(vert: IndexedSeq[VertGroup], indx: IndexedSeq[IndxGroup], prim: IndexedSeq[PrimGroup], mats: IndexedSeq[MatsGroup], anim: IndexedSeq[AnimGroup], prop: IndexedSeq[PropGroup] = IndexedSeq.empty, regp: IndexedSeq[RegpGroup] = IndexedSeq.empty): S3d
Construct a new S3D model (shorthand for non-animated models).
-
def
apply(vert: IndexedSeq[VertGroup], indx: IndexedSeq[IndxGroup], prim: IndexedSeq[PrimGroup], mats: IndexedSeq[MatsGroup], anim: AnimSection, prop: IndexedSeq[PropGroup], regp: IndexedSeq[RegpGroup]): S3d
Construct a new S3D model.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
contentConverter: Converter[BufferedEntry[DbpfType], BufferedEntry[S3d]]
- Definition Classes
- DbpfTypeCompanion → WithContentConverter
-
implicit
val
converter: Converter[DbpfType, S3d]
- Definition Classes
- S3d → DbpfTypeCompanion
-
def
defaultMats(transparency: S3d.Transparency.Value, id: Int, name: Option[String] = None, mipmap: Boolean = false, wrapU: S3d.WrapMode.Value = WrapMode.Clamp, wrapV: S3d.WrapMode.Value = WrapMode.Clamp): MatsGroup
Commonly used settings for materials.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- object AnimGroup extends Serializable
- object MagnifFilter extends Enumeration
- object MatsBlend extends Enumeration
- object MatsFlags extends Enumeration
- object MatsFunc extends Enumeration
- object MinifFilter extends Enumeration
- object PlayMode extends Enumeration
- object PrimType extends Enumeration
- object Transparency extends Enumeration
- object WrapMode extends Enumeration