/
CSGTorus.hx
91 lines (70 loc) · 2.28 KB
/
CSGTorus.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// Automatically generated Godot externs: DO NOT EDIT
// MIT licensed, see LICENSE.md
package godot;
import cs.system.*;
/**
This node allows you to create a torus for use with the CSG system.
Note: CSG nodes are intended to be used for level prototyping. Creating CSG nodes has a significant CPU cost compared to creating a `godot.MeshInstance` with a `godot.PrimitiveMesh`. Moving a CSG node within another CSG node also has a significant CPU cost, so it should be avoided during gameplay.
**/
@:libType
@:csNative
@:native("Godot.CSGTorus")
@:autoBuild(godot.Godot.buildUserClass())
extern class CSGTorus extends godot.CSGPrimitive {
/**
The material used to render the torus.
**/
@:native("Material")
public var material:godot.Material;
/**
If `true` the normals of the torus are set to give a smooth effect making the torus seem rounded. If `false` the torus will have a flat shaded look.
**/
@:native("SmoothFaces")
public var smoothFaces:Bool;
/**
The number of edges each ring of the torus is constructed of.
**/
@:native("RingSides")
public var ringSides:Int;
/**
The number of slices the torus is constructed of.
**/
@:native("Sides")
public var sides:Int;
/**
The outer radius of the torus.
**/
@:native("OuterRadius")
public var outerRadius:Single;
/**
The inner radius of the torus.
**/
@:native("InnerRadius")
public var innerRadius:Single;
@:native("new")
public function new():Void;
@:native("SetInnerRadius")
public function setInnerRadius(radius:Single):Void;
@:native("GetInnerRadius")
public function getInnerRadius():Single;
@:native("SetOuterRadius")
public function setOuterRadius(radius:Single):Void;
@:native("GetOuterRadius")
public function getOuterRadius():Single;
@:native("SetSides")
public function setSides(sides:Int):Void;
@:native("GetSides")
public function getSides():Int;
@:native("SetRingSides")
public function setRingSides(sides:Int):Void;
@:native("GetRingSides")
public function getRingSides():Int;
@:native("SetMaterial")
public function setMaterial(material:godot.Material):Void;
@:native("GetMaterial")
public function getMaterial():godot.Material;
@:native("SetSmoothFaces")
public function setSmoothFaces(smoothFaces:Bool):Void;
@:native("GetSmoothFaces")
public function getSmoothFaces():Bool;
}