Godot Nature of Code  1.2.0
Nature of Code implemented in Godot Engine
Public Types | Public Member Functions | Public Attributes | List of all members
Drawing.SimpleMesh Class Reference

Simple "mesh" drawing. Can be a circle, square, custom drawing or custom texture. More...

Inherits Node2D.

Public Types

enum class  TypeEnum { Circle , Square , Custom , Texture }
 Mesh type enum value. More...
 

Public Member Functions

delegate void CustomDrawFunc (SimpleMesh pen)
 Custom draw function definition More...
 
 SimpleMesh ()
 Create a default light-cyan circle mesh. More...
 

Public Attributes

Vector2 MeshSize = new Vector2(40, 40)
 Mesh size More...
 
TypeEnum MeshType
 Mesh type More...
 
CustomDrawFunc CustomDrawMethod
 Custom draw method More...
 
Texture CustomTexture
 Custom texture More...
 
Material CustomMaterial
 Custom material More...
 

Detailed Description

Simple "mesh" drawing. Can be a circle, square, custom drawing or custom texture.

Definition at line 8 of file SimpleMesh.cs.

Member Enumeration Documentation

◆ TypeEnum

Mesh type enum value.

Enumerator
Circle 

Circle mesh

Square 

Square mesh

Custom 

Custom mesh

Texture 

Custom texture

Definition at line 13 of file SimpleMesh.cs.

14  {
16  Circle,
17 
19  Square,
20 
22  Custom,
23 
25  Texture
26  }

Constructor & Destructor Documentation

◆ SimpleMesh()

Drawing.SimpleMesh.SimpleMesh ( )
inline

Create a default light-cyan circle mesh.

Definition at line 52 of file SimpleMesh.cs.

53  {
54  Modulate = Colors.LightCyan;
55  Name = "SimpleMesh";
56  }

Member Function Documentation

◆ CustomDrawFunc()

delegate void Drawing.SimpleMesh.CustomDrawFunc ( SimpleMesh  pen)

Custom draw function definition

Member Data Documentation

◆ CustomDrawMethod

CustomDrawFunc Drawing.SimpleMesh.CustomDrawMethod

Custom draw method

Definition at line 38 of file SimpleMesh.cs.

◆ CustomMaterial

Material Drawing.SimpleMesh.CustomMaterial

Custom material

Definition at line 44 of file SimpleMesh.cs.

◆ CustomTexture

Texture Drawing.SimpleMesh.CustomTexture

Custom texture

Definition at line 41 of file SimpleMesh.cs.

◆ MeshSize

Vector2 Drawing.SimpleMesh.MeshSize = new Vector2(40, 40)

Mesh size

Definition at line 32 of file SimpleMesh.cs.

◆ MeshType

TypeEnum Drawing.SimpleMesh.MeshType

Mesh type

Definition at line 35 of file SimpleMesh.cs.


The documentation for this class was generated from the following file: