Documentation
¶
Overview ¶
This object is used by RenderingDevice.
Index ¶
- type Advanced
- type Any
- type Extension
- type ID
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRDPipelineRasterizationState() Instance
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) CullMode() Rendering.PolygonCullMode
- func (self Instance) DepthBiasClamp() Float.X
- func (self Instance) DepthBiasConstantFactor() Float.X
- func (self Instance) DepthBiasEnabled() bool
- func (self Instance) DepthBiasSlopeFactor() Float.X
- func (self Instance) DiscardPrimitives() bool
- func (self Instance) EnableDepthClamp() bool
- func (self Instance) FrontFace() Rendering.PolygonFrontFace
- func (self Instance) ID() ID
- func (self Instance) LineWidth() Float.X
- func (self Instance) PatchControlPoints() int
- func (self Instance) SetCullMode(value Rendering.PolygonCullMode)
- func (self Instance) SetDepthBiasClamp(value Float.X)
- func (self Instance) SetDepthBiasConstantFactor(value Float.X)
- func (self Instance) SetDepthBiasEnabled(value bool)
- func (self Instance) SetDepthBiasSlopeFactor(value Float.X)
- func (self Instance) SetDiscardPrimitives(value bool)
- func (self Instance) SetEnableDepthClamp(value bool)
- func (self Instance) SetFrontFace(value Rendering.PolygonFrontFace)
- func (self Instance) SetLineWidth(value Float.X)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetPatchControlPoints(value int)
- func (self Instance) SetWireframe(value bool)
- func (self Instance) Virtual(name string) reflect.Value
- func (self Instance) Wireframe() bool
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 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]) AsRDPipelineRasterizationState ¶
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
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.RDPipelineRasterizationState
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsRDPipelineRasterizationState ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) CullMode ¶
func (self Instance) CullMode() Rendering.PolygonCullMode
The cull mode to use when drawing polygons, which determines whether front faces or backfaces are hidden.
func (Instance) DepthBiasClamp ¶
A limit for how much each depth value can be offset. If negative, it serves as a minimum value, but if positive, it serves as a maximum value.
func (Instance) DepthBiasConstantFactor ¶
A constant offset added to each depth value. Applied after DepthBiasSlopeFactor.
func (Instance) DepthBiasEnabled ¶
If true, each generated depth value will by offset by some amount. The specific amount is generated per polygon based on the values of DepthBiasSlopeFactor and DepthBiasConstantFactor.
func (Instance) DepthBiasSlopeFactor ¶
A constant scale applied to the slope of each polygons' depth. Applied before DepthBiasConstantFactor.
func (Instance) DiscardPrimitives ¶
If true, primitives are discarded immediately before the rasterization stage.
func (Instance) EnableDepthClamp ¶
If true, clamps depth values according to the minimum and maximum depth of the associated viewport.
func (Instance) FrontFace ¶
func (self Instance) FrontFace() Rendering.PolygonFrontFace
The winding order to use to determine which face of a triangle is considered its front face.
func (Instance) LineWidth ¶
The line width to use when drawing lines (in pixels). Thick lines may not be supported on all hardware.
func (Instance) PatchControlPoints ¶
The number of control points to use when drawing a patch with tessellation enabled. Higher values result in higher quality at the cost of performance.
func (Instance) SetCullMode ¶
func (self Instance) SetCullMode(value Rendering.PolygonCullMode)
SetCullMode sets the property returned by [GetCullMode].
func (Instance) SetDepthBiasClamp ¶
SetDepthBiasClamp sets the property returned by [GetDepthBiasClamp].
func (Instance) SetDepthBiasConstantFactor ¶
SetDepthBiasConstantFactor sets the property returned by [GetDepthBiasConstantFactor].
func (Instance) SetDepthBiasEnabled ¶
SetDepthBiasEnabled sets the property returned by [GetDepthBiasEnabled].
func (Instance) SetDepthBiasSlopeFactor ¶
SetDepthBiasSlopeFactor sets the property returned by [GetDepthBiasSlopeFactor].
func (Instance) SetDiscardPrimitives ¶
SetDiscardPrimitives sets the property returned by [GetDiscardPrimitives].
func (Instance) SetEnableDepthClamp ¶
SetEnableDepthClamp sets the property returned by [GetEnableDepthClamp].
func (Instance) SetFrontFace ¶
func (self Instance) SetFrontFace(value Rendering.PolygonFrontFace)
SetFrontFace sets the property returned by [GetFrontFace].
func (Instance) SetLineWidth ¶
SetLineWidth sets the property returned by [GetLineWidth].
func (Instance) SetPatchControlPoints ¶
SetPatchControlPoints sets the property returned by [GetPatchControlPoints].
func (Instance) SetWireframe ¶
SetWireframe sets the property returned by [GetWireframe].