Documentation ¶
Index ¶
- Constants
- func WritePMX(doc *PMXDocument, w io.Writer) error
- type Bone
- type Face
- type Header
- type Link
- type Material
- type Morph
- type MorphGroup
- type MorphMaterial
- type MorphUV
- type MorphVertex
- type PMDParser
- type PMXDocument
- type PMXParser
- type PMXWriter
- type Vector2
- type Vector3
- type Vector4
- type Vertex
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 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 PMXDocument ¶
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.