MCPcopy Create free account
hub / github.com/g3n/engine / decSampler2D

Method decSampler2D

loader/collada/library_effects.go:437–452  ·  view source on GitHub ↗
(start xml.StartElement, np *Newparam)

Source from the content-addressed store, hash-verified

435}
436
437func (d *Decoder) decSampler2D(start xml.StartElement, np *Newparam) error {
438
439 sp := new(Sampler2D)
440 np.ParameterType = sp
441
442 for {
443 child, data, err := d.decNextChild(start)
444 if err != nil || child.Name.Local == "" {
445 return err
446 }
447 if child.Name.Local == "source" {
448 sp.Source = string(data)
449 continue
450 }
451 }
452}
453
454func (d *Decoder) decProfileCommonTechnique(start xml.StartElement, pc *ProfileCOMMON) error {
455

Callers 1

Calls 1

decNextChildMethod · 0.95

Tested by

no test coverage detected