yamlscene

package
v0.0.0-...-ec9fd1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2012 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix    = "tag:goray/"
	StdPrefix = Prefix + "std/"
)

Variables

View Source
var Constructor yamldata.ConstructorMap = yamldata.ConstructorMap{
	Prefix + "rgb":  yamldata.ConstructorFunc(constructRGB),
	Prefix + "rgba": yamldata.ConstructorFunc(constructRGBA),
	Prefix + "vec":  yamldata.ConstructorFunc(constructVector),

	StdPrefix + "objects/mesh": MapConstruct(constructMesh),
}

Functions

func Load

func Load(r io.Reader, sc *goray.Scene, params Params) (i goray.Integrator, err error)

Types

type MapConstruct

type MapConstruct func(yamldata.Map) (interface{}, error)

func (MapConstruct) Construct

func (f MapConstruct) Construct(n parser.Node, userData interface{}) (data interface{}, err error)

type Params

type Params map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL