io

package
v0.0.0-...-f623fcb Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadImage

func LoadImage(path string, opts ...ReadImageOption) (*image.RGBA, error)

func LoadOBJ

func LoadOBJ(data io.Reader) (geometry.Mesh, error)

LoadOBJ loads a .obj file to a TriangleMesh object

func MustLoadImage

func MustLoadImage(path string, opts ...ReadImageOption) *image.RGBA

MustLoadImage loads a given file into a texture.

func MustLoadMesh

func MustLoadMesh(path string) geometry.Mesh

MustLoadMesh loads a given file to a triangle mesh.

Types

type ImageOption

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

ImageOption offers several basic custom conversions of the image.

type ReadImageOption

type ReadImageOption func(o *ImageOption)

func WithGammaCorrection

func WithGammaCorrection(enable bool) ReadImageOption

Jump to

Keyboard shortcuts

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