Documentation
¶
Index ¶
- Constants
- Variables
- func PathArgsRef(path string, args Args) *pathRef
- func PathRef(path string) *pathRef
- type Args
- type Array
- type Data
- type Filter
- type Slot
- type Texture
- func FromImage(device *device.Device, key string, img *image.Image, args Args) (*Texture, error)
- func FromView(device *device.Device, key string, view *image.View, args Args) (*Texture, error)
- func New(device *device.Device, key string, width, height int, format core1_0.Format, ...) (*Texture, error)
- type Wrap
Constants ¶
View Source
const Diffuse = Slot("diffuse")
View Source
const FilterLinear = Filter(core1_0.FilterLinear)
View Source
const FilterNearest = Filter(core1_0.FilterNearest)
View Source
const Normal = Slot("normal")
View Source
const WrapBorder = Wrap(core1_0.SamplerAddressModeClampToBorder)
View Source
const WrapClamp = Wrap(core1_0.SamplerAddressModeClampToEdge)
View Source
const WrapMirror = Wrap(core1_0.SamplerAddressModeMirroredRepeat)
View Source
const WrapRepeat = Wrap(core1_0.SamplerAddressModeRepeat)
Variables ¶
View Source
var Checker = PathRef("textures/uv_checker.png")
Functions ¶
func PathArgsRef ¶
Types ¶
type Args ¶
type Args struct {
Filter Filter
Wrap Wrap
Aspect core1_0.ImageAspectFlags
Usage core1_0.ImageUsageFlags
Border core1_0.BorderColor
Mipmaps bool
}
type Texture ¶
type Texture struct {
Args
// contains filtered or unexported fields
}
type Wrap ¶
type Wrap core1_0.SamplerAddressMode
Click to show internal directories.
Click to hide internal directories.