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

Method decSurface

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

Source from the content-addressed store, hash-verified

417}
418
419func (d *Decoder) decSurface(start xml.StartElement, np *Newparam) error {
420
421 sf := new(Surface)
422 sf.Type = findAttrib(start, "type").Value
423 np.ParameterType = sf
424
425 for {
426 child, data, err := d.decNextChild(start)
427 if err != nil || child.Name.Local == "" {
428 return err
429 }
430 if child.Name.Local == "init_from" {
431 sf.Init = InitFrom{string(data)}
432 continue
433 }
434 }
435}
436
437func (d *Decoder) decSampler2D(start xml.StartElement, np *Newparam) error {
438

Callers 1

Calls 2

decNextChildMethod · 0.95
findAttribFunction · 0.85

Tested by

no test coverage detected