MCPcopy Index your code
hub / github.com/g3n/engine / decSampler

Method decSampler

loader/collada/library_animations.go:158–178  ·  view source on GitHub ↗
(start xml.StartElement, anim *Animation)

Source from the content-addressed store, hash-verified

156}
157
158func (d *Decoder) decSampler(start xml.StartElement, anim *Animation) error {
159
160 sp := new(Sampler)
161 anim.Sampler = append(anim.Sampler, sp)
162 sp.Id = findAttrib(start, "id").Value
163
164 for {
165 child, _, err := d.decNextChild(start)
166 if err != nil || child.Name.Local == "" {
167 return err
168 }
169 if child.Name.Local == "input" {
170 inp, err := d.decInput(child)
171 if err != nil {
172 return err
173 }
174 sp.Input = append(sp.Input, inp)
175 continue
176 }
177 }
178}
179
180func (d *Decoder) decChannel(start xml.StartElement, anim *Animation) error {
181

Callers 1

decAnimationMethod · 0.95

Calls 3

decNextChildMethod · 0.95
decInputMethod · 0.95
findAttribFunction · 0.85

Tested by

no test coverage detected