godot/doc/classes/VisualServer.xml

4424 lines
133 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
<class name="VisualServer" inherits="Object" category="Core" version="3.1">
<brief_description>
Server for anything visible.
</brief_description>
<description>
Server for anything visible. The visual server is the API backend for everything visible. The whole scene system mounts on it to display.
The visual server is completely opaque, the internals are entirely implementation specific and cannot be accessed.
</description>
<tutorials>
</tutorials>
<demos>
</demos>
<methods>
2017-10-21 10:02:08 +00:00
<method name="black_bars_set_images">
<return type="void">
</return>
<argument index="0" name="left" type="RID">
</argument>
<argument index="1" name="top" type="RID">
</argument>
<argument index="2" name="right" type="RID">
</argument>
<argument index="3" name="bottom" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets images to be rendered in the window margin.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="black_bars_set_margins">
<return type="void">
</return>
<argument index="0" name="left" type="int">
</argument>
<argument index="1" name="top" type="int">
</argument>
<argument index="2" name="right" type="int">
</argument>
<argument index="3" name="bottom" type="int">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets margin size, where black bars (or images, if [method black_bars_set_images] was used) are rendered.
2017-10-21 10:02:08 +00:00
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="camera_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="camera_set_cull_mask">
<return type="void">
</return>
<argument index="0" name="camera" type="RID">
</argument>
<argument index="1" name="layers" type="int">
</argument>
<description>
</description>
</method>
<method name="camera_set_environment">
<return type="void">
</return>
<argument index="0" name="camera" type="RID">
</argument>
<argument index="1" name="env" type="RID">
</argument>
<description>
</description>
</method>
<method name="camera_set_orthogonal">
<return type="void">
</return>
<argument index="0" name="camera" type="RID">
</argument>
<argument index="1" name="size" type="float">
</argument>
<argument index="2" name="z_near" type="float">
</argument>
<argument index="3" name="z_far" type="float">
</argument>
<description>
</description>
</method>
<method name="camera_set_perspective">
<return type="void">
</return>
<argument index="0" name="camera" type="RID">
</argument>
<argument index="1" name="fovy_degrees" type="float">
</argument>
<argument index="2" name="z_near" type="float">
</argument>
<argument index="3" name="z_far" type="float">
</argument>
<description>
</description>
</method>
<method name="camera_set_transform">
<return type="void">
</return>
<argument index="0" name="camera" type="RID">
</argument>
<argument index="1" name="transform" type="Transform">
</argument>
<description>
</description>
</method>
<method name="camera_set_use_vertical_aspect">
<return type="void">
</return>
<argument index="0" name="camera" type="RID">
</argument>
<argument index="1" name="enable" type="bool">
</argument>
<description>
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="canvas_create">
<return type="RID">
</return>
<description>
2017-11-26 15:37:37 +00:00
Creates a canvas and returns the assigned [RID].
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_circle">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="pos" type="Vector2">
</argument>
<argument index="2" name="radius" type="float">
</argument>
<argument index="3" name="color" type="Color">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Adds a circle command to the [CanvasItem]'s draw commands.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_clip_ignore">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="ignore" type="bool">
</argument>
<description>
2017-11-26 15:37:37 +00:00
If ignore is [code]true[/code], the VisualServer does not perform clipping.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_line">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="from" type="Vector2">
</argument>
<argument index="2" name="to" type="Vector2">
</argument>
<argument index="3" name="color" type="Color">
</argument>
<argument index="4" name="width" type="float" default="1.0">
</argument>
<argument index="5" name="antialiased" type="bool" default="false">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Adds a line command to the [CanvasItem]'s draw commands.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_mesh">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="mesh" type="RID">
</argument>
<argument index="2" name="texture" type="RID">
</argument>
<argument index="3" name="normal_map" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
<description>
2017-11-26 15:37:37 +00:00
Adds a [Mesh] to the [CanvasItem]'s draw commands. Only affects its aabb at the moment.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_multimesh">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="mesh" type="RID">
</argument>
<argument index="2" name="texture" type="RID">
</argument>
<argument index="3" name="normal_map" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
<description>
2017-11-26 15:37:37 +00:00
Adds a [MultiMesh] to the [CanvasItem]'s draw commands. Only affects its aabb at the moment.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_nine_patch">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="rect" type="Rect2">
</argument>
<argument index="2" name="source" type="Rect2">
</argument>
<argument index="3" name="texture" type="RID">
</argument>
<argument index="4" name="topleft" type="Vector2">
</argument>
<argument index="5" name="bottomright" type="Vector2">
</argument>
<argument index="6" name="x_axis_mode" type="int" enum="VisualServer.NinePatchAxisMode" default="0">
</argument>
<argument index="7" name="y_axis_mode" type="int" enum="VisualServer.NinePatchAxisMode" default="0">
</argument>
<argument index="8" name="draw_center" type="bool" default="true">
</argument>
<argument index="9" name="modulate" type="Color" default="Color( 1, 1, 1, 1 )">
</argument>
<argument index="10" name="normal_map" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Adds a nine patch image to the [CanvasItem]'s draw commands.
See [NinePatchRect] for more explanation.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_particles">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="particles" type="RID">
</argument>
<argument index="2" name="texture" type="RID">
</argument>
<argument index="3" name="normal_map" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Adds a particles system to the [CanvasItem]'s draw commands.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_polygon">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="points" type="PoolVector2Array">
</argument>
<argument index="2" name="colors" type="PoolColorArray">
</argument>
<argument index="3" name="uvs" type="PoolVector2Array" default="PoolVector2Array( )">
</argument>
<argument index="4" name="texture" type="RID">
</argument>
<argument index="5" name="normal_map" type="RID">
</argument>
<argument index="6" name="antialiased" type="bool" default="false">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Adds a polygon to the [CanvasItem]'s draw commands.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_polyline">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="points" type="PoolVector2Array">
</argument>
<argument index="2" name="colors" type="PoolColorArray">
</argument>
<argument index="3" name="width" type="float" default="1.0">
</argument>
<argument index="4" name="antialiased" type="bool" default="false">
</argument>
<description>
Adds a polyline, which is a line from multiple points with a width, to the [CanvasItem]'s draw commands.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_primitive">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="points" type="PoolVector2Array">
</argument>
<argument index="2" name="colors" type="PoolColorArray">
</argument>
<argument index="3" name="uvs" type="PoolVector2Array">
</argument>
<argument index="4" name="texture" type="RID">
</argument>
<argument index="5" name="width" type="float" default="1.0">
</argument>
<argument index="6" name="normal_map" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Adds a primitive to the [CanvasItem]'s draw commands.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_rect">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="rect" type="Rect2">
</argument>
<argument index="2" name="color" type="Color">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Adds a rectangle to the [CanvasItem]'s draw commands.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_set_transform">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="transform" type="Transform2D">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Adds a [Transform2D] command to the [CanvasItem]'s draw commands.
This sets the extra_matrix uniform when executed. This affects the later commands of the canvas item.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_texture_rect">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="rect" type="Rect2">
</argument>
<argument index="2" name="texture" type="RID">
</argument>
<argument index="3" name="tile" type="bool" default="false">
</argument>
<argument index="4" name="modulate" type="Color" default="Color( 1, 1, 1, 1 )">
</argument>
<argument index="5" name="transpose" type="bool" default="false">
</argument>
<argument index="6" name="normal_map" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Adds a textured rect to the [CanvasItem]'s draw commands.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_texture_rect_region">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="rect" type="Rect2">
</argument>
<argument index="2" name="texture" type="RID">
</argument>
<argument index="3" name="src_rect" type="Rect2">
</argument>
<argument index="4" name="modulate" type="Color" default="Color( 1, 1, 1, 1 )">
</argument>
<argument index="5" name="transpose" type="bool" default="false">
</argument>
<argument index="6" name="normal_map" type="RID">
</argument>
<argument index="7" name="clip_uv" type="bool" default="true">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Adds a texture rect with region setting to the [CanvasItem]'s draw commands.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_add_triangle_array">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="indices" type="PoolIntArray">
</argument>
<argument index="2" name="points" type="PoolVector2Array">
</argument>
<argument index="3" name="colors" type="PoolColorArray">
</argument>
<argument index="4" name="uvs" type="PoolVector2Array" default="PoolVector2Array( )">
</argument>
2018-05-12 07:38:00 +00:00
<argument index="5" name="bones" type="PoolIntArray" default="PoolIntArray( )">
2017-10-21 10:02:08 +00:00
</argument>
2018-05-12 07:38:00 +00:00
<argument index="6" name="weights" type="PoolRealArray" default="PoolRealArray( )">
2017-10-21 10:02:08 +00:00
</argument>
2018-05-12 07:38:00 +00:00
<argument index="7" name="texture" type="RID">
</argument>
<argument index="8" name="count" type="int" default="-1">
</argument>
<argument index="9" name="normal_map" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
<method name="canvas_item_clear">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Clears the [CanvasItem] and removes all commands in it.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_create">
<return type="RID">
</return>
<description>
2017-11-26 15:37:37 +00:00
Creates a new [CanvasItem] and returns its [RID].
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_clip">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="clip" type="bool">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets clipping for the [CanvasItem].
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_copy_to_backbuffer">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<argument index="2" name="rect" type="Rect2">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the [CanvasItem] to copy a rect to the backbuffer.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_custom_rect">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="use_custom_rect" type="bool">
</argument>
<argument index="2" name="rect" type="Rect2" default="Rect2( 0, 0, 0, 0 )">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Defines a custom drawing rectangle for the [CanvasItem].
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_distance_field_mode">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
</description>
</method>
<method name="canvas_item_set_draw_behind_parent">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets [CanvasItem] to be drawn behind its parent.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_draw_index">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the index for the [CanvasItem].
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_light_mask">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="mask" type="int">
</argument>
<description>
2017-11-26 15:37:37 +00:00
The light mask. See [LightOccluder2D] for more information on light masks.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_material">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="material" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets a new material to the [CanvasItem].
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_modulate">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="color" type="Color">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the color that modulates the [CanvasItem] and its children.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_parent">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="parent" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the parent for the [CanvasItem].
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_self_modulate">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="color" type="Color">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the color that modulates the [CanvasItem] without children.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_sort_children_by_y">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets if [CanvasItem]'s children should be sorted by y-position.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_transform">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="transform" type="Transform2D">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the [CanvasItem]'s [Transform2D].
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_use_parent_material">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets if the [CanvasItem] uses its parent's material.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_item_set_visible">
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
<argument index="1" name="visible" type="bool">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets if the canvas item (including its children) is visible.
2017-10-21 10:02:08 +00:00
</description>
</method>
2018-01-04 00:48:24 +00:00
<method name="canvas_item_set_z_as_relative_to_parent">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
2018-01-04 00:48:24 +00:00
<argument index="1" name="enabled" type="bool">
2017-10-21 10:02:08 +00:00
</argument>
<description>
2018-01-04 00:48:24 +00:00
If this is enabled, the z-index of the parent will be added to the children's z-index.
2017-10-21 10:02:08 +00:00
</description>
</method>
2018-01-04 00:48:24 +00:00
<method name="canvas_item_set_z_index">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
<argument index="0" name="item" type="RID">
</argument>
2018-01-04 00:48:24 +00:00
<argument index="1" name="z_index" type="int">
2017-10-21 10:02:08 +00:00
</argument>
<description>
2018-01-04 00:48:24 +00:00
Sets the [CanvasItem]'s z-index, i.e. its draw order (lower indexes are drawn first).
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_attach_to_canvas">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="canvas" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Attaches the canvas light to the canvas. Removes it from its previous canvas.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_create">
<return type="RID">
</return>
<description>
2017-11-26 15:37:37 +00:00
Creates a canvas light.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_occluder_attach_to_canvas">
<return type="void">
</return>
<argument index="0" name="occluder" type="RID">
</argument>
<argument index="1" name="canvas" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Attaches a light occluder to the canvas. Removes it from its previous canvas.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_occluder_create">
<return type="RID">
</return>
<description>
2017-11-26 15:37:37 +00:00
Creates a light occluder.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_occluder_set_enabled">
<return type="void">
</return>
<argument index="0" name="occluder" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Enables or disables light occluder.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_occluder_set_light_mask">
<return type="void">
</return>
<argument index="0" name="occluder" type="RID">
</argument>
<argument index="1" name="mask" type="int">
</argument>
<description>
2017-11-26 15:37:37 +00:00
The light mask. See [LightOccluder2D] for more information on light masks
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_occluder_set_polygon">
<return type="void">
</return>
<argument index="0" name="occluder" type="RID">
</argument>
<argument index="1" name="polygon" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets a light occluder's polygon.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_occluder_set_transform">
<return type="void">
</return>
<argument index="0" name="occluder" type="RID">
</argument>
<argument index="1" name="transform" type="Transform2D">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets a light occluder's [Transform2D].
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_color">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="color" type="Color">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the color for a light.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_enabled">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Enables or disables a canvas light.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_energy">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="energy" type="float">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets a canvas light's energy.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_height">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="height" type="float">
</argument>
<description>
2017-12-09 23:43:30 +00:00
Sets a canvas light's height.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_item_cull_mask">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="mask" type="int">
</argument>
<description>
2017-11-26 15:37:37 +00:00
The light mask. See [LightOccluder2D] for more information on light masks
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_item_shadow_cull_mask">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="mask" type="int">
</argument>
<description>
The shadow mask. binary about which layers this canvas light affects which canvas item's shadows. See [LightOccluder2D] for more information on light masks.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_layer_range">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="min_layer" type="int">
</argument>
<argument index="2" name="max_layer" type="int">
</argument>
<description>
2017-11-26 15:37:37 +00:00
The layer range that gets rendered with this light.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_mode">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="mode" type="int" enum="VisualServer.CanvasLightMode">
</argument>
<description>
2017-11-26 15:37:37 +00:00
The mode of the light, see CANVAS_LIGHT_MODE_* constants.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_scale">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="scale" type="float">
</argument>
<description>
</description>
</method>
<method name="canvas_light_set_shadow_buffer_size">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="size" type="int">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the width of the shadow buffer, size gets scaled to the next power of two for this.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_shadow_color">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="color" type="Color">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the color of the canvas light's shadow.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_shadow_enabled">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Enables or disables the canvas light's shadow.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_shadow_filter">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="filter" type="int" enum="VisualServer.CanvasLightShadowFilter">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the canvas light's shadow's filter, see CANVAS_LIGHT_SHADOW_FILTER_* constants.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_shadow_gradient_length">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="length" type="float">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the length of the shadow's gradient.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_shadow_smooth">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="smooth" type="float">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Smoothens the shadow. The lower, the more smooth.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_texture">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="texture" type="RID">
</argument>
<description>
</description>
</method>
<method name="canvas_light_set_texture_offset">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="offset" type="Vector2">
</argument>
<description>
</description>
</method>
<method name="canvas_light_set_transform">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="transform" type="Transform2D">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the canvas light's [Transform2D].
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_light_set_z_range">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="min_z" type="int">
</argument>
<argument index="2" name="max_z" type="int">
</argument>
<description>
</description>
</method>
<method name="canvas_occluder_polygon_create">
<return type="RID">
</return>
<description>
2017-11-26 15:37:37 +00:00
Creates a new light occluder polygon.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_occluder_polygon_set_cull_mode">
<return type="void">
</return>
<argument index="0" name="occluder_polygon" type="RID">
</argument>
<argument index="1" name="mode" type="int" enum="VisualServer.CanvasOccluderPolygonCullMode">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets an occluder polygons cull mode. See CANVAS_OCCLUDER_POLYGON_CULL_MODE_* constants.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_occluder_polygon_set_shape">
<return type="void">
</return>
<argument index="0" name="occluder_polygon" type="RID">
</argument>
<argument index="1" name="shape" type="PoolVector2Array">
</argument>
<argument index="2" name="closed" type="bool">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the shape of the occluder polygon.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_occluder_polygon_set_shape_as_lines">
<return type="void">
</return>
<argument index="0" name="occluder_polygon" type="RID">
</argument>
<argument index="1" name="shape" type="PoolVector2Array">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the shape of the occluder polygon as lines.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_set_item_mirroring">
<return type="void">
</return>
<argument index="0" name="canvas" type="RID">
</argument>
<argument index="1" name="item" type="RID">
</argument>
<argument index="2" name="mirroring" type="Vector2">
</argument>
<description>
2017-11-26 15:37:37 +00:00
A copy of the canvas item will be drawn with a local offset of the mirroring [Vector2].
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="canvas_set_modulate">
<return type="void">
</return>
<argument index="0" name="canvas" type="RID">
</argument>
<argument index="1" name="color" type="Color">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Modulates all colors in the given canvas.
2017-10-21 10:02:08 +00:00
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="directional_light_create">
<return type="RID">
</return>
<description>
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="draw">
<return type="void">
</return>
2017-11-27 22:37:47 +00:00
<argument index="0" name="swap_buffers" type="bool" default="true">
</argument>
<argument index="1" name="frame_step" type="float" default="0.0">
</argument>
2017-10-21 10:02:08 +00:00
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_create">
<return type="RID">
2017-10-21 10:02:08 +00:00
</return>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_adjustment">
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="enable" type="bool">
</argument>
<argument index="2" name="brightness" type="float">
</argument>
<argument index="3" name="contrast" type="float">
</argument>
<argument index="4" name="saturation" type="float">
</argument>
<argument index="5" name="ramp" type="RID">
2017-11-27 22:37:47 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_ambient_light">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="color" type="Color">
</argument>
<argument index="2" name="energy" type="float" default="1.0">
</argument>
<argument index="3" name="sky_contibution" type="float" default="0.0">
</argument>
2017-10-21 10:02:08 +00:00
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_background">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="bg" type="int" enum="VisualServer.EnvironmentBG">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_bg_color">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="color" type="Color">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_bg_energy">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="energy" type="float">
</argument>
2017-10-21 10:02:08 +00:00
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_canvas_max_layer">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="max_layer" type="int">
</argument>
2017-10-21 10:02:08 +00:00
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_dof_blur_far">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="enable" type="bool">
</argument>
<argument index="2" name="distance" type="float">
</argument>
<argument index="3" name="transition" type="float">
</argument>
<argument index="4" name="far_amount" type="float">
</argument>
<argument index="5" name="quality" type="int" enum="VisualServer.EnvironmentDOFBlurQuality">
</argument>
2017-10-21 10:02:08 +00:00
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_dof_blur_near">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="enable" type="bool">
</argument>
<argument index="2" name="distance" type="float">
</argument>
<argument index="3" name="transition" type="float">
</argument>
<argument index="4" name="far_amount" type="float">
</argument>
<argument index="5" name="quality" type="int" enum="VisualServer.EnvironmentDOFBlurQuality">
</argument>
2017-10-21 10:02:08 +00:00
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_fog">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="enable" type="bool">
</argument>
<argument index="2" name="color" type="Color">
</argument>
<argument index="3" name="sun_color" type="Color">
</argument>
<argument index="4" name="sun_amount" type="float">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_fog_depth">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="enable" type="bool">
</argument>
<argument index="2" name="depth_begin" type="float">
</argument>
2018-11-20 08:34:45 +00:00
<argument index="3" name="depth_end" type="float">
2018-02-19 09:47:16 +00:00
</argument>
2018-11-20 08:34:45 +00:00
<argument index="4" name="depth_curve" type="float">
2018-02-19 09:47:16 +00:00
</argument>
2018-11-20 08:34:45 +00:00
<argument index="5" name="transmit" type="bool">
</argument>
<argument index="6" name="transmit_curve" type="float">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_fog_height">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="enable" type="bool">
</argument>
<argument index="2" name="min_height" type="float">
</argument>
<argument index="3" name="max_height" type="float">
</argument>
<argument index="4" name="height_curve" type="float">
</argument>
2017-10-21 10:02:08 +00:00
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_glow">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="enable" type="bool">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="2" name="level_flags" type="int">
</argument>
<argument index="3" name="intensity" type="float">
</argument>
<argument index="4" name="strength" type="float">
</argument>
<argument index="5" name="bloom_threshold" type="float">
</argument>
<argument index="6" name="blend_mode" type="int" enum="VisualServer.EnvironmentGlowBlendMode">
</argument>
<argument index="7" name="hdr_bleed_threshold" type="float">
</argument>
<argument index="8" name="hdr_bleed_scale" type="float">
</argument>
2018-12-04 20:57:07 +00:00
<argument index="9" name="hdr_luminance_cap" type="float">
</argument>
<argument index="10" name="bicubic_upscale" type="bool">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_sky">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="sky" type="RID">
</argument>
2017-10-21 10:02:08 +00:00
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_sky_custom_fov">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="scale" type="float">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
<method name="environment_set_sky_orientation">
<return type="void">
</return>
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="orientation" type="Basis">
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_ssao">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
</argument>
<argument index="1" name="enable" type="bool">
</argument>
<argument index="2" name="radius" type="float">
</argument>
<argument index="3" name="intensity" type="float">
</argument>
<argument index="4" name="radius2" type="float">
</argument>
<argument index="5" name="intensity2" type="float">
</argument>
<argument index="6" name="bias" type="float">
</argument>
<argument index="7" name="light_affect" type="float">
</argument>
<argument index="8" name="ao_channel_affect" type="float">
</argument>
<argument index="9" name="color" type="Color">
2018-02-19 09:47:16 +00:00
</argument>
<argument index="10" name="quality" type="int" enum="VisualServer.EnvironmentSSAOQuality">
2018-02-19 09:47:16 +00:00
</argument>
<argument index="11" name="blur" type="int" enum="VisualServer.EnvironmentSSAOBlur">
2018-02-19 09:47:16 +00:00
</argument>
<argument index="12" name="bilateral_sharpness" type="float">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_ssr">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="enable" type="bool">
</argument>
<argument index="2" name="max_steps" type="int">
</argument>
<argument index="3" name="fade_in" type="float">
</argument>
<argument index="4" name="fade_out" type="float">
</argument>
<argument index="5" name="depth_tolerance" type="float">
</argument>
<argument index="6" name="roughness" type="bool">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="environment_set_tonemap">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="env" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="tone_mapper" type="int" enum="VisualServer.EnvironmentToneMapper">
</argument>
<argument index="2" name="exposure" type="float">
</argument>
<argument index="3" name="white" type="float">
</argument>
<argument index="4" name="auto_exposure" type="bool">
</argument>
<argument index="5" name="min_luminance" type="float">
</argument>
<argument index="6" name="max_luminance" type="float">
</argument>
<argument index="7" name="auto_exp_speed" type="float">
</argument>
<argument index="8" name="auto_exp_grey" type="float">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="finish">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<description>
Removes buffers and clears testcubes.
</description>
</method>
<method name="force_draw">
<return type="void">
</return>
<argument index="0" name="swap_buffers" type="bool" default="true">
2017-10-21 10:02:08 +00:00
</argument>
<argument index="1" name="frame_step" type="float" default="0.0">
</argument>
2017-10-21 10:02:08 +00:00
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="force_sync">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<description>
Synchronizes threads.
2018-02-19 09:47:16 +00:00
</description>
</method>
<method name="free_rid">
<return type="void">
</return>
<argument index="0" name="rid" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<description>
Tries to free an object in the VisualServer.
</description>
</method>
<method name="get_render_info">
<return type="int">
</return>
<argument index="0" name="info" type="int" enum="VisualServer.RenderInfo">
</argument>
<description>
Returns a certain information, see RENDER_INFO_* for options.
</description>
</method>
<method name="get_test_cube">
<return type="RID">
</return>
<description>
Returns the id of the test cube. Creates one if none exists.
</description>
</method>
<method name="get_test_texture">
<return type="RID">
</return>
<description>
Returns the id of the test texture. Creates one if none exists.
</description>
</method>
<method name="get_white_texture">
<return type="RID">
</return>
<description>
Returns the id of a white texture. Creates one if none exists.
</description>
</method>
<method name="gi_probe_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="gi_probe_get_bias" qualifiers="const">
<return type="float">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_get_bounds" qualifiers="const">
<return type="AABB">
</return>
<argument index="0" name="probe" type="RID">
</argument>
<description>
</description>
</method>
<method name="gi_probe_get_cell_size" qualifiers="const">
<return type="float">
</return>
<argument index="0" name="probe" type="RID">
</argument>
<description>
</description>
</method>
<method name="gi_probe_get_dynamic_data" qualifiers="const">
<return type="PoolIntArray">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_get_dynamic_range" qualifiers="const">
<return type="int">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_get_energy" qualifiers="const">
<return type="float">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_get_normal_bias" qualifiers="const">
<return type="float">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_get_propagation" qualifiers="const">
<return type="float">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_get_to_cell_xform" qualifiers="const">
<return type="Transform">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_is_compressed" qualifiers="const">
<return type="bool">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_is_interior" qualifiers="const">
<return type="bool">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_set_bias">
<return type="void">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
2018-08-20 22:35:30 +00:00
<argument index="1" name="bias" type="float">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_set_bounds">
<return type="void">
</return>
<argument index="0" name="probe" type="RID">
</argument>
<argument index="1" name="bounds" type="AABB">
</argument>
<description>
</description>
</method>
<method name="gi_probe_set_cell_size">
<return type="void">
</return>
<argument index="0" name="probe" type="RID">
</argument>
<argument index="1" name="range" type="float">
</argument>
<description>
</description>
</method>
<method name="gi_probe_set_compress">
<return type="void">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
2018-08-20 22:35:30 +00:00
<argument index="1" name="enable" type="bool">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_set_dynamic_data">
<return type="void">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
2018-08-20 22:35:30 +00:00
<argument index="1" name="data" type="PoolIntArray">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_set_dynamic_range">
<return type="void">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
2018-08-20 22:35:30 +00:00
<argument index="1" name="range" type="int">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_set_energy">
<return type="void">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
2018-08-20 22:35:30 +00:00
<argument index="1" name="energy" type="float">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_set_interior">
<return type="void">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
2018-08-20 22:35:30 +00:00
<argument index="1" name="enable" type="bool">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_set_normal_bias">
<return type="void">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
2018-08-20 22:35:30 +00:00
<argument index="1" name="bias" type="float">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_set_propagation">
<return type="void">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
2018-08-20 22:35:30 +00:00
<argument index="1" name="propagation" type="float">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="gi_probe_set_to_cell_xform">
<return type="void">
</return>
2018-08-20 22:35:30 +00:00
<argument index="0" name="probe" type="RID">
2018-02-19 09:47:16 +00:00
</argument>
2018-08-20 22:35:30 +00:00
<argument index="1" name="xform" type="Transform">
2018-02-19 09:47:16 +00:00
</argument>
<description>
</description>
</method>
<method name="has_changed" qualifiers="const">
<return type="bool">
</return>
<description>
Returns [code]true[/code] if changes have been made to the VisualServer's data. [method draw] is usually called if this happens.
</description>
</method>
<method name="has_feature" qualifiers="const">
<return type="bool">
</return>
<argument index="0" name="feature" type="int" enum="VisualServer.Features">
</argument>
<description>
</description>
</method>
<method name="has_os_feature" qualifiers="const">
<return type="bool">
</return>
<argument index="0" name="feature" type="String">
</argument>
<description>
Returns [code]true[/code] if the OS supports a certain feature. Features might be s3tc, etc, etc2 and pvrtc,
2018-02-19 09:47:16 +00:00
</description>
</method>
<method name="immediate_begin">
<return type="void">
</return>
<argument index="0" name="immediate" type="RID">
</argument>
<argument index="1" name="primitive" type="int" enum="VisualServer.PrimitiveType">
</argument>
<argument index="2" name="texture" type="RID">
</argument>
<description>
</description>
</method>
<method name="immediate_clear">
<return type="void">
</return>
<argument index="0" name="immediate" type="RID">
</argument>
<description>
</description>
</method>
<method name="immediate_color">
<return type="void">
</return>
<argument index="0" name="immediate" type="RID">
</argument>
<argument index="1" name="color" type="Color">
</argument>
<description>
</description>
</method>
<method name="immediate_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="immediate_end">
<return type="void">
</return>
<argument index="0" name="immediate" type="RID">
</argument>
<description>
</description>
</method>
<method name="immediate_get_material" qualifiers="const">
<return type="RID">
</return>
<argument index="0" name="immediate" type="RID">
</argument>
<description>
</description>
</method>
<method name="immediate_normal">
<return type="void">
</return>
<argument index="0" name="immediate" type="RID">
</argument>
<argument index="1" name="normal" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="immediate_set_material">
<return type="void">
</return>
<argument index="0" name="immediate" type="RID">
</argument>
<argument index="1" name="material" type="RID">
</argument>
<description>
</description>
</method>
<method name="immediate_tangent">
<return type="void">
</return>
<argument index="0" name="immediate" type="RID">
</argument>
<argument index="1" name="tangent" type="Plane">
</argument>
<description>
</description>
</method>
<method name="immediate_uv">
<return type="void">
</return>
<argument index="0" name="immediate" type="RID">
</argument>
<argument index="1" name="tex_uv" type="Vector2">
</argument>
<description>
</description>
</method>
<method name="immediate_uv2">
<return type="void">
</return>
<argument index="0" name="immediate" type="RID">
</argument>
<argument index="1" name="tex_uv" type="Vector2">
</argument>
<description>
</description>
</method>
<method name="immediate_vertex">
<return type="void">
</return>
<argument index="0" name="immediate" type="RID">
</argument>
<argument index="1" name="vertex" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="immediate_vertex_2d">
<return type="void">
</return>
<argument index="0" name="immediate" type="RID">
</argument>
<argument index="1" name="vertex" type="Vector2">
</argument>
<description>
</description>
</method>
<method name="init">
<return type="void">
</return>
<description>
Initializes the visual server.
</description>
</method>
<method name="instance_attach_object_instance_id">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="id" type="int">
</argument>
<description>
</description>
</method>
<method name="instance_attach_skeleton">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="skeleton" type="RID">
</argument>
<description>
</description>
</method>
<method name="instance_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="instance_create2">
<return type="RID">
</return>
<argument index="0" name="base" type="RID">
</argument>
<argument index="1" name="scenario" type="RID">
</argument>
<description>
</description>
</method>
<method name="instance_geometry_set_as_instance_lod">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="as_lod_of_instance" type="RID">
</argument>
<description>
</description>
</method>
<method name="instance_geometry_set_cast_shadows_setting">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="shadow_casting_setting" type="int" enum="VisualServer.ShadowCastingSetting">
</argument>
<description>
</description>
</method>
<method name="instance_geometry_set_draw_range">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="min" type="float">
</argument>
<argument index="2" name="max" type="float">
</argument>
<argument index="3" name="min_margin" type="float">
</argument>
<argument index="4" name="max_margin" type="float">
</argument>
<description>
</description>
</method>
<method name="instance_geometry_set_flag">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="flag" type="int" enum="VisualServer.InstanceFlags">
</argument>
<argument index="2" name="enabled" type="bool">
</argument>
<description>
</description>
</method>
<method name="instance_geometry_set_material_override">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="material" type="RID">
</argument>
<description>
</description>
</method>
<method name="instance_set_base">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="base" type="RID">
</argument>
<description>
</description>
</method>
<method name="instance_set_blend_shape_weight">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="shape" type="int">
</argument>
<argument index="2" name="weight" type="float">
</argument>
<description>
</description>
</method>
<method name="instance_set_custom_aabb">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="aabb" type="AABB">
</argument>
<description>
</description>
</method>
<method name="instance_set_exterior">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
</description>
</method>
<method name="instance_set_extra_visibility_margin">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="margin" type="float">
</argument>
<description>
</description>
</method>
<method name="instance_set_layer_mask">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="mask" type="int">
</argument>
<description>
</description>
</method>
<method name="instance_set_scenario">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="scenario" type="RID">
</argument>
<description>
</description>
</method>
<method name="instance_set_surface_material">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<argument index="2" name="material" type="RID">
</argument>
<description>
</description>
</method>
<method name="instance_set_transform">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="transform" type="Transform">
</argument>
<description>
</description>
</method>
<method name="instance_set_use_lightmap">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="lightmap_instance" type="RID">
</argument>
<argument index="2" name="lightmap" type="RID">
</argument>
<description>
</description>
</method>
<method name="instance_set_visible">
<return type="void">
</return>
<argument index="0" name="instance" type="RID">
</argument>
<argument index="1" name="visible" type="bool">
</argument>
<description>
</description>
</method>
<method name="instances_cull_aabb" qualifiers="const">
<return type="Array">
</return>
<argument index="0" name="aabb" type="AABB">
</argument>
<argument index="1" name="scenario" type="RID">
</argument>
<description>
</description>
</method>
<method name="instances_cull_convex" qualifiers="const">
<return type="Array">
</return>
<argument index="0" name="convex" type="Array">
</argument>
<argument index="1" name="scenario" type="RID">
</argument>
<description>
</description>
</method>
<method name="instances_cull_ray" qualifiers="const">
<return type="Array">
</return>
<argument index="0" name="from" type="Vector3">
</argument>
<argument index="1" name="to" type="Vector3">
</argument>
<argument index="2" name="scenario" type="RID">
</argument>
<description>
</description>
</method>
<method name="light_directional_set_blend_splits">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="enable" type="bool">
</argument>
<description>
</description>
</method>
<method name="light_directional_set_shadow_depth_range_mode">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="range_mode" type="int" enum="VisualServer.LightDirectionalShadowDepthRangeMode">
</argument>
<description>
</description>
</method>
<method name="light_directional_set_shadow_mode">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="mode" type="int" enum="VisualServer.LightDirectionalShadowMode">
</argument>
<description>
</description>
</method>
<method name="light_omni_set_shadow_detail">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="detail" type="int" enum="VisualServer.LightOmniShadowDetail">
</argument>
<description>
</description>
</method>
<method name="light_omni_set_shadow_mode">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="mode" type="int" enum="VisualServer.LightOmniShadowMode">
</argument>
<description>
</description>
</method>
<method name="light_set_color">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="color" type="Color">
</argument>
<description>
</description>
</method>
<method name="light_set_cull_mask">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="mask" type="int">
</argument>
<description>
</description>
</method>
<method name="light_set_negative">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="enable" type="bool">
</argument>
<description>
</description>
</method>
<method name="light_set_param">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="param" type="int" enum="VisualServer.LightParam">
</argument>
<argument index="2" name="value" type="float">
</argument>
<description>
</description>
</method>
<method name="light_set_projector">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="texture" type="RID">
</argument>
<description>
</description>
</method>
<method name="light_set_reverse_cull_face_mode">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
</description>
</method>
<method name="light_set_shadow">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
</description>
</method>
<method name="light_set_shadow_color">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="color" type="Color">
</argument>
<description>
</description>
</method>
<method name="lightmap_capture_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="lightmap_capture_get_bounds" qualifiers="const">
<return type="AABB">
</return>
<argument index="0" name="capture" type="RID">
</argument>
<description>
</description>
</method>
<method name="lightmap_capture_get_energy" qualifiers="const">
<return type="float">
</return>
<argument index="0" name="capture" type="RID">
</argument>
<description>
</description>
</method>
<method name="lightmap_capture_get_octree" qualifiers="const">
<return type="PoolByteArray">
</return>
<argument index="0" name="capture" type="RID">
</argument>
<description>
</description>
</method>
<method name="lightmap_capture_get_octree_cell_subdiv" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="capture" type="RID">
</argument>
<description>
</description>
</method>
<method name="lightmap_capture_get_octree_cell_transform" qualifiers="const">
<return type="Transform">
</return>
<argument index="0" name="capture" type="RID">
</argument>
<description>
</description>
</method>
<method name="lightmap_capture_set_bounds">
<return type="void">
</return>
<argument index="0" name="capture" type="RID">
</argument>
<argument index="1" name="bounds" type="AABB">
</argument>
<description>
</description>
</method>
<method name="lightmap_capture_set_energy">
<return type="void">
</return>
<argument index="0" name="capture" type="RID">
</argument>
<argument index="1" name="energy" type="float">
</argument>
<description>
</description>
</method>
<method name="lightmap_capture_set_octree">
<return type="void">
</return>
<argument index="0" name="capture" type="RID">
</argument>
<argument index="1" name="octree" type="PoolByteArray">
</argument>
<description>
</description>
</method>
<method name="lightmap_capture_set_octree_cell_subdiv">
<return type="void">
</return>
<argument index="0" name="capture" type="RID">
</argument>
<argument index="1" name="subdiv" type="int">
</argument>
<description>
</description>
</method>
<method name="lightmap_capture_set_octree_cell_transform">
<return type="void">
</return>
<argument index="0" name="capture" type="RID">
</argument>
<argument index="1" name="xform" type="Transform">
</argument>
<description>
</description>
</method>
<method name="make_sphere_mesh">
<return type="RID">
</return>
<argument index="0" name="latitudes" type="int">
</argument>
<argument index="1" name="longitudes" type="int">
</argument>
<argument index="2" name="radius" type="float">
</argument>
<description>
Returns a mesh of a sphere with the given amount of horizontal and vertical subdivisions.
</description>
</method>
<method name="material_create">
<return type="RID">
</return>
<description>
Returns an empty material.
</description>
</method>
<method name="material_get_param" qualifiers="const">
<return type="Variant">
</return>
<argument index="0" name="material" type="RID">
</argument>
<argument index="1" name="parameter" type="String">
</argument>
<description>
Returns the value of a certain material's parameter.
</description>
</method>
2018-09-15 01:13:47 +00:00
<method name="material_get_param_default" qualifiers="const">
<return type="Variant">
</return>
<argument index="0" name="material" type="RID">
</argument>
<argument index="1" name="parameter" type="String">
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="material_get_shader" qualifiers="const">
<return type="RID">
</return>
<argument index="0" name="shader_material" type="RID">
</argument>
<description>
Returns the shader of a certain material's shader. Returns an empty RID if the material doesn't have a shader.
</description>
</method>
<method name="material_set_line_width">
<return type="void">
</return>
<argument index="0" name="material" type="RID">
</argument>
<argument index="1" name="width" type="float">
</argument>
<description>
Sets a materials line width.
</description>
</method>
<method name="material_set_next_pass">
<return type="void">
</return>
<argument index="0" name="material" type="RID">
</argument>
<argument index="1" name="next_material" type="RID">
</argument>
<description>
Sets an objects next material.
</description>
</method>
<method name="material_set_param">
<return type="void">
</return>
<argument index="0" name="material" type="RID">
</argument>
<argument index="1" name="parameter" type="String">
</argument>
<argument index="2" name="value" type="Variant">
</argument>
<description>
Sets a materials parameter.
</description>
</method>
<method name="material_set_render_priority">
<return type="void">
</return>
<argument index="0" name="material" type="RID">
</argument>
<argument index="1" name="priority" type="int">
</argument>
<description>
Sets a material's render priority.
</description>
</method>
<method name="material_set_shader">
<return type="void">
</return>
<argument index="0" name="shader_material" type="RID">
</argument>
<argument index="1" name="shader" type="RID">
</argument>
<description>
Sets a shader material's shader.
</description>
</method>
<method name="mesh_add_surface_from_arrays">
<return type="void">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="primtive" type="int" enum="VisualServer.PrimitiveType">
</argument>
<argument index="2" name="arrays" type="Array">
</argument>
<argument index="3" name="blend_shapes" type="Array" default="[ ]">
</argument>
<argument index="4" name="compress_format" type="int" default="97280">
2018-02-19 09:47:16 +00:00
</argument>
<description>
Adds a surface generated from the Arrays to a mesh. See PRIMITIVE_TYPE_* constants for types.
</description>
</method>
<method name="mesh_clear">
<return type="void">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<description>
Removes all surfaces from a mesh.
</description>
</method>
<method name="mesh_create">
<return type="RID">
</return>
<description>
Creates a new mesh.
</description>
</method>
<method name="mesh_get_blend_shape_count" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<description>
Returns a mesh's blend shape count.
</description>
</method>
<method name="mesh_get_blend_shape_mode" qualifiers="const">
<return type="int" enum="VisualServer.BlendShapeMode">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<description>
Returns a mesh's blend shape mode.
</description>
</method>
<method name="mesh_get_custom_aabb" qualifiers="const">
<return type="AABB">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<description>
Returns a mesh's custom aabb.
</description>
</method>
<method name="mesh_get_surface_count" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<description>
Returns a mesh's number of surfaces.
</description>
</method>
<method name="mesh_remove_surface">
<return type="void">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
Removes a mesh's surface.
</description>
</method>
<method name="mesh_set_blend_shape_count">
<return type="void">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="amount" type="int">
</argument>
<description>
Sets a mesh's blend shape count.
</description>
</method>
<method name="mesh_set_blend_shape_mode">
<return type="void">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="mode" type="int" enum="VisualServer.BlendShapeMode">
</argument>
<description>
Sets a mesh's blend shape mode.
</description>
</method>
<method name="mesh_set_custom_aabb">
<return type="void">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="aabb" type="AABB">
</argument>
<description>
Sets a mesh's custom aabb.
</description>
</method>
<method name="mesh_surface_get_aabb" qualifiers="const">
<return type="AABB">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<description>
Returns a mesh's surface's aabb.
</description>
</method>
<method name="mesh_surface_get_array" qualifiers="const">
<return type="PoolByteArray">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<description>
Returns a mesh's surface's vertex buffer.
</description>
</method>
<method name="mesh_surface_get_array_index_len" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<description>
Returns a mesh's surface's amount of indices.
</description>
</method>
<method name="mesh_surface_get_array_len" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<description>
Returns a mesh's surface's amount of vertices.
</description>
</method>
<method name="mesh_surface_get_arrays" qualifiers="const">
<return type="Array">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<description>
Returns a mesh's surface's buffer arrays.
</description>
</method>
<method name="mesh_surface_get_blend_shape_arrays" qualifiers="const">
<return type="Array">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<description>
Returns a mesh's surface's arrays for blend shapes
</description>
</method>
<method name="mesh_surface_get_format" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<description>
Returns the format of a mesh's surface.
</description>
</method>
<method name="mesh_surface_get_format_offset" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="format" type="int">
</argument>
<argument index="1" name="vertex_len" type="int">
</argument>
<argument index="2" name="index_len" type="int">
</argument>
<argument index="3" name="array_index" type="int">
</argument>
<description>
</description>
</method>
<method name="mesh_surface_get_format_stride" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="format" type="int">
</argument>
<argument index="1" name="vertex_len" type="int">
</argument>
<argument index="2" name="index_len" type="int">
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="mesh_surface_get_index_array" qualifiers="const">
<return type="PoolByteArray">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<description>
Returns a mesh's surface's index buffer.
</description>
</method>
<method name="mesh_surface_get_material" qualifiers="const">
<return type="RID">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<description>
Returns a mesh's surface's material.
</description>
</method>
<method name="mesh_surface_get_primitive_type" qualifiers="const">
<return type="int" enum="VisualServer.PrimitiveType">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<description>
Returns the primitive type of a mesh's surface.
</description>
</method>
<method name="mesh_surface_get_skeleton_aabb" qualifiers="const">
<return type="Array">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<description>
Returns the aabb of a mesh's surface's skeleton.
</description>
</method>
<method name="mesh_surface_set_material">
<return type="void">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<argument index="2" name="material" type="RID">
</argument>
<description>
Sets a mesh's surface's material.
</description>
</method>
<method name="mesh_surface_update_region">
<return type="void">
</return>
<argument index="0" name="mesh" type="RID">
</argument>
<argument index="1" name="surface" type="int">
</argument>
<argument index="2" name="offset" type="int">
</argument>
<argument index="3" name="data" type="PoolByteArray">
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="multimesh_allocate">
<return type="void">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<argument index="1" name="instances" type="int">
</argument>
<argument index="2" name="transform_format" type="int" enum="VisualServer.MultimeshTransformFormat">
</argument>
<argument index="3" name="color_format" type="int" enum="VisualServer.MultimeshColorFormat">
</argument>
<argument index="4" name="custom_data_format" type="int" enum="VisualServer.MultimeshCustomDataFormat" default="0">
</argument>
2018-02-19 09:47:16 +00:00
<description>
</description>
</method>
<method name="multimesh_get_aabb" qualifiers="const">
<return type="AABB">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<description>
</description>
</method>
<method name="multimesh_get_instance_count" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<description>
</description>
</method>
<method name="multimesh_get_mesh" qualifiers="const">
<return type="RID">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<description>
</description>
</method>
<method name="multimesh_get_visible_instances" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<description>
</description>
</method>
<method name="multimesh_instance_get_color" qualifiers="const">
<return type="Color">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="multimesh_instance_get_custom_data" qualifiers="const">
<return type="Color">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="multimesh_instance_get_transform" qualifiers="const">
<return type="Transform">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="multimesh_instance_get_transform_2d" qualifiers="const">
<return type="Transform2D">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<argument index="1" name="index" type="int">
</argument>
<description>
</description>
</method>
<method name="multimesh_instance_set_color">
<return type="void">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<argument index="1" name="index" type="int">
</argument>
<argument index="2" name="color" type="Color">
</argument>
<description>
</description>
</method>
<method name="multimesh_instance_set_custom_data">
<return type="void">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<argument index="1" name="index" type="int">
</argument>
<argument index="2" name="custom_data" type="Color">
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="multimesh_instance_set_transform">
<return type="void">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<argument index="1" name="index" type="int">
</argument>
<argument index="2" name="transform" type="Transform">
</argument>
<description>
</description>
</method>
<method name="multimesh_instance_set_transform_2d">
<return type="void">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<argument index="1" name="index" type="int">
</argument>
<argument index="2" name="transform" type="Transform2D">
</argument>
<description>
</description>
</method>
<method name="multimesh_set_as_bulk_array">
<return type="void">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<argument index="1" name="array" type="PoolRealArray">
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="multimesh_set_mesh">
<return type="void">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<argument index="1" name="mesh" type="RID">
</argument>
<description>
</description>
</method>
<method name="multimesh_set_visible_instances">
<return type="void">
</return>
<argument index="0" name="multimesh" type="RID">
</argument>
<argument index="1" name="visible" type="int">
</argument>
<description>
</description>
</method>
<method name="omni_light_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="particles_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="particles_get_current_aabb">
<return type="AABB">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<description>
</description>
</method>
<method name="particles_get_emitting">
<return type="bool">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<description>
</description>
</method>
<method name="particles_restart">
<return type="void">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<description>
</description>
</method>
<method name="particles_set_amount">
<return type="void">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="amount" type="int">
</argument>
<description>
</description>
</method>
<method name="particles_set_custom_aabb">
<return type="void">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="aabb" type="AABB">
</argument>
<description>
</description>
</method>
<method name="particles_set_draw_order">
<return type="void">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="order" type="int" enum="VisualServer.ParticlesDrawOrder">
</argument>
<description>
</description>
</method>
<method name="particles_set_draw_pass_mesh">
<return type="void">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="pass" type="int">
</argument>
<argument index="2" name="mesh" type="RID">
</argument>
<description>
</description>
</method>
<method name="particles_set_draw_passes">
<return type="void">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="count" type="int">
</argument>
<description>
</description>
</method>
<method name="particles_set_emission_transform">
<return type="void">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="transform" type="Transform">
</argument>
<description>
</description>
</method>
<method name="particles_set_emitting">
<return type="void">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="emitting" type="bool">
</argument>
<description>
</description>
</method>
<method name="particles_set_explosiveness_ratio">
<return type="void">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="ratio" type="float">
</argument>
<description>
</description>
</method>
<method name="particles_set_fixed_fps">
<return type="void">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="fps" type="int">
</argument>
<description>
</description>
</method>
<method name="particles_set_fractional_delta">
<return type="void">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="enable" type="bool">
</argument>
<description>
</description>
</method>
<method name="particles_set_lifetime">
<return type="void">
</return>
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="lifetime" type="float">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="particles_set_one_shot">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="particles" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="one_shot" type="bool">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="particles_set_pre_process_time">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="particles" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="time" type="float">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="particles_set_process_material">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="material" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="particles_set_randomness_ratio">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="ratio" type="float">
</argument>
2017-10-21 10:02:08 +00:00
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="particles_set_speed_scale">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="scale" type="float">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="particles_set_use_local_coordinates">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="particles" type="RID">
</argument>
<argument index="1" name="enable" type="bool">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="reflection_probe_create">
<return type="RID">
2017-10-21 10:02:08 +00:00
</return>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="reflection_probe_set_as_interior">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="probe" type="RID">
</argument>
<argument index="1" name="enable" type="bool">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="reflection_probe_set_cull_mask">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="probe" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="layers" type="int">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="reflection_probe_set_enable_box_projection">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="probe" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="enable" type="bool">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="reflection_probe_set_enable_shadows">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="probe" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="enable" type="bool">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="reflection_probe_set_extents">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="probe" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="extents" type="Vector3">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="reflection_probe_set_intensity">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="probe" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="intensity" type="float">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="reflection_probe_set_interior_ambient">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="probe" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="color" type="Color">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="reflection_probe_set_interior_ambient_energy">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="probe" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="energy" type="float">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="reflection_probe_set_interior_ambient_probe_contribution">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="probe" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="contrib" type="float">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="reflection_probe_set_max_distance">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="probe" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="distance" type="float">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="reflection_probe_set_origin_offset">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="probe" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="offset" type="Vector3">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="reflection_probe_set_update_mode">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="probe" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="mode" type="int" enum="VisualServer.ReflectionProbeUpdateMode">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="request_frame_drawn_callback">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="where" type="Object">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="method" type="String">
</argument>
<argument index="2" name="userdata" type="Variant">
2017-10-21 10:02:08 +00:00
</argument>
<description>
2018-02-19 09:47:16 +00:00
Schedules a callback to the corresponding named 'method' on 'where' after a frame has been drawn.
The callback method must use only 1 argument which will be called with 'userdata'.
2017-10-21 10:02:08 +00:00
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="scenario_create">
2017-10-21 10:02:08 +00:00
<return type="RID">
</return>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="scenario_set_debug">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="scenario" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="debug_mode" type="int" enum="VisualServer.ScenarioDebugMode">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="scenario_set_environment">
<return type="void">
2017-10-21 10:02:08 +00:00
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="scenario" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="environment" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="scenario_set_fallback_environment">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="scenario" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="1" name="environment" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="scenario_set_reflection_atlas_size">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2018-02-19 09:47:16 +00:00
<argument index="0" name="scenario" type="RID">
2017-10-21 10:02:08 +00:00
</argument>
<argument index="1" name="size" type="int">
2017-10-21 10:02:08 +00:00
</argument>
2018-02-19 09:47:16 +00:00
<argument index="2" name="subdiv" type="int">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
<method name="set_boot_image">
<return type="void">
</return>
<argument index="0" name="image" type="Image">
</argument>
<argument index="1" name="color" type="Color">
</argument>
<argument index="2" name="scale" type="bool">
</argument>
<description>
Sets a boot image. The color defines the background color and if scale is [code]true[/code] the image will be scaled to fit the screen size.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="set_debug_generate_wireframes">
<return type="void">
</return>
<argument index="0" name="generate" type="bool">
</argument>
<description>
</description>
</method>
<method name="set_default_clear_color">
<return type="void">
</return>
<argument index="0" name="color" type="Color">
</argument>
<description>
</description>
</method>
<method name="shader_create">
<return type="RID">
</return>
<description>
2017-11-26 15:37:37 +00:00
Creates an empty shader.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="shader_get_code" qualifiers="const">
<return type="String">
</return>
<argument index="0" name="shader" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Returns a shader's code.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="shader_get_default_texture_param" qualifiers="const">
<return type="RID">
</return>
<argument index="0" name="shader" type="RID">
</argument>
<argument index="1" name="name" type="String">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Returns a default texture from a shader searched by name.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="shader_get_param_list" qualifiers="const">
<return type="Array">
</return>
<argument index="0" name="shader" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Returns the parameters of a shader.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="shader_set_code">
<return type="void">
</return>
<argument index="0" name="shader" type="RID">
</argument>
<argument index="1" name="code" type="String">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets a shader's code.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="shader_set_default_texture_param">
<return type="void">
</return>
<argument index="0" name="shader" type="RID">
</argument>
<argument index="1" name="name" type="String">
</argument>
<argument index="2" name="texture" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets a shader's default texture. Overwrites the texture given by name.
2017-10-21 10:02:08 +00:00
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="skeleton_allocate">
<return type="void">
</return>
<argument index="0" name="skeleton" type="RID">
</argument>
<argument index="1" name="bones" type="int">
</argument>
<argument index="2" name="is_2d_skeleton" type="bool" default="false">
</argument>
<description>
</description>
</method>
<method name="skeleton_bone_get_transform" qualifiers="const">
<return type="Transform">
</return>
<argument index="0" name="skeleton" type="RID">
</argument>
<argument index="1" name="bone" type="int">
</argument>
<description>
</description>
</method>
<method name="skeleton_bone_get_transform_2d" qualifiers="const">
<return type="Transform2D">
</return>
<argument index="0" name="skeleton" type="RID">
</argument>
<argument index="1" name="bone" type="int">
</argument>
<description>
</description>
</method>
<method name="skeleton_bone_set_transform">
<return type="void">
</return>
<argument index="0" name="skeleton" type="RID">
</argument>
<argument index="1" name="bone" type="int">
</argument>
<argument index="2" name="transform" type="Transform">
</argument>
<description>
</description>
</method>
<method name="skeleton_bone_set_transform_2d">
<return type="void">
</return>
<argument index="0" name="skeleton" type="RID">
</argument>
<argument index="1" name="bone" type="int">
</argument>
<argument index="2" name="transform" type="Transform2D">
</argument>
<description>
</description>
</method>
<method name="skeleton_create">
<return type="RID">
</return>
<description>
</description>
</method>
<method name="skeleton_get_bone_count" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="skeleton" type="RID">
</argument>
<description>
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="sky_create">
<return type="RID">
</return>
<description>
2017-11-26 15:37:37 +00:00
Creates an empty sky.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="sky_set_texture">
<return type="void">
</return>
<argument index="0" name="sky" type="RID">
</argument>
<argument index="1" name="cube_map" type="RID">
</argument>
<argument index="2" name="radiance_size" type="int">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets a sky's texture.
2017-10-21 10:02:08 +00:00
</description>
</method>
2018-02-19 09:47:16 +00:00
<method name="spot_light_create">
<return type="RID">
</return>
<description>
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="sync">
<return type="void">
</return>
<description>
</description>
</method>
<method name="texture_allocate">
<return type="void">
</return>
<argument index="0" name="texture" type="RID">
</argument>
<argument index="1" name="width" type="int">
</argument>
<argument index="2" name="height" type="int">
</argument>
2018-08-20 22:35:30 +00:00
<argument index="3" name="depth_3d" type="int">
2017-10-21 10:02:08 +00:00
</argument>
2018-08-20 22:35:30 +00:00
<argument index="4" name="format" type="int" enum="Image.Format">
</argument>
<argument index="5" name="type" type="int" enum="VisualServer.TextureType">
</argument>
<argument index="6" name="flags" type="int" default="7">
2017-10-21 10:02:08 +00:00
</argument>
<description>
</description>
</method>
<method name="texture_create">
<return type="RID">
</return>
<description>
2017-11-26 15:37:37 +00:00
Creates an empty texture.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="texture_create_from_image">
<return type="RID">
</return>
<argument index="0" name="image" type="Image">
</argument>
<argument index="1" name="flags" type="int" default="7">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Creates a texture, allocates the space for an image, and fills in the image.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="texture_debug_usage">
<return type="Array">
</return>
<description>
2017-12-09 23:43:30 +00:00
Returns a list of all the textures and their information.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="texture_get_data" qualifiers="const">
<return type="Image">
</return>
<argument index="0" name="texture" type="RID">
</argument>
2018-08-20 22:35:30 +00:00
<argument index="1" name="cube_side" type="int" default="0">
2017-10-21 10:02:08 +00:00
</argument>
<description>
Returns a copy of a texture's image unless it's a CubeMap, in which case it returns the [RID] of the image at one of the cubes sides.
2017-10-21 10:02:08 +00:00
</description>
</method>
2018-08-20 22:35:30 +00:00
<method name="texture_get_depth" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="texture" type="RID">
</argument>
<description>
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="texture_get_flags" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="texture" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Returns the flags of a texture.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="texture_get_format" qualifiers="const">
<return type="int" enum="Image.Format">
</return>
<argument index="0" name="texture" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Returns the format of the texture's image.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="texture_get_height" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="texture" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Returns the texture's height.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="texture_get_path" qualifiers="const">
<return type="String">
</return>
<argument index="0" name="texture" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Returns the texture's path.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="texture_get_texid" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="texture" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Returns the opengl id of the texture's image.
2017-10-21 10:02:08 +00:00
</description>
</method>
2018-08-20 22:35:30 +00:00
<method name="texture_get_type" qualifiers="const">
<return type="int" enum="VisualServer.TextureType">
</return>
<argument index="0" name="texture" type="RID">
</argument>
<description>
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="texture_get_width" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="texture" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Returns the texture's width.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="texture_set_data">
<return type="void">
</return>
<argument index="0" name="texture" type="RID">
</argument>
<argument index="1" name="image" type="Image">
</argument>
2018-08-20 22:35:30 +00:00
<argument index="2" name="layer" type="int" default="0">
2017-10-21 10:02:08 +00:00
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the texture's image data. If it's a CubeMap, it sets the image data at a cube side.
2017-10-21 10:02:08 +00:00
</description>
</method>
2018-05-12 07:38:00 +00:00
<method name="texture_set_data_partial">
<return type="void">
</return>
<argument index="0" name="texture" type="RID">
</argument>
<argument index="1" name="image" type="Image">
</argument>
<argument index="2" name="src_x" type="int">
</argument>
<argument index="3" name="src_y" type="int">
</argument>
<argument index="4" name="src_w" type="int">
</argument>
<argument index="5" name="src_h" type="int">
</argument>
<argument index="6" name="dst_x" type="int">
</argument>
<argument index="7" name="dst_y" type="int">
</argument>
<argument index="8" name="dst_mip" type="int">
</argument>
2018-08-20 22:35:30 +00:00
<argument index="9" name="layer" type="int" default="0">
2018-05-12 07:38:00 +00:00
</argument>
<description>
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="texture_set_flags">
<return type="void">
</return>
<argument index="0" name="texture" type="RID">
</argument>
<argument index="1" name="flags" type="int">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the texture's flags. See [enum TextureFlags] for options
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="texture_set_path">
<return type="void">
</return>
2017-10-21 10:02:08 +00:00
<argument index="0" name="texture" type="RID">
</argument>
<argument index="1" name="path" type="String">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the texture's path.
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="texture_set_shrink_all_x2_on_set_data">
<return type="void">
</return>
2017-10-21 10:02:08 +00:00
<argument index="0" name="shrink" type="bool">
</argument>
2017-10-21 10:02:08 +00:00
<description>
If [code]true[/code], sets internal processes to shrink all image data to half the size.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="texture_set_size_override">
<return type="void">
</return>
<argument index="0" name="texture" type="RID">
</argument>
2017-10-21 10:02:08 +00:00
<argument index="1" name="width" type="int">
</argument>
<argument index="2" name="height" type="int">
</argument>
2018-08-20 22:35:30 +00:00
<argument index="3" name="depth" type="int">
</argument>
<description>
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="textures_keep_original">
<return type="void">
</return>
<argument index="0" name="enable" type="bool">
</argument>
<description>
If [code]true[/code], the image will be stored in the texture's images array if overwritten.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_attach_camera">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="camera" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets a viewport's camera.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_attach_canvas">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="canvas" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets a viewport's canvas.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_attach_to_screen">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="rect" type="Rect2" default="Rect2( 0, 0, 0, 0 )">
</argument>
<argument index="2" name="screen" type="int" default="0">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Attaches a viewport to a screen.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_create">
<return type="RID">
</return>
<description>
2017-11-26 15:37:37 +00:00
Creates an empty viewport.
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="viewport_detach">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Detaches the viewport from the screen.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_get_render_info">
<return type="int">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="info" type="int" enum="VisualServer.ViewportRenderInfo">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Returns a viewport's render info. for options see VIEWPORT_RENDER_INFO* constants.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_get_texture" qualifiers="const">
<return type="RID">
</return>
2017-10-21 10:02:08 +00:00
<argument index="0" name="viewport" type="RID">
</argument>
2017-10-21 10:02:08 +00:00
<description>
2017-11-26 15:37:37 +00:00
Returns the viewport's last rendered frame.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_remove_canvas">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="canvas" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Detaches a viewport from a canvas and vice versa.
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="viewport_set_active">
<return type="void">
</return>
2017-10-21 10:02:08 +00:00
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="active" type="bool">
</argument>
<description>
If [code]true[/code], sets the viewport active, else sets it inactive.
</description>
</method>
<method name="viewport_set_canvas_stacking">
2017-10-21 10:02:08 +00:00
<return type="void">
</return>
2017-10-21 10:02:08 +00:00
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="canvas" type="RID">
</argument>
<argument index="2" name="layer" type="int">
</argument>
<argument index="3" name="sublayer" type="int">
</argument>
<description>
Sets the stacking order for a viewport's canvas.
[code]layer[/code] is the actual canvas layer, while [code]sublayer[/code] specifies the stacking order of the canvas among those in the same layer.
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="viewport_set_canvas_transform">
<return type="void">
</return>
2017-10-21 10:02:08 +00:00
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="canvas" type="RID">
</argument>
<argument index="2" name="offset" type="Transform2D">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the transformation of a viewport's canvas.
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="viewport_set_clear_mode">
<return type="void">
</return>
2017-10-21 10:02:08 +00:00
<argument index="0" name="viewport" type="RID">
</argument>
2017-10-21 10:02:08 +00:00
<argument index="1" name="clear_mode" type="int" enum="VisualServer.ViewportClearMode">
</argument>
<description>
Sets the clear mode of a viewport. See [enum VisualServer.ViewportClearMode] for options.
</description>
</method>
2017-10-21 10:02:08 +00:00
<method name="viewport_set_debug_draw">
<return type="void">
</return>
2017-10-21 10:02:08 +00:00
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="draw" type="int" enum="VisualServer.ViewportDebugDraw">
</argument>
<description>
Sets the debug draw mode of a viewport. See [enum VisualServer.ViewportDebugDraw] for options.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_disable_3d">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="disabled" type="bool">
</argument>
<description>
If [code]true[/code], a viewport's 3D rendering is disabled.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_disable_environment">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="disabled" type="bool">
</argument>
<description>
If [code]true[/code], rendering of a viewport's environment is disabled.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_global_canvas_transform">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="transform" type="Transform2D">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the viewport's global transformation matrix.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_hdr">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
If [code]true[/code], the viewport renders to hdr.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_hide_canvas">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="hidden" type="bool">
</argument>
<description>
If [code]true[/code], the viewport's canvas is not rendered.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_hide_scenario">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="hidden" type="bool">
</argument>
<description>
</description>
</method>
<method name="viewport_set_msaa">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="msaa" type="int" enum="VisualServer.ViewportMSAA">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the anti-aliasing mode. see [enum ViewportMSAA] for options.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_parent_viewport">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="parent_viewport" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the viewport's parent to another viewport.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_scenario">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="scenario" type="RID">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets a viewport's scenario.
The scenario contains information about the [enum ScenarioDebugMode], environment information, reflection atlas etc.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_shadow_atlas_quadrant_subdivision">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="quadrant" type="int">
</argument>
<argument index="2" name="subdivision" type="int">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the shadow atlas quadrant's subdivision.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_shadow_atlas_size">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="size" type="int">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the size of the shadow atlas's images.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_size">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="width" type="int">
</argument>
<argument index="2" name="height" type="int">
</argument>
<description>
2017-11-26 15:37:37 +00:00
Sets the viewport's width and height.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_transparent_background">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
If [code]true[/code], the viewport renders its background as transparent.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_update_mode">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="update_mode" type="int" enum="VisualServer.ViewportUpdateMode">
</argument>
<description>
Sets when the viewport should be updated. See [enum ViewportUpdateMode] constants for options.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_usage">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="usage" type="int" enum="VisualServer.ViewportUsage">
</argument>
<description>
Sets the viewport's 2D/3D mode. See [enum ViewportUsage] constants for options.
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_use_arvr">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="use_arvr" type="bool">
</argument>
<description>
If [code]true[/code], the viewport uses augmented or virtual reality technologies. See [ARVRInterface].
2017-10-21 10:02:08 +00:00
</description>
</method>
<method name="viewport_set_vflip">
<return type="void">
</return>
<argument index="0" name="viewport" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
If [code]true[/code], the viewport's rendering is flipped vertically.
</description>
</method>
</methods>
2017-11-15 19:35:18 +00:00
<signals>
<signal name="frame_post_draw">
<description>
</description>
</signal>
<signal name="frame_pre_draw">
2017-11-15 19:35:18 +00:00
<description>
</description>
</signal>
</signals>
<constants>
2017-11-24 22:16:30 +00:00
<constant name="NO_INDEX_ARRAY" value="-1">
2017-11-26 15:37:37 +00:00
Marks an error that shows that the index array is empty.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_WEIGHTS_SIZE" value="4">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_ITEM_Z_MIN" value="-4096">
2017-11-26 15:37:37 +00:00
The minimum Z-layer for canvas items.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_ITEM_Z_MAX" value="4096">
2017-11-26 15:37:37 +00:00
The maximum Z-layer for canvas items.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="MAX_GLOW_LEVELS" value="7">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="MAX_CURSORS" value="8">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="MATERIAL_RENDER_PRIORITY_MIN" value="-128">
2017-11-26 15:37:37 +00:00
The minimum renderpriority of all materials.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="MATERIAL_RENDER_PRIORITY_MAX" value="127">
2017-11-26 15:37:37 +00:00
The maximum renderpriority of all materials.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CUBEMAP_LEFT" value="0" enum="CubeMapSide">
2017-11-26 15:37:37 +00:00
Marks the left side of a cubemap.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CUBEMAP_RIGHT" value="1" enum="CubeMapSide">
2017-11-26 15:37:37 +00:00
Marks the right side of a cubemap.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CUBEMAP_BOTTOM" value="2" enum="CubeMapSide">
2017-11-26 15:37:37 +00:00
Marks the bottom side of a cubemap.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CUBEMAP_TOP" value="3" enum="CubeMapSide">
2017-11-26 15:37:37 +00:00
Marks the top side of a cubemap.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CUBEMAP_FRONT" value="4" enum="CubeMapSide">
2017-11-26 15:37:37 +00:00
Marks the front side of a cubemap.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CUBEMAP_BACK" value="5" enum="CubeMapSide">
2017-11-26 15:37:37 +00:00
Marks the back side of a cubemap.
2017-10-21 10:02:08 +00:00
</constant>
2018-08-20 22:35:30 +00:00
<constant name="TEXTURE_TYPE_2D" value="0" enum="TextureType">
</constant>
<constant name="TEXTURE_TYPE_CUBEMAP" value="1" enum="TextureType">
</constant>
<constant name="TEXTURE_TYPE_2D_ARRAY" value="2" enum="TextureType">
</constant>
<constant name="TEXTURE_TYPE_3D" value="3" enum="TextureType">
</constant>
2017-11-24 22:16:30 +00:00
<constant name="TEXTURE_FLAG_MIPMAPS" value="1" enum="TextureFlags">
2017-11-26 15:37:37 +00:00
Generate mipmaps, which are smaller versions of the same texture to use when zoomed out, keeping the aspect ratio.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="TEXTURE_FLAG_REPEAT" value="2" enum="TextureFlags">
2017-11-26 15:37:37 +00:00
Repeat (instead of clamp to edge).
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="TEXTURE_FLAG_FILTER" value="4" enum="TextureFlags">
2017-11-26 15:37:37 +00:00
Turn on magnifying filter, to enable smooth zooming in of the texture.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="TEXTURE_FLAG_ANISOTROPIC_FILTER" value="8" enum="TextureFlags">
2017-11-26 15:37:37 +00:00
Anisotropic mipmap filtering. Generates smaller versions of the same texture with different aspect ratios.
More effective on planes often shown going to the horrizon as those textures (Walls or Ground for example) get squashed in the viewport to different aspect ratios and regular mipmaps keep the aspect ratio so they don't optimize storage that well in those cases.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="TEXTURE_FLAG_CONVERT_TO_LINEAR" value="16" enum="TextureFlags">
2017-12-09 23:43:30 +00:00
Converts texture to SRGB color space.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="TEXTURE_FLAG_MIRRORED_REPEAT" value="32" enum="TextureFlags">
2017-11-26 15:37:37 +00:00
Repeat texture with alternate sections mirrored.
2017-10-21 10:02:08 +00:00
</constant>
2018-08-20 22:35:30 +00:00
<constant name="TEXTURE_FLAG_USED_FOR_STREAMING" value="2048" enum="TextureFlags">
2017-11-26 15:37:37 +00:00
Texture is a video surface.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="TEXTURE_FLAGS_DEFAULT" value="7" enum="TextureFlags">
2017-11-26 15:37:37 +00:00
Default flags. Generate mipmaps, repeat, and filter are enabled.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="SHADER_SPATIAL" value="0" enum="ShaderMode">
2017-11-26 15:37:37 +00:00
Shader is a 3D shader.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="SHADER_CANVAS_ITEM" value="1" enum="ShaderMode">
2017-11-26 15:37:37 +00:00
Shader is a 2D shader.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="SHADER_PARTICLES" value="2" enum="ShaderMode">
2017-11-26 15:37:37 +00:00
Shader is a particle shader.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="SHADER_MAX" value="3" enum="ShaderMode">
2017-11-26 15:37:37 +00:00
Marks maximum of the shader types array. used internally.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_VERTEX" value="0" enum="ArrayType">
2017-11-26 15:37:37 +00:00
Array is a vertex array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_NORMAL" value="1" enum="ArrayType">
2017-11-26 15:37:37 +00:00
Array is a normal array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_TANGENT" value="2" enum="ArrayType">
2017-11-26 15:37:37 +00:00
Array is a tangent array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_COLOR" value="3" enum="ArrayType">
2017-11-26 15:37:37 +00:00
Array is a color array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_TEX_UV" value="4" enum="ArrayType">
2017-11-26 15:37:37 +00:00
Array is a uv coordinates array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_TEX_UV2" value="5" enum="ArrayType">
2017-11-26 15:37:37 +00:00
Array is a uv coordinates array for the second uv coordinates.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_BONES" value="6" enum="ArrayType">
2017-11-26 15:37:37 +00:00
Array contains bone information.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_WEIGHTS" value="7" enum="ArrayType">
2017-11-26 15:37:37 +00:00
Array is weight information.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_INDEX" value="8" enum="ArrayType">
2017-11-26 15:37:37 +00:00
Array is index array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_MAX" value="9" enum="ArrayType">
2017-11-26 15:37:37 +00:00
Marks the maximum of the array types. Used internally.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_FORMAT_VERTEX" value="1" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a vertex array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_FORMAT_NORMAL" value="2" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a normal array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_FORMAT_TANGENT" value="4" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a tangent array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_FORMAT_COLOR" value="8" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a color array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_FORMAT_TEX_UV" value="16" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a uv coordinates array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_FORMAT_TEX_UV2" value="32" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a uv coordinates array for the second uv coordinates.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_FORMAT_BONES" value="64" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a bone information array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_FORMAT_WEIGHTS" value="128" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a weights array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_FORMAT_INDEX" value="256" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a index array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_COMPRESS_VERTEX" value="512" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a compressed (half float) vertex array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_COMPRESS_NORMAL" value="1024" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a compressed (half float) normal array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_COMPRESS_TANGENT" value="2048" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a compressed (half float) tangent array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_COMPRESS_COLOR" value="4096" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a compressed (half float) color array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_COMPRESS_TEX_UV" value="8192" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a compressed (half float) uv coordinates array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_COMPRESS_TEX_UV2" value="16384" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a compressed (half float) uv coordinates array for the second uv coordinates.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_COMPRESS_BONES" value="32768" enum="ArrayFormat">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_COMPRESS_WEIGHTS" value="65536" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark a compressed (half float) weight array.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_COMPRESS_INDEX" value="131072" enum="ArrayFormat">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_FLAG_USE_2D_VERTICES" value="262144" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark that the array contains 2D vertices.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="ARRAY_FLAG_USE_16_BIT_BONES" value="524288" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Flag used to mark that the array uses 16 bit bones instead of 8 bit.
2017-10-21 10:02:08 +00:00
</constant>
<constant name="ARRAY_COMPRESS_DEFAULT" value="97280" enum="ArrayFormat">
2017-11-26 15:37:37 +00:00
Used to set flags ARRAY_COMPRESS_VERTEX, ARRAY_COMPRESS_NORMAL, ARRAY_COMPRESS_TANGENT, ARRAY_COMPRESS_COLOR, ARRAY_COMPRESS_TEX_UV, ARRAY_COMPRESS_TEX_UV2 and ARRAY_COMPRESS_WEIGHTS quickly.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="PRIMITIVE_POINTS" value="0" enum="PrimitiveType">
2017-11-26 15:37:37 +00:00
Primitive to draw consists of points.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="PRIMITIVE_LINES" value="1" enum="PrimitiveType">
2017-11-26 15:37:37 +00:00
Primitive to draw consists of lines.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="PRIMITIVE_LINE_STRIP" value="2" enum="PrimitiveType">
2017-11-26 15:37:37 +00:00
Primitive to draw consists of a line strip from start to end.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="PRIMITIVE_LINE_LOOP" value="3" enum="PrimitiveType">
2017-11-26 15:37:37 +00:00
Primitive to draw consists of a line loop (a line strip with a line between the last and the first vertex).
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="PRIMITIVE_TRIANGLES" value="4" enum="PrimitiveType">
2017-11-26 15:37:37 +00:00
Primitive to draw consists of triangles.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="PRIMITIVE_TRIANGLE_STRIP" value="5" enum="PrimitiveType">
Primitive to draw consists of a triangle strip (the last 3 vertices are always combined to make a triangle).
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="PRIMITIVE_TRIANGLE_FAN" value="6" enum="PrimitiveType">
Primitive to draw consists of a triangle strip (the last 2 vertices are always combined with the first to make a triangle).
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="PRIMITIVE_MAX" value="7" enum="PrimitiveType">
2017-11-26 15:37:37 +00:00
Marks the primitive types endpoint. used internally.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="BLEND_SHAPE_MODE_NORMALIZED" value="0" enum="BlendShapeMode">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="BLEND_SHAPE_MODE_RELATIVE" value="1" enum="BlendShapeMode">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_DIRECTIONAL" value="0" enum="LightType">
2017-11-26 15:37:37 +00:00
Is a directional (sun) light.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_OMNI" value="1" enum="LightType">
2017-11-26 15:37:37 +00:00
is an omni light.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_SPOT" value="2" enum="LightType">
2017-11-26 15:37:37 +00:00
is an spot light.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_ENERGY" value="0" enum="LightParam">
2017-11-26 15:37:37 +00:00
The light's energy.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_SPECULAR" value="2" enum="LightParam">
2017-11-26 15:37:37 +00:00
The light's influence on specularity.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_RANGE" value="3" enum="LightParam">
2017-11-26 15:37:37 +00:00
The light's range.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_ATTENUATION" value="4" enum="LightParam">
2017-11-26 15:37:37 +00:00
The light's attenuation.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_SPOT_ANGLE" value="5" enum="LightParam">
2017-11-26 15:37:37 +00:00
The spotlight's angle.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_SPOT_ATTENUATION" value="6" enum="LightParam">
2017-11-26 15:37:37 +00:00
The spotlight's attenuation.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_CONTACT_SHADOW_SIZE" value="7" enum="LightParam">
2017-11-26 15:37:37 +00:00
Scales the shadow color.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_SHADOW_MAX_DISTANCE" value="8" enum="LightParam">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET" value="9" enum="LightParam">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET" value="10" enum="LightParam">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET" value="11" enum="LightParam">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_SHADOW_NORMAL_BIAS" value="12" enum="LightParam">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_SHADOW_BIAS" value="13" enum="LightParam">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_SHADOW_BIAS_SPLIT_SCALE" value="14" enum="LightParam">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="LIGHT_PARAM_MAX" value="15" enum="LightParam">
2017-11-26 15:37:37 +00:00
The light parameters endpoint. Used internally.
2017-10-21 10:02:08 +00:00
</constant>
2018-02-19 09:47:16 +00:00
<constant name="LIGHT_OMNI_SHADOW_DUAL_PARABOLOID" value="0" enum="LightOmniShadowMode">
</constant>
<constant name="LIGHT_OMNI_SHADOW_CUBE" value="1" enum="LightOmniShadowMode">
</constant>
<constant name="LIGHT_OMNI_SHADOW_DETAIL_VERTICAL" value="0" enum="LightOmniShadowDetail">
</constant>
<constant name="LIGHT_OMNI_SHADOW_DETAIL_HORIZONTAL" value="1" enum="LightOmniShadowDetail">
</constant>
<constant name="LIGHT_DIRECTIONAL_SHADOW_ORTHOGONAL" value="0" enum="LightDirectionalShadowMode">
</constant>
<constant name="LIGHT_DIRECTIONAL_SHADOW_PARALLEL_2_SPLITS" value="1" enum="LightDirectionalShadowMode">
</constant>
<constant name="LIGHT_DIRECTIONAL_SHADOW_PARALLEL_4_SPLITS" value="2" enum="LightDirectionalShadowMode">
</constant>
<constant name="LIGHT_DIRECTIONAL_SHADOW_DEPTH_RANGE_STABLE" value="0" enum="LightDirectionalShadowDepthRangeMode">
</constant>
<constant name="LIGHT_DIRECTIONAL_SHADOW_DEPTH_RANGE_OPTIMIZED" value="1" enum="LightDirectionalShadowDepthRangeMode">
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_UPDATE_DISABLED" value="0" enum="ViewportUpdateMode">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_UPDATE_ONCE" value="1" enum="ViewportUpdateMode">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_UPDATE_WHEN_VISIBLE" value="2" enum="ViewportUpdateMode">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_UPDATE_ALWAYS" value="3" enum="ViewportUpdateMode">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_CLEAR_ALWAYS" value="0" enum="ViewportClearMode">
2017-11-26 15:37:37 +00:00
The viewport is always cleared before drawing.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_CLEAR_NEVER" value="1" enum="ViewportClearMode">
2017-11-26 15:37:37 +00:00
The viewport is never cleared before drawing.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_CLEAR_ONLY_NEXT_FRAME" value="2" enum="ViewportClearMode">
The viewport is cleared once, then the clear mode is set to [code]VIEWPORT_CLEAR_NEVER[/code].
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_MSAA_DISABLED" value="0" enum="ViewportMSAA">
2017-11-26 15:37:37 +00:00
Multisample antialiasing is disabled.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_MSAA_2X" value="1" enum="ViewportMSAA">
2017-11-26 15:37:37 +00:00
Multisample antialiasing is set to 2X.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_MSAA_4X" value="2" enum="ViewportMSAA">
2017-11-26 15:37:37 +00:00
Multisample antialiasing is set to 4X.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_MSAA_8X" value="3" enum="ViewportMSAA">
2017-11-26 15:37:37 +00:00
Multisample antialiasing is set to 8X.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_MSAA_16X" value="4" enum="ViewportMSAA">
2017-11-26 15:37:37 +00:00
Multisample antialiasing is set to 16X.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_USAGE_2D" value="0" enum="ViewportUsage">
2017-11-26 15:37:37 +00:00
The Viewport does not render 3D but samples.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_USAGE_2D_NO_SAMPLING" value="1" enum="ViewportUsage">
2017-11-26 15:37:37 +00:00
The Viewport does not render 3D and does not sample.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_USAGE_3D" value="2" enum="ViewportUsage">
2017-11-26 15:37:37 +00:00
The Viewport renders 3D with effects.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_USAGE_3D_NO_EFFECTS" value="3" enum="ViewportUsage">
2017-11-26 15:37:37 +00:00
The Viewport renders 3D but without effects.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_RENDER_INFO_OBJECTS_IN_FRAME" value="0" enum="ViewportRenderInfo">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_RENDER_INFO_VERTICES_IN_FRAME" value="1" enum="ViewportRenderInfo">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_RENDER_INFO_MATERIAL_CHANGES_IN_FRAME" value="2" enum="ViewportRenderInfo">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_RENDER_INFO_SHADER_CHANGES_IN_FRAME" value="3" enum="ViewportRenderInfo">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_RENDER_INFO_SURFACE_CHANGES_IN_FRAME" value="4" enum="ViewportRenderInfo">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME" value="5" enum="ViewportRenderInfo">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_RENDER_INFO_MAX" value="6" enum="ViewportRenderInfo">
2017-11-26 15:37:37 +00:00
Marks end of VIEWPORT_RENDER_INFO* constants. Used internally.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_DEBUG_DRAW_DISABLED" value="0" enum="ViewportDebugDraw">
2017-11-26 15:37:37 +00:00
Debug draw is disabled. Default setting.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_DEBUG_DRAW_UNSHADED" value="1" enum="ViewportDebugDraw">
2017-11-26 15:37:37 +00:00
Debug draw sets objects to unshaded.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_DEBUG_DRAW_OVERDRAW" value="2" enum="ViewportDebugDraw">
2017-11-26 15:37:37 +00:00
Overwrites clear color to [code](0,0,0,0)[/code].
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="VIEWPORT_DEBUG_DRAW_WIREFRAME" value="3" enum="ViewportDebugDraw">
2017-11-26 15:37:37 +00:00
Debug draw draws objects in wireframe.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="SCENARIO_DEBUG_DISABLED" value="0" enum="ScenarioDebugMode">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="SCENARIO_DEBUG_WIREFRAME" value="1" enum="ScenarioDebugMode">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="SCENARIO_DEBUG_OVERDRAW" value="2" enum="ScenarioDebugMode">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="SCENARIO_DEBUG_SHADELESS" value="3" enum="ScenarioDebugMode">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INSTANCE_NONE" value="0" enum="InstanceType">
2017-11-26 15:37:37 +00:00
The instance does not have a type.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INSTANCE_MESH" value="1" enum="InstanceType">
2017-11-26 15:37:37 +00:00
The instance is a mesh.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INSTANCE_MULTIMESH" value="2" enum="InstanceType">
2017-11-26 15:37:37 +00:00
The instance is a multimesh.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INSTANCE_IMMEDIATE" value="3" enum="InstanceType">
2017-11-26 15:37:37 +00:00
The instance is an immediate geometry.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INSTANCE_PARTICLES" value="4" enum="InstanceType">
2017-11-26 15:37:37 +00:00
The instance is a particle emitter.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INSTANCE_LIGHT" value="5" enum="InstanceType">
2017-11-26 15:37:37 +00:00
The instance is a light.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INSTANCE_REFLECTION_PROBE" value="6" enum="InstanceType">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INSTANCE_GI_PROBE" value="7" enum="InstanceType">
2017-10-21 10:02:08 +00:00
</constant>
<constant name="INSTANCE_LIGHTMAP_CAPTURE" value="8" enum="InstanceType">
</constant>
<constant name="INSTANCE_MAX" value="9" enum="InstanceType">
2017-11-26 15:37:37 +00:00
The max value for INSTANCE_* constants, used internally.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INSTANCE_GEOMETRY_MASK" value="30" enum="InstanceType">
2017-11-26 15:37:37 +00:00
A combination of the flags of geometry instances (mesh, multimesh, immediate and particles).
2017-10-21 10:02:08 +00:00
</constant>
2018-02-19 09:47:16 +00:00
<constant name="INSTANCE_FLAG_USE_BAKED_LIGHT" value="0" enum="InstanceFlags">
</constant>
2018-08-20 22:35:30 +00:00
<constant name="INSTANCE_FLAG_DRAW_NEXT_FRAME_IF_VISIBLE" value="1" enum="InstanceFlags">
</constant>
<constant name="INSTANCE_FLAG_MAX" value="2" enum="InstanceFlags">
2018-02-19 09:47:16 +00:00
</constant>
<constant name="SHADOW_CASTING_SETTING_OFF" value="0" enum="ShadowCastingSetting">
</constant>
<constant name="SHADOW_CASTING_SETTING_ON" value="1" enum="ShadowCastingSetting">
</constant>
<constant name="SHADOW_CASTING_SETTING_DOUBLE_SIDED" value="2" enum="ShadowCastingSetting">
</constant>
<constant name="SHADOW_CASTING_SETTING_SHADOWS_ONLY" value="3" enum="ShadowCastingSetting">
</constant>
2017-11-24 22:16:30 +00:00
<constant name="NINE_PATCH_STRETCH" value="0" enum="NinePatchAxisMode">
2017-11-26 15:37:37 +00:00
The nine patch gets stretched where needed.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="NINE_PATCH_TILE" value="1" enum="NinePatchAxisMode">
2017-11-26 15:37:37 +00:00
The nine patch gets filled with tiles where needed.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="NINE_PATCH_TILE_FIT" value="2" enum="NinePatchAxisMode">
2017-11-26 15:37:37 +00:00
The nine patch gets filled with tiles where needed and stretches them a bit if needed.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_LIGHT_MODE_ADD" value="0" enum="CanvasLightMode">
2017-11-26 15:37:37 +00:00
Adds light color additive to the canvas.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_LIGHT_MODE_SUB" value="1" enum="CanvasLightMode">
2017-11-26 15:37:37 +00:00
Adds light color subtractive to the canvas.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_LIGHT_MODE_MIX" value="2" enum="CanvasLightMode">
2017-11-26 15:37:37 +00:00
The light adds color depending on transparency.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_LIGHT_MODE_MASK" value="3" enum="CanvasLightMode">
2017-11-26 15:37:37 +00:00
The light adds color depending on mask.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_LIGHT_FILTER_NONE" value="0" enum="CanvasLightShadowFilter">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_LIGHT_FILTER_PCF3" value="1" enum="CanvasLightShadowFilter">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_LIGHT_FILTER_PCF5" value="2" enum="CanvasLightShadowFilter">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_LIGHT_FILTER_PCF7" value="3" enum="CanvasLightShadowFilter">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_LIGHT_FILTER_PCF9" value="4" enum="CanvasLightShadowFilter">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_LIGHT_FILTER_PCF13" value="5" enum="CanvasLightShadowFilter">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_OCCLUDER_POLYGON_CULL_DISABLED" value="0" enum="CanvasOccluderPolygonCullMode">
2017-11-26 15:37:37 +00:00
Culling of the canvas occluder is disabled.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_OCCLUDER_POLYGON_CULL_CLOCKWISE" value="1" enum="CanvasOccluderPolygonCullMode">
2017-11-26 15:37:37 +00:00
Culling of the canvas occluder is clockwise.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="CANVAS_OCCLUDER_POLYGON_CULL_COUNTER_CLOCKWISE" value="2" enum="CanvasOccluderPolygonCullMode">
2017-11-26 15:37:37 +00:00
Culling of the canvas occluder is counterclockwise.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INFO_OBJECTS_IN_FRAME" value="0" enum="RenderInfo">
2017-11-26 15:37:37 +00:00
The amount of objects in the frame.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INFO_VERTICES_IN_FRAME" value="1" enum="RenderInfo">
2017-11-26 15:37:37 +00:00
The amount of vertices in the frame.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INFO_MATERIAL_CHANGES_IN_FRAME" value="2" enum="RenderInfo">
2017-11-26 15:37:37 +00:00
The amount of modified materials in the frame.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INFO_SHADER_CHANGES_IN_FRAME" value="3" enum="RenderInfo">
2017-11-26 15:37:37 +00:00
The amount of shader rebinds in the frame.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INFO_SURFACE_CHANGES_IN_FRAME" value="4" enum="RenderInfo">
2017-11-26 15:37:37 +00:00
The amount of surface changes in the frame.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INFO_DRAW_CALLS_IN_FRAME" value="5" enum="RenderInfo">
2017-11-26 15:37:37 +00:00
The amount of draw calls in frame.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INFO_USAGE_VIDEO_MEM_TOTAL" value="6" enum="RenderInfo">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INFO_VIDEO_MEM_USED" value="7" enum="RenderInfo">
2017-11-26 15:37:37 +00:00
The amount of vertex memory and texture memory used.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INFO_TEXTURE_MEM_USED" value="8" enum="RenderInfo">
2017-11-26 15:37:37 +00:00
The amount of texture memory used.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="INFO_VERTEX_MEM_USED" value="9" enum="RenderInfo">
2017-11-26 15:37:37 +00:00
The amount of vertex memory used.
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="FEATURE_SHADERS" value="0" enum="Features">
2017-10-21 10:02:08 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name="FEATURE_MULTITHREADED" value="1" enum="Features">
2017-10-21 10:02:08 +00:00
</constant>
2018-02-19 09:47:16 +00:00
<constant name="MULTIMESH_TRANSFORM_2D" value="0" enum="MultimeshTransformFormat">
</constant>
<constant name="MULTIMESH_TRANSFORM_3D" value="1" enum="MultimeshTransformFormat">
</constant>
<constant name="MULTIMESH_COLOR_NONE" value="0" enum="MultimeshColorFormat">
</constant>
<constant name="MULTIMESH_COLOR_8BIT" value="1" enum="MultimeshColorFormat">
</constant>
<constant name="MULTIMESH_COLOR_FLOAT" value="2" enum="MultimeshColorFormat">
</constant>
<constant name="MULTIMESH_CUSTOM_DATA_NONE" value="0" enum="MultimeshCustomDataFormat">
</constant>
<constant name="MULTIMESH_CUSTOM_DATA_8BIT" value="1" enum="MultimeshCustomDataFormat">
</constant>
<constant name="MULTIMESH_CUSTOM_DATA_FLOAT" value="2" enum="MultimeshCustomDataFormat">
</constant>
2018-02-19 09:47:16 +00:00
<constant name="REFLECTION_PROBE_UPDATE_ONCE" value="0" enum="ReflectionProbeUpdateMode">
</constant>
<constant name="REFLECTION_PROBE_UPDATE_ALWAYS" value="1" enum="ReflectionProbeUpdateMode">
</constant>
<constant name="PARTICLES_DRAW_ORDER_INDEX" value="0" enum="ParticlesDrawOrder">
</constant>
<constant name="PARTICLES_DRAW_ORDER_LIFETIME" value="1" enum="ParticlesDrawOrder">
</constant>
<constant name="PARTICLES_DRAW_ORDER_VIEW_DEPTH" value="2" enum="ParticlesDrawOrder">
</constant>
<constant name="ENV_BG_CLEAR_COLOR" value="0" enum="EnvironmentBG">
</constant>
<constant name="ENV_BG_COLOR" value="1" enum="EnvironmentBG">
</constant>
<constant name="ENV_BG_SKY" value="2" enum="EnvironmentBG">
</constant>
<constant name="ENV_BG_COLOR_SKY" value="3" enum="EnvironmentBG">
</constant>
<constant name="ENV_BG_CANVAS" value="4" enum="EnvironmentBG">
</constant>
<constant name="ENV_BG_KEEP" value="5" enum="EnvironmentBG">
</constant>
<constant name="ENV_BG_MAX" value="6" enum="EnvironmentBG">
</constant>
<constant name="ENV_DOF_BLUR_QUALITY_LOW" value="0" enum="EnvironmentDOFBlurQuality">
</constant>
<constant name="ENV_DOF_BLUR_QUALITY_MEDIUM" value="1" enum="EnvironmentDOFBlurQuality">
</constant>
<constant name="ENV_DOF_BLUR_QUALITY_HIGH" value="2" enum="EnvironmentDOFBlurQuality">
</constant>
<constant name="GLOW_BLEND_MODE_ADDITIVE" value="0" enum="EnvironmentGlowBlendMode">
</constant>
<constant name="GLOW_BLEND_MODE_SCREEN" value="1" enum="EnvironmentGlowBlendMode">
</constant>
<constant name="GLOW_BLEND_MODE_SOFTLIGHT" value="2" enum="EnvironmentGlowBlendMode">
</constant>
<constant name="GLOW_BLEND_MODE_REPLACE" value="3" enum="EnvironmentGlowBlendMode">
</constant>
<constant name="ENV_TONE_MAPPER_LINEAR" value="0" enum="EnvironmentToneMapper">
</constant>
2018-10-07 13:52:07 +00:00
<constant name="ENV_TONE_MAPPER_REINHARD" value="1" enum="EnvironmentToneMapper">
2018-02-19 09:47:16 +00:00
</constant>
<constant name="ENV_TONE_MAPPER_FILMIC" value="2" enum="EnvironmentToneMapper">
</constant>
<constant name="ENV_TONE_MAPPER_ACES" value="3" enum="EnvironmentToneMapper">
</constant>
<constant name="ENV_SSAO_QUALITY_LOW" value="0" enum="EnvironmentSSAOQuality">
</constant>
<constant name="ENV_SSAO_QUALITY_MEDIUM" value="1" enum="EnvironmentSSAOQuality">
</constant>
<constant name="ENV_SSAO_QUALITY_HIGH" value="2" enum="EnvironmentSSAOQuality">
</constant>
<constant name="ENV_SSAO_BLUR_DISABLED" value="0" enum="EnvironmentSSAOBlur">
</constant>
<constant name="ENV_SSAO_BLUR_1x1" value="1" enum="EnvironmentSSAOBlur">
</constant>
<constant name="ENV_SSAO_BLUR_2x2" value="2" enum="EnvironmentSSAOBlur">
</constant>
<constant name="ENV_SSAO_BLUR_3x3" value="3" enum="EnvironmentSSAOBlur">
</constant>
</constants>
2017-12-09 23:43:30 +00:00
</class>