Documentation ¶
Overview ¶
Package CurveTexture provides methods for working with CurveTexture object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsCurveTexture() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) AsTexture() Texture.Instance
- func (self Instance) AsTexture2D() Texture2D.Instance
- func (self Instance) Curve() [1]gdclass.Curve
- func (self Instance) SetCurve(value [1]gdclass.Curve)
- func (self Instance) SetTextureMode(value gdclass.CurveTextureTextureMode)
- func (self Instance) SetWidth(value int)
- func (self Instance) TextureMode() gdclass.CurveTextureTextureMode
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
- type TextureMode
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 Instance ¶
type Instance [1]gdclass.CurveTexture
A 1D texture where pixel brightness corresponds to points on a [Curve] resource, either in grayscale or in red. This visual representation simplifies the task of saving curves as image files. If you need to store up to 3 curves within a single texture, use [CurveXYZTexture] instead. See also [GradientTexture1D] and [GradientTexture2D].
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsCurveTexture ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) AsTexture2D ¶
func (Instance) SetTextureMode ¶
func (self Instance) SetTextureMode(value gdclass.CurveTextureTextureMode)
func (Instance) TextureMode ¶
func (self Instance) TextureMode() gdclass.CurveTextureTextureMode
func (*Instance) UnsafePointer ¶
type TextureMode ¶
type TextureMode = gdclass.CurveTextureTextureMode //gd:CurveTexture.TextureMode
const ( /*Store the curve equally across the red, green and blue channels. This uses more video memory, but is more compatible with shaders that only read the green and blue values.*/ TextureModeRgb TextureMode = 0 /*Store the curve only in the red channel. This saves video memory, but some custom shaders may not be able to work with this.*/ TextureModeRed TextureMode = 1 )
Click to show internal directories.
Click to hide internal directories.