Documentation
¶
Overview ¶
Package assets contains opt-in project resource implementations. Import it from an application setup when that application needs raster images or audio resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultResourceFeature ¶
type DefaultResourceFeature = Feature[ graphics.ImageDecoderSet[ graphicsgif.Decoder, graphicsjpeg.Decoder, graphicspng.Decoder, graphicswebp.Decoder, graphics.NoImageDecoder, ], font.DecoderSet[font.SFNTDecoder, fontwoff2.Decoder], windowpng.Decoder, codec.DefaultDecoder, ]
DefaultResourceFeature is the standard decoder bundle used by projects whose resource packages use the built-in asset formats.
type Feature ¶
type Feature[I graphics.ImageDecoder, F font.Decoder, K window.IconDecoder, A audio.Decoder] struct{}
Feature installs statically selected image, font, and audio decoder collections. Its type arguments are compile-time link boundaries.
func (Feature[I, F, K, A]) ConfigureResources ¶
func (Feature[I, F, K, A]) ConfigureResources(context project.ResourceLoadContext, entries project.ResourceEntries) error