Documentation ¶
Overview ¶
Package SubViewport provides methods for working with SubViewport object instances.
Index ¶
- type Advanced
- type Any
- type ClearMode
- type Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsSubViewport() Instance
- func (self Instance) AsViewport() Viewport.Instance
- func (self Instance) RenderTargetClearMode() gdclass.SubViewportClearMode
- func (self Instance) RenderTargetUpdateMode() gdclass.SubViewportUpdateMode
- func (self Instance) SetRenderTargetClearMode(value gdclass.SubViewportClearMode)
- func (self Instance) SetRenderTargetUpdateMode(value gdclass.SubViewportUpdateMode)
- func (self Instance) SetSize(value Vector2i.XY)
- func (self Instance) SetSize2dOverride(value Vector2i.XY)
- func (self Instance) SetSize2dOverrideStretch(value bool)
- func (self Instance) Size() Vector2i.XY
- func (self Instance) Size2dOverride() Vector2i.XY
- func (self Instance) Size2dOverrideStretch() bool
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
- type UpdateMode
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 ClearMode ¶
type ClearMode = gdclass.SubViewportClearMode //gd:SubViewport.ClearMode
type Instance ¶
type Instance [1]gdclass.SubViewport
[SubViewport] Isolates a rectangular region of a scene to be displayed independently. This can be used, for example, to display UI in 3D space. [b]Note:[/b] [SubViewport] is a [Viewport] that isn't a [Window], i.e. it doesn't draw anything by itself. To display anything, [SubViewport] must have a non-zero size and be either put inside a [SubViewportContainer] or assigned to a [ViewportTexture].
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsSubViewport ¶
func (Instance) AsViewport ¶
func (Instance) RenderTargetClearMode ¶
func (self Instance) RenderTargetClearMode() gdclass.SubViewportClearMode
func (Instance) RenderTargetUpdateMode ¶
func (self Instance) RenderTargetUpdateMode() gdclass.SubViewportUpdateMode
func (Instance) SetRenderTargetClearMode ¶
func (self Instance) SetRenderTargetClearMode(value gdclass.SubViewportClearMode)
func (Instance) SetRenderTargetUpdateMode ¶
func (self Instance) SetRenderTargetUpdateMode(value gdclass.SubViewportUpdateMode)
func (Instance) SetSize2dOverride ¶
func (Instance) SetSize2dOverrideStretch ¶
func (Instance) Size2dOverride ¶
func (Instance) Size2dOverrideStretch ¶
func (*Instance) UnsafePointer ¶
type UpdateMode ¶
type UpdateMode = gdclass.SubViewportUpdateMode //gd:SubViewport.UpdateMode
const ( /*Do not update the render target.*/ UpdateDisabled UpdateMode = 0 /*Update the render target once, then switch to [constant UPDATE_DISABLED].*/ UpdateOnce UpdateMode = 1 /*Update the render target only when it is visible. This is the default value.*/ UpdateWhenVisible UpdateMode = 2 /*Update the render target only when its parent is visible.*/ UpdateWhenParentVisible UpdateMode = 3 /*Always update the render target.*/ UpdateAlways UpdateMode = 4 )