artifact

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBinaryNode

func NewBinaryNode(bytesNode nodes.NodeOutput[[]byte]) nodes.NodeOutput[generator.Artifact]

func NewIONode

func NewIONode(readerNode nodes.NodeOutput[io.Reader]) nodes.NodeOutput[generator.Artifact]

func NewTextNode

func NewTextNode(textNode nodes.NodeOutput[string]) nodes.NodeOutput[generator.Artifact]

Types

type Binary

type Binary struct {
	Data []byte
}

func (Binary) Mime

func (Binary) Mime() string

func (Binary) Write

func (ba Binary) Write(w io.Writer) error

type BinaryNodeData

type BinaryNodeData struct {
	In nodes.NodeOutput[[]byte]
}

func (BinaryNodeData) Process

func (pn BinaryNodeData) Process() (generator.Artifact, error)

type Gltf

type Gltf struct {
	Scene gltf.PolyformScene
}

func (Gltf) Mime

func (Gltf) Mime() string

func (Gltf) Write

func (ga Gltf) Write(w io.Writer) error

type GltfNodeData

type GltfNodeData struct {
	In nodes.NodeOutput[gltf.PolyformScene]
}

func (GltfNodeData) Process

func (pn GltfNodeData) Process() (generator.Artifact, error)

type IO

type IO struct {
	Reader io.Reader
}

func (IO) Mime

func (IO) Mime() string

func (IO) Write

func (ga IO) Write(w io.Writer) error

type IONodeData

type IONodeData struct {
	In nodes.NodeOutput[io.Reader]
}

func (IONodeData) Process

func (pn IONodeData) Process() (generator.Artifact, error)

type Image

type Image struct {
	Image image.Image
}

func (Image) Mime

func (im Image) Mime() string

func (Image) Write

func (ia Image) Write(w io.Writer) error

type ImageNodeData

type ImageNodeData struct {
	In nodes.NodeOutput[image.Image]
}

func (ImageNodeData) Process

func (pn ImageNodeData) Process() (generator.Artifact, error)

type Splat

type Splat struct {
	Mesh modeling.Mesh
}

func (Splat) Mime

func (Splat) Mime() string

func (Splat) Write

func (sa Splat) Write(w io.Writer) error

type SplatNodeData

type SplatNodeData struct {
	In nodes.NodeOutput[modeling.Mesh]
}

func (SplatNodeData) Process

func (pn SplatNodeData) Process() (generator.Artifact, error)

type Text

type Text struct {
	Data string
}

func (Text) Mime

func (Text) Mime() string

func (Text) Write

func (ta Text) Write(w io.Writer) error

type TextNodeData

type TextNodeData struct {
	In nodes.NodeOutput[string]
}

func (TextNodeData) Process

func (tand TextNodeData) Process() (generator.Artifact, error)

Jump to

Keyboard shortcuts

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