irmf

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package irmf parses and validates IRMF shader files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRMF

type IRMF struct {
	Author    string          `json:"author"`
	Copyright string          `json:"copyright"`
	Date      string          `json:"date"`
	Encoding  *string         `json:"encoding,omitempty"`
	IRMF      string          `json:"irmf"`
	Materials []string        `json:"materials"`
	Max       []float64       `json:"max"`
	Min       []float64       `json:"min"`
	Notes     string          `json:"notes"`
	Options   json.RawMessage `json:"options"`
	Title     string          `json:"title"`
	Units     string          `json:"units"`
	Version   string          `json:"version"`

	Shader string `json:"-"`
}

IRMF represents an IRMF shader.

type Slicer

type Slicer struct {
	// contains filtered or unexported fields
}

Slicer represents a slicer context.

func Init

func Init(view bool, width, height int, micronsResolution float64) *Slicer

Init returns a new Slicer instance.

func (*Slicer) Close

func (s *Slicer) Close()

Close closes the GLFW window and releases any Slicer resources.

func (*Slicer) New

func (s *Slicer) New(shaderSrc []byte) (*IRMF, error)

New prepares the slicer to slice a new shader model.

func (*Slicer) Slice

func (s *Slicer) Slice(zipName string) error

Slice slices an IRMF shader into a ZIP containing many voxel slices

Jump to

Keyboard shortcuts

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