2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2020-03-30 18:22:57 +02:00
<class name= "ImmediateGeometry3D" inherits= "GeometryInstance3D" version= "4.0" >
2017-09-12 22:42:36 +02:00
<brief_description >
2017-10-09 12:49:12 +02:00
Draws simple geometry from code.
2017-09-12 22:42:36 +02:00
</brief_description>
<description >
2017-10-09 12:49:12 +02:00
Draws simple geometry from code. Uses a drawing mode similar to OpenGL 1.x.
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "add_sphere" >
<return type= "void" >
</return>
<argument index= "0" name= "lats" type= "int" >
</argument>
<argument index= "1" name= "lons" type= "int" >
</argument>
<argument index= "2" name= "radius" type= "float" >
</argument>
<argument index= "3" name= "add_uv" type= "bool" default= "true" >
</argument>
<description >
2019-06-22 01:04:47 +02:00
Simple helper to draw an UV sphere with given latitude, longitude and radius.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "add_vertex" >
<return type= "void" >
</return>
2017-09-10 15:37:49 +02:00
<argument index= "0" name= "position" type= "Vector3" >
2017-09-12 22:42:36 +02:00
</argument>
<description >
2019-12-24 05:20:32 +01:00
Adds a vertex in local coordinate space with the currently set color/uv/etc.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "begin" >
<return type= "void" >
</return>
<argument index= "0" name= "primitive" type= "int" enum= "Mesh.PrimitiveType" >
</argument>
2020-02-12 09:59:06 +01:00
<argument index= "1" name= "texture" type= "Texture2D" default= "null" >
2017-09-12 22:42:36 +02:00
</argument>
<description >
2019-12-06 23:09:20 +01:00
Begin drawing (and optionally pass a texture override). When done call [method end]. For more information on how this works, search for [code]glBegin()[/code] and [code]glEnd()[/code] references.
For the type of primitive, see the [enum Mesh.PrimitiveType] enum.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "clear" >
<return type= "void" >
</return>
<description >
2017-10-09 12:49:12 +02:00
Clears everything that was drawn using begin/end.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "end" >
<return type= "void" >
</return>
<description >
2017-10-09 12:49:12 +02:00
Ends a drawing context and displays the results.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "set_color" >
<return type= "void" >
</return>
<argument index= "0" name= "color" type= "Color" >
</argument>
<description >
2017-10-09 12:49:12 +02:00
The current drawing color.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "set_normal" >
<return type= "void" >
</return>
<argument index= "0" name= "normal" type= "Vector3" >
</argument>
<description >
2017-10-09 12:49:12 +02:00
The next vertex's normal.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "set_tangent" >
<return type= "void" >
</return>
<argument index= "0" name= "tangent" type= "Plane" >
</argument>
<description >
2017-10-09 12:49:12 +02:00
The next vertex's tangent (and binormal facing).
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "set_uv" >
<return type= "void" >
</return>
<argument index= "0" name= "uv" type= "Vector2" >
</argument>
<description >
2017-10-09 12:49:12 +02:00
The next vertex's UV.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "set_uv2" >
<return type= "void" >
</return>
<argument index= "0" name= "uv" type= "Vector2" >
</argument>
<description >
2017-10-09 12:49:12 +02:00
The next vertex's second layer UV.
2017-09-12 22:42:36 +02:00
</description>
</method>
</methods>
<constants >
</constants>
</class>