Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaterialFlagDoubleSided uint8 = 1 MaterialFlagCastShadow uint8 = 2 )
View Source
const ( BoneFlagTailIndex uint16 = 1 BoneFlagRotatable uint16 = 2 BoneFlagTranslatable uint16 = 4 BoneFlagVisible uint16 = 8 BoneFlagEnabled uint16 = 16 BoneFlagEnableIK uint16 = 32 BoneFlagInheritRotation uint16 = 256 BoneFlagInheritTranslation uint16 = 512 BoneFlagFixedAxis uint16 = 1024 BoneFlagLocalAxis uint16 = 2048 BoneFlagPhysicsMode uint16 = 4096 BoneFlagExternalParent uint16 = 8192 BoneFlagAll uint16 = (31 | 32 | 256 | 512 | 1024 | 2048 | 4096 | 8192) )
View Source
const ( AttrStringEncoding int = iota AttrExtUV AttrVertIndexSz AttrTexIndexSz AttrMatIndexSz AttrBoneIndexSz AttrMorphIndexSz AttrRBIndexSz )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Document ¶ added in v0.2.0
type Document struct { Header *Header Name string NameEn string Comment string CommentEn string Vertexes []*Vertex Faces []*Face Textures []string Materials []*Material Bones []*Bone Morphs []*Morph }
func NewDocument ¶ added in v0.2.0
func NewDocument() *Document
type Morph ¶
type Morph struct { Name string NameEn string PanelType byte MorphType byte // oneof Group []*MorphGroup Vertex []*MorphVertex UV []*MorphUV Material []*MorphMaterial }
type MorphMaterial ¶
type MorphMaterial struct { Target int Flags byte Diffuse Vector4 Specular Vector3 Specularity float32 Ambient Vector3 EdgeColor Vector4 EdgeSize float32 TextureTint Vector4 EnvironmentTint Vector4 ToonTint Vector4 }
type 8
type PMDParser ¶
type PMDParser struct {
// contains filtered or unexported fields
}
PMDParser is parser for .pmd model.
type PMXParser ¶
type PMXParser struct {
// contains filtered or unexported fields
}
PMXParser is parser for .pmx model.
Click to show internal directories.
Click to hide internal directories.