Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustLoadImage ¶
func MustLoadImage(path string, opts ...ReadImageOption) *image.RGBA
MustLoadImage loads a given file into a texture.
func MustLoadMesh ¶
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
Click to show internal directories.
Click to hide internal directories.