Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageLoader ¶
ImageLoader is an interface for retrieving images with a name.
func NewImageLoader ¶
func NewImageLoader(base string) ImageLoader
NewImageLoader creates an image loader that defaults to the given directory. Users of the loader can access anything in local storage.
func NewImageLoaderDirectory ¶
func NewImageLoaderDirectory(base string) ImageLoader
NewImageLoaderDirectory creates an image loader that is rooted at a given directory. Users of the loader will not directly be able to access anything outside the directory, but symlinks inside the directory will be followed.
type ImageLoaderFunc ¶
ImageLoaderFunc uses a function to perform loads.
type Interpolation ¶
type Interpolation int
const ( NoInterpolation Interpolation = 0 Bilinear Bicubic )
type Texture ¶
type Texture struct { Image *goray.Image Interpolation Interpolation UseAlpha bool ClipMode ClipMode RepeatX, RepeatY int }
func (*Texture) IsNormalMap ¶
func (*Texture) Resolution ¶
Click to show internal directories.
Click to hide internal directories.