From f88f762240acaa9ce181ce8119b8c6ff5b1941f8 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Sat, 14 Dec 2019 16:38:19 -0800 Subject: [PATCH] Updated docs for many VisualServer methods --- doc/classes/VisualServer.xml | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/doc/classes/VisualServer.xml b/doc/classes/VisualServer.xml index db3fd930c6f..f804e32c4b0 100644 --- a/doc/classes/VisualServer.xml +++ b/doc/classes/VisualServer.xml @@ -44,6 +44,7 @@ + Creates a camera and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]camera_*[/code] VisualServer functions. @@ -54,6 +55,7 @@ + Sets the cull mask associated with this camera. The cull mask describes which 3d layers are rendered by this camera. Equivalent to [member Camera.cull_mask]. @@ -64,6 +66,7 @@ + Sets the environment used by this camera. Equivalent to [member Camera.environment]. @@ -80,6 +83,7 @@ + Sets camera to use frustum projection. This mode allows adjusting the [code]offset[/code] argument to create "tilted frustum" effects. @@ -94,6 +98,7 @@ + Sets camera to use orthogonal projection, also known as orthographic projection. Objects remain the same size on the screen no matter how far away they are. @@ -108,6 +113,7 @@ + Sets camera to use perspective projection. Objects on the screen becomes smaller when they are far away. @@ -118,6 +124,7 @@ + Sets [Transform] of camera. @@ -128,6 +135,7 @@ + If [code]true[/code], preserves the horizontal aspect ratio which is equivalent to [constant Camera.KEEP_WIDTH]. If [code]false[/code], preserves the vertical aspect ratio which is equivalent to [constant Camera.KEEP_HEIGHT]. @@ -198,6 +206,7 @@ + Adds a mesh command to the [CanvasItem]'s draw commands. @@ -414,6 +423,7 @@ + Adds a triangle array to the [CanvasItem]'s draw commands. @@ -477,6 +487,7 @@ + Enables the use of distance fields for GUI elements that are rendering distance field based fonts. @@ -800,6 +811,7 @@ + Sets the texture's scale factor of the light. Equivalent to [member Light2D.texture_scale]. @@ -876,6 +888,7 @@ + Sets texture to be used by light. Equivalent to [member Light2D.texture]. @@ -886,6 +899,7 @@ + Sets the offset of the light's texture. Equivalent to [member Light2D.offset]. @@ -909,6 +923,7 @@ + Sets the Z range of objects that will be affected by this light. Equivalent to [member Light2D.range_z_min] and [member Light2D.range_z_max]. @@ -981,6 +996,7 @@ + Creates a directional light and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID can be used in most [code]light_*[/code] VisualServer functions. @@ -991,12 +1007,14 @@ + Draws a frame. [i]This method is deprecated[/i], please use [method force_draw] instead. + Creates an environment and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]environment_*[/code] VisualServer functions. @@ -1015,6 +1033,7 @@ + Sets the values to be used with the "Adjustment" post-process effect. See [Environment] for more details. @@ -1029,6 +1048,7 @@ + Sets the ambient light parameters. See [Environment] for more details. @@ -1039,6 +1059,7 @@ + Sets the [i]BGMode[/i] of the environment. Equivalent to [member Environment.background_mode]. @@ -1049,6 +1070,7 @@ + Color displayed for clear areas of the scene (if using Custom color or Color+Sky background modes). @@ -1059,6 +1081,7 @@ + Sets the intensity of the background color. @@ -1069,6 +1092,7 @@ + Sets the maximum layer to use if using Canvas background mode. @@ -1087,6 +1111,7 @@ + Sets the values to be used with the "DoF Far Blur" post-process effect. See [Environment] for more details. @@ -1105,6 +1130,7 @@ + Sets the values to be used with the "DoF Near Blur" post-process effect. See [Environment] for more details. @@ -1121,6 +1147,7 @@ + Sets the variables to be used with the scene fog. See [Environment] for more details. @@ -1141,6 +1168,7 @@ + Sets the variables to be used with the fog depth effect. See [Environment] for more details. @@ -1157,6 +1185,7 @@ + Sets the variables to be used with the fog height effect. See [Environment] for more details. @@ -1185,6 +1214,7 @@ + Sets the variables to be used with the "glow" post-process effect. See [Environment] for more details. @@ -1195,6 +1225,7 @@ + Sets the [Sky] to be used as the environment's background when using [i]BGMode[/i] sky. Equivalent to [member Environment.background_sky]. @@ -1205,6 +1236,7 @@ + Sets a custom field of view for the background [Sky]. Equivalent to [member Environment.background_sky_custom_fov]. @@ -1215,6 +1247,7 @@ + Sets the rotation of the background [Sky] expressed as a [Basis]. Equivalent to [member Environment.background_sky_orientation]. @@ -1247,6 +1280,7 @@ + Sets the variables to be used with the "Screen Space Ambient Occlusion (SSAO)" post-process effect. See [Environment] for more details. @@ -1267,6 +1301,7 @@ + Sets the variables to be used with the "screen space reflections" post-process effect. See [Environment] for more details. @@ -1291,6 +1326,7 @@ + Sets the variables to be used with the "tonemap" post-process effect. See [Environment] for more details. @@ -1308,6 +1344,7 @@ + Forces a frame to be drawn when the function is called. Drawing a frame updates all [Viewport]s that are set to update. Use with extreme caution. @@ -1594,6 +1631,7 @@ + Sets up [ImmediateGeometry] internals to prepare for drawing. Equivalent to [method ImmediateGeometry.begin]. @@ -1602,6 +1640,7 @@ + Clears everything that was set up between [method immediate_begin] and [method immediate_end]. Equivalent to [method ImmediateGeometry.clear]. @@ -1612,12 +1651,14 @@ + Sets the color to be used with next vertex. Equivalent to [method ImmediateGeometry.set_color]. + Creates an [ImmediateGeometry] and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]immediate_*[/code] VisualServer functions. @@ -1626,6 +1667,7 @@ + Ends drawing the [ImmediateGeometry] and displays it. Equivalent to [method ImmediateGeometry.end]. @@ -1634,6 +1676,7 @@ + Returns the material assigned to the [ImmediateGeometry]. @@ -1644,6 +1687,7 @@ + Sets the normal to be used with next vertex. Equivalent to [method ImmediateGeometry.set_normal]. @@ -1654,6 +1698,7 @@ + Sets the material to be used to draw the [ImmediateGeometry]. @@ -1664,6 +1709,7 @@ + Sets the tangent to be used with next vertex. Equivalent to [method ImmediateGeometry.set_tangent]. @@ -1674,6 +1720,7 @@ + Sets the UV to be used with next vertex. Equivalent to [method ImmediateGeometry.set_uv]. @@ -1684,6 +1731,7 @@ + Sets the UV2 to be used with next vertex. Equivalent to [method ImmediateGeometry.set_uv2]. @@ -1694,6 +1742,7 @@ + Adds the next vertex using the information provided in advance. Equivalent to [method ImmediateGeometry.add_vertex]. @@ -3956,10 +4005,12 @@ + Emitted at the end of the frame, after the VisualServer has finished updating all the Viewports. + Emitted at the beginning of the frame, before the VisualServer updates all the Viewports.