2020-03-30 21:37:37 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<class name="SubViewport" inherits="Viewport" version="4.0">
|
|
|
|
<brief_description>
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
</methods>
|
|
|
|
<members>
|
|
|
|
<member name="render_target_clear_mode" type="int" setter="set_clear_mode" getter="get_clear_mode" enum="SubViewport.ClearMode" default="0">
|
2020-04-01 05:47:58 +02:00
|
|
|
The clear mode when the sub-viewport is used as a render target.
|
2020-03-30 21:37:37 +02:00
|
|
|
</member>
|
|
|
|
<member name="render_target_update_mode" type="int" setter="set_update_mode" getter="get_update_mode" enum="SubViewport.UpdateMode" default="2">
|
2020-04-01 05:47:58 +02:00
|
|
|
The update mode when the sub-viewport is used as a render target.
|
|
|
|
</member>
|
|
|
|
<member name="size" type="Vector2i" setter="set_size" getter="get_size" default="Vector2i( 0, 0 )">
|
|
|
|
The width and height of the sub-viewport.
|
|
|
|
</member>
|
|
|
|
<member name="size_2d_override" type="Vector2i" setter="set_size_2d_override" getter="get_size_2d_override" default="Vector2i( 0, 0 )">
|
|
|
|
The 2D size override of the sub-viewport. If either the width or height is [code]0[/code], the override is disabled.
|
|
|
|
</member>
|
|
|
|
<member name="size_2d_override_stretch" type="bool" setter="set_size_2d_override_stretch" getter="is_size_2d_override_stretch_enabled" default="false">
|
|
|
|
If [code]true[/code], the 2D size override affects stretch as well.
|
2020-03-30 21:37:37 +02:00
|
|
|
</member>
|
2020-04-20 11:48:00 +02:00
|
|
|
<member name="xr" type="bool" setter="set_use_xr" getter="is_using_xr" default="false">
|
|
|
|
If [code]true[/code], the sub-viewport will be used in AR/VR process.
|
|
|
|
</member>
|
2020-03-30 21:37:37 +02:00
|
|
|
</members>
|
|
|
|
<constants>
|
2020-04-20 11:48:00 +02:00
|
|
|
<constant name="CLEAR_MODE_ALWAYS" value="0" enum="ClearMode">
|
|
|
|
Always clear the render target before drawing.
|
|
|
|
</constant>
|
|
|
|
<constant name="CLEAR_MODE_NEVER" value="1" enum="ClearMode">
|
|
|
|
Never clear the render target.
|
|
|
|
</constant>
|
|
|
|
<constant name="CLEAR_MODE_ONLY_NEXT_FRAME" value="2" enum="ClearMode">
|
|
|
|
Clear the render target next frame, then switch to [constant CLEAR_MODE_NEVER].
|
|
|
|
</constant>
|
2020-03-30 21:37:37 +02:00
|
|
|
<constant name="UPDATE_DISABLED" value="0" enum="UpdateMode">
|
2020-04-01 05:47:58 +02:00
|
|
|
Do not update the render target.
|
2020-03-30 21:37:37 +02:00
|
|
|
</constant>
|
|
|
|
<constant name="UPDATE_ONCE" value="1" enum="UpdateMode">
|
2020-04-01 05:47:58 +02:00
|
|
|
Update the render target once, then switch to [constant UPDATE_DISABLED].
|
2020-03-30 21:37:37 +02:00
|
|
|
</constant>
|
|
|
|
<constant name="UPDATE_WHEN_VISIBLE" value="2" enum="UpdateMode">
|
2020-04-01 05:47:58 +02:00
|
|
|
Update the render target only when it is visible. This is the default value.
|
2020-03-30 21:37:37 +02:00
|
|
|
</constant>
|
|
|
|
<constant name="UPDATE_WHEN_PARENT_VISIBLE" value="3" enum="UpdateMode">
|
2020-04-01 05:47:58 +02:00
|
|
|
Update the render target only when the its parent is visible.
|
2020-03-30 21:37:37 +02:00
|
|
|
</constant>
|
|
|
|
<constant name="UPDATE_ALWAYS" value="4" enum="UpdateMode">
|
2020-04-01 05:47:58 +02:00
|
|
|
Always update the render target.
|
2020-03-30 21:37:37 +02:00
|
|
|
</constant>
|
|
|
|
</constants>
|
|
|
|
</class>
|