Versions in this module Expand all Collapse all v0 v0.1.0 Mar 14, 2019 Changes in this version + func DumpColorOrTexture(name string, v interface{}, out io.Writer, indent int) + func DumpFloatOrParam(name string, v interface{}, out io.Writer, indent int) + type Accessor struct + Count int + Params []Param + Source string + Stride int + func (ac *Accessor) Dump(out io.Writer, indent int) + type ActionFunc func(at *AnimationTarget, v float32) + type Ambient struct + Color LightColor + func (amb *Ambient) Dump(out io.Writer, indent int) + type Animation struct + Animation []*Animation + Channel []*Channel + Id string + Name string + Sampler []*Sampler + Source []*Source + func (an *Animation) Dump(out io.Writer, indent int) + type AnimationTarget struct + func (at *AnimationTarget) Reset() + func (at *AnimationTarget) SetLoop(loop bool) + func (at *AnimationTarget) SetStart(v float32) + func (at *AnimationTarget) Update(delta float32) bool + type Asset struct + Contributor Contributor + Created string + Modified string + UpAxis string + func (a *Asset) Dump(out io.Writer, indent int) + type Bind struct + Semantic string + Target string + type BindMaterial struct + Params []Param + TechniqueCommon struct{ ... } + func (bm *BindMaterial) Dump(out io.Writer, indent int) + type BindVertexInput struct + InputSemantic string + InputSet uint + Semantic string + func (bvi *BindVertexInput) Dump(out io.Writer, indent int) + type Blinn struct + Ambient interface{} + Diffuse interface{} + Emission interface{} + IndexOfRefraction interface{} + Reflective interface{} + Reflectivity interface{} + Shininess interface{} + Specular interface{} + Transparency interface{} + Transparent interface{} + func (bl *Blinn) Dump(out io.Writer, indent int) + type Channel struct + Source string + Target string + func (ch *Channel) Dump(out io.Writer, indent int) + type ChannelInstance struct + type Collada struct + Asset Asset + LibraryAnimations *LibraryAnimations + LibraryEffects *LibraryEffects + LibraryGeometries *LibraryGeometries + LibraryImages *LibraryImages + LibraryLights *LibraryLights + LibraryMaterials *LibraryMaterials + LibraryVisualScenes *LibraryVisualScenes + Scene *Scene + Version string + type Color struct + Data [4]float32 + Sid string + func (c *Color) Dump(out io.Writer, indent int) + type Constant struct + Emission interface{} + IndexOfRefraction interface{} + Reflective interface{} + Reflectivity interface{} + Transparency interface{} + Transparent interface{} + type Contributor struct + Author string + AuthorEmail string + AuthorWebsite string + AuthoringTool string + Comments string + Copyright string + SourceData string + func (c *Contributor) Dump(out io.Writer, indent int) + type Decoder struct + func Decode(filepath string) (*Decoder, error) + func DecodeReader(f io.Reader) (*Decoder, error) + func (d *Decoder) Dump(out io.Writer, indent int) + func (d *Decoder) GetGeometry(id string) (geometry.IGeometry, uint32, error) + func (d *Decoder) GetMaterial(id string) (material.IMaterial, error) + func (d *Decoder) GetTexture2D(id string) (*texture.Texture2D, error) + func (d *Decoder) NewAnimationTargets(scene core.INode) (map[string]*AnimationTarget, error) + func (d *Decoder) NewGeometry(id string) (geometry.IGeometry, uint32, error) + func (d *Decoder) NewMaterial(id string) (material.IMaterial, error) + func (d *Decoder) NewScene() (core.INode, error) + func (d *Decoder) NewTexture2D(id string) (*texture.Texture2D, error) + func (d *Decoder) SetDirImages(path string) + type Directional struct + Color LightColor + func (dir *Directional) Dump(out io.Writer, indent int) + type Effect struct + Asset *Asset + Id string + Name string + Profile []interface{} + func (ef *Effect) Dump(out io.Writer, indent int) + type Float struct + Data float32 + Sid string + func (f *Float) Dump(out io.Writer, indent int) + type FloatArray struct + Count int + Data []float32 + Id string + func (fa *FloatArray) Dump(out io.Writer, indent int) + type FloatValue struct + Sid string + Value float32 + func (fv *FloatValue) Dump(name string, out io.Writer, indent int) + type Geometry struct + GeometricElement interface{} + Id string + Name string + func (g *Geometry) Dump(out io.Writer, indent int) + type Image struct + Depth uint + Format string + Height uint + Id string + ImageSource interface{} + Name string + Width uint + func (img *Image) Dump(out io.Writer, indent int) + type InitFrom struct + Uri string + func (initf *InitFrom) Dump(out io.Writer, indent int) + type Input struct + Semantic string + Source string + func (i *Input) Dump(out io.Writer, indent int) + type InputShared struct + Offset int + Semantic string + Set int + Source string + func (is *InputShared) Dump(out io.Writer, indent int) + type InstanceEffect struct + Name string + Sid string + Url string + func (ie *InstanceEffect) Dump(out io.Writer, indent int) + type InstanceGeometry struct + BindMaterial *BindMaterial + Name string + Url string + func (ig *InstanceGeometry) Dump(out io.Writer, indent int) + type InstanceMaterial struct + Bind []Bind + BindVertexInput []BindVertexInput + Name string + Sid string + Symbol string + Target string + func (im *InstanceMaterial) Dump(out io.Writer, indent int) + type InstanceVisualScene struct + Name string + Sid string + Url string + func (ivs *InstanceVisualScene) Dump(out io.Writer, indent int) + type Lambert struct + Ambient interface{} + Diffuse interface{} + Emission interface{} + IndexOfRefraction interface{} + Reflective interface{} + Reflectivity interface{} + Transparency interface{} + Transparent interface{} + type LibraryAnimations struct + Animation []*Animation + Asset *Asset + Id string + Name string + func (la *LibraryAnimations) Dump(out io.Writer, indent int) + type LibraryEffects struct + Asset *Asset + Effect []*Effect + Id string + Name string + func (le *LibraryEffects) Dump(out io.Writer, indent int) + type LibraryGeometries struct + Asset *Asset + Geometry []*Geometry + func (lg *LibraryGeometries) Dump(out io.Writer, indent int) + type LibraryImages struct + Asset *Asset + Id string + Image []*Image + Name string + func (li *LibraryImages) Dump(out io.Writer, indent int) + type LibraryLights struct + Asset *Asset + Id string + Light []*Light + Name string + func (ll *LibraryLights) Dump(out io.Writer, indent int) + type LibraryMaterials struct + Asset *Asset + Id string + Material []*Material + Name string + func (lm *LibraryMaterials) Dump(out io.Writer, indent int) + type LibraryVisualScenes struct + Asset *Asset + VisualScene []*VisualScene + func (lv *LibraryVisualScenes) Dump(out io.Writer, indent int) + type Light struct + Id string + Name string + TechniqueCommon struct{ ... } + func (li *Light) Dump(out io.Writer, indent int) + type LightColor struct + Data [3]float32 + Sid string + func (lc *LightColor) Dump(out io.Writer, indent int) + type LineStrips struct + Count int + Input []InputShared + Material string + Name string + P []int + type Lines struct + Count int + Input []InputShared + Material string + Name string + P []int + func (ln *Lines) Dump(out io.Writer, indent int) + type Material struct + Asset *Asset + Id string + InstanceEffect InstanceEffect + Name string + func (mat *Material) Dump(out io.Writer, indent int) + type Matrix struct + Data [16]float32 + Sid string + func (m *Matrix) Dump(out io.Writer, indent int) + type Mesh struct + PrimitiveElements []interface{} + Source []*Source + Vertices Vertices + func (m *Mesh) Dump(out io.Writer, indent int) + type NameArray struct + Count int + Data []string + Id string + Name string + func (na *NameArray) Dump(out io.Writer, indent int) + type Newparam struct + ParameterType interface{} + Semantic string + Sid string + func (np *Newparam) Dump(out io.Writer, indent int) + type Node struct + Id string + Instance interface{} + Layer []string + Name string + Node []*Node + Sid string + TransformationElements []interface{} + Type string + func (n *Node) Dump(out io.Writer, indent int) + type Param struct + Name string + Type string + func (p *Param) Dump(out io.Writer, indent int) + type Phong struct + Ambient interface{} + Diffuse interface{} + Emission interface{} + IndexOfRefraction interface{} + Reflective interface{} + Reflectivity interface{} + Shininess interface{} + Specular interface{} + Transparency interface{} + Transparent interface{} + func (ph *Phong) Dump(out io.Writer, indent int) + type Point struct + Color LightColor + ConstantAttenuation *FloatValue + LinearAttenuation *FloatValue + QuadraticAttenuation *FloatValue + func (pl *Point) Dump(out io.Writer, indent int) + type Polylist struct + Count int + Input []InputShared + Material string + Name string + P []int + Vcount []int + func (pl *Polylist) Dump(out io.Writer, indent int) + type ProfileCOMMON struct + Asset *Asset + Id string + Newparam []*Newparam + Technique struct{ ... } + func (pc *ProfileCOMMON) Dump(out io.Writer, indent int) + type Rotate struct + Data [4]float32 + Sid string + func (r *Rotate) Dump(out io.Writer, indent int) + type Sampler struct + Id string + Input []Input + func (sp *Sampler) Dump(out io.Writer, indent int) + type Sampler2D struct + Source string + func (sp *Sampler2D) Dump(out io.Writer, indent int) + type SamplerInstance struct + InTangent []float32 + Input []float32 + Interp []string + OutTangent []float32 + Output []float32 + func NewSamplerInstance(ca *Animation, uri string) (*SamplerInstance, error) + func (si *SamplerInstance) Interpolate(inp float32) (float32, bool) + type Scale struct + Data [3]float32 + Sid string + func (s *Scale) Dump(out io.Writer, indent int) + type Scene struct + InstanceVisualScene *InstanceVisualScene + func (s *Scene) Dump(out io.Writer, indent int) + type Source struct + ArrayElement interface{} + Id string + Name string + TechniqueCommon struct{ ... } + func (s *Source) Dump(out io.Writer, indent int) + type Spot struct + Color LightColor + ConstantAttenuation *FloatValue + FalloffAngle *FloatValue + FalloffExponent *FloatValue + LinearAttenuation *FloatValue + QuadraticAttenuation *FloatValue + func (sl *Spot) Dump(out io.Writer, indent int) + type Surface struct + Init interface{} + Type string + func (sf *Surface) Dump(out io.Writer, indent int) + type Texture struct + Texcoord string + Texture string + func (t *Texture) Dump(out io.Writer, indent int) + type Translate struct + Data [3]float32 + Sid string + func (t *Translate) Dump(out io.Writer, indent int) + type Triangles struct + Count int + Input []InputShared + Material string + Name string + P []int + type Trifans struct + Count int + Input []InputShared + Material string + Name string + P []int + type Tristrips struct + Count int + Input []InputShared + Material string + Name string + P []int + type Vertices struct + Id string + Input []Input + Name string + func (v *Vertices) Dump(out io.Writer, indent int) + type VisualScene struct + Id string + Name string + Node []*Node + func (vs *VisualScene) Dump(out io.Writer, indent int)