Documentation ¶
Overview ¶
Package CanvasItemMaterial provides methods for working with CanvasItemMaterial object instances.
Index ¶
- type Advanced
- type Any
- type BlendMode
- type Instance
- func (self Instance) AsCanvasItemMaterial() Instance
- func (self Instance) AsMaterial() Material.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) BlendMode() gdclass.CanvasItemMaterialBlendMode
- func (self Instance) LightMode() gdclass.CanvasItemMaterialLightMode
- func (self Instance) ParticlesAnimHFrames() int
- func (self Instance) ParticlesAnimLoop() bool
- func (self Instance) ParticlesAnimVFrames() int
- func (self Instance) ParticlesAnimation() bool
- func (self Instance) SetBlendMode(value gdclass.CanvasItemMaterialBlendMode)
- func (self Instance) SetLightMode(value gdclass.CanvasItemMaterialLightMode)
- func (self Instance) SetParticlesAnimHFrames(value int)
- func (self Instance) SetParticlesAnimLoop(value bool)
- func (self Instance) SetParticlesAnimVFrames(value int)
- func (self Instance) SetParticlesAnimation(value bool)
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
- type LightMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type BlendMode ¶
type BlendMode = gdclass.CanvasItemMaterialBlendMode //gd:CanvasItemMaterial.BlendMode
const ( /*Mix blending mode. Colors are assumed to be independent of the alpha (opacity) value.*/ BlendModeMix BlendMode = 0 /*Additive blending mode.*/ BlendModeAdd BlendMode = 1 /*Subtractive blending mode.*/ BlendModeSub BlendMode = 2 /*Multiplicative blending mode.*/ BlendModeMul BlendMode = 3 /*Mix blending mode. Colors are assumed to be premultiplied by the alpha (opacity) value.*/ BlendModePremultAlpha BlendMode = 4 )
type Instance ¶
type Instance [1]gdclass.CanvasItemMaterial
[CanvasItemMaterial]s provide a means of modifying the textures associated with a CanvasItem. They specialize in describing blend and lighting behaviors for textures. Use a [ShaderMaterial] to more fully customize a material's interactions with a [CanvasItem].
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsCanvasItemMaterial ¶
func (Instance) AsMaterial ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) BlendMode ¶
func (self Instance) BlendMode() gdclass.CanvasItemMaterialBlendMode
func (Instance) LightMode ¶
func (self Instance) LightMode() gdclass.CanvasItemMaterialLightMode
func (Instance) ParticlesAnimHFrames ¶
func (Instance) ParticlesAnimLoop ¶
func (Instance) ParticlesAnimVFrames ¶
func (Instance) ParticlesAnimation ¶
func (Instance) SetBlendMode ¶
func (self Instance) SetBlendMode(value gdclass.CanvasItemMaterialBlendMode)
func (Instance) SetLightMode ¶
func (self Instance) SetLightMode(value gdclass.CanvasItemMaterialLightMode)
func (Instance) SetParticlesAnimHFrames ¶
func (Instance) SetParticlesAnimLoop ¶
func (Instance) SetParticlesAnimVFrames ¶
func (Instance) SetParticlesAnimation ¶
func (*Instance) UnsafePointer ¶
type LightMode ¶
type LightMode = gdclass.CanvasItemMaterialLightMode //gd:CanvasItemMaterial.LightMode
Click to show internal directories.
Click to hide internal directories.