Documentation
¶
Overview ¶
Package VisualShaderNodeCompare provides methods for working with VisualShaderNodeCompare object instances.
Index ¶
- type Advanced
- type Any
- type ComparisonType
- type Condition
- type Extension
- func (self *Extension[T]) AsObject() [1]gd.Object
- func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
- func (self *Extension[T]) AsResource() Resource.Instance
- func (self *Extension[T]) AsVisualShaderNode() VisualShaderNode.Instance
- func (self *Extension[T]) AsVisualShaderNodeCompare() Instance
- type Function
- type ID
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) AsVisualShaderNode() VisualShaderNode.Instance
- func (self Instance) AsVisualShaderNodeCompare() Instance
- func (self Instance) Condition() Condition
- func (self Instance) Function() Function
- func (self Instance) ID() ID
- func (self Instance) SetCondition(value Condition)
- func (self Instance) SetFunction(value Function)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetType(value ComparisonType)
- func (self Instance) Type() ComparisonType
- func (self Instance) Virtual(name string) reflect.Value
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 ComparisonType ¶
type ComparisonType int //gd:VisualShaderNodeCompare.ComparisonType
const ( /*A floating-point scalar.*/ CtypeScalar ComparisonType = 0 /*An integer scalar.*/ CtypeScalarInt ComparisonType = 1 /*An unsigned integer scalar.*/ CtypeScalarUint ComparisonType = 2 /*A 2D vector type.*/ CtypeVector2d ComparisonType = 3 /*A 3D vector type.*/ CtypeVector3d ComparisonType = 4 /*A 4D vector type.*/ CtypeVector4d ComparisonType = 5 /*A boolean type.*/ CtypeBoolean ComparisonType = 6 /*A transform ([code]mat4[/code]) type.*/ CtypeTransform ComparisonType = 7 /*Represents the size of the [enum ComparisonType] enum.*/ CtypeMax ComparisonType = 8 )
type Condition ¶
type Condition int //gd:VisualShaderNodeCompare.Condition
const ( /*The result will be [code]true[/code] if all components in the vector satisfy the comparison condition.*/ CondAll Condition = 0 /*The result will be [code]true[/code] if any component in the vector satisfies the comparison condition.*/ CondAny Condition = 1 /*Represents the size of the [enum Condition] enum.*/ CondMax Condition = 2 )
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
func (*Extension[T]) AsResource ¶
func (*Extension[T]) AsVisualShaderNode ¶
func (self *Extension[T]) AsVisualShaderNode() VisualShaderNode.Instance
func (*Extension[T]) AsVisualShaderNodeCompare ¶
type Function ¶
type Function int //gd:VisualShaderNodeCompare.Function
const ( /*Comparison for equality ([code]a == b[/code]).*/ FuncEqual Function = 0 /*Comparison for inequality ([code]a != b[/code]).*/ FuncNotEqual Function = 1 /*Comparison for greater than ([code]a > b[/code]). Cannot be used if [member type] set to [constant CTYPE_BOOLEAN] or [constant CTYPE_TRANSFORM].*/ FuncGreaterThan Function = 2 /*Comparison for greater than or equal ([code]a >= b[/code]). Cannot be used if [member type] set to [constant CTYPE_BOOLEAN] or [constant CTYPE_TRANSFORM].*/ FuncGreaterThanEqual Function = 3 /*Comparison for less than ([code]a < b[/code]). Cannot be used if [member type] set to [constant CTYPE_BOOLEAN] or [constant CTYPE_TRANSFORM].*/ FuncLessThan Function = 4 /*Comparison for less than or equal ([code]a <= b[/code]). Cannot be used if [member type] set to [constant CTYPE_BOOLEAN] or [constant CTYPE_TRANSFORM].*/ FuncLessThanEqual Function = 5 /*Represents the size of the [enum Function] enum.*/ FuncMax Function = 6 )
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.VisualShaderNodeCompare
Compares [code]a[/code] and [code]b[/code] of [member type] by [member function]. Returns a boolean scalar. Translates to [code]if[/code] instruction in shader code.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) AsVisualShaderNode ¶
func (self Instance) AsVisualShaderNode() VisualShaderNode.Instance
func (Instance) AsVisualShaderNodeCompare ¶
func (Instance) SetCondition ¶
func (Instance) SetFunction ¶
func (Instance) SetType ¶
func (self Instance) SetType(value ComparisonType)
func (Instance) Type ¶
func (self Instance) Type() ComparisonType