/
Sprite3D.hx
109 lines (85 loc) · 2.94 KB
/
Sprite3D.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// Automatically generated Godot externs: DO NOT EDIT
// MIT licensed, see LICENSE.md
package godot;
import cs.system.*;
/**
A node that displays a 2D texture in a 3D environment. The texture displayed can be a region from a larger atlas texture, or a frame from a sprite sheet animation.
**/
@:libType
@:csNative
@:native("Godot.Sprite3D")
@:autoBuild(godot.Godot.buildUserClass())
extern class Sprite3D extends godot.SpriteBase3D {
/**
`frame_changed` signal.
**/
public var onFrameChanged(get, never):Signal<Void->Void>;
@:dox(hide) @:noCompletion inline function get_onFrameChanged():Signal<Void->Void> {
return new Signal(this, "frame_changed", Signal.SignalHandlerVoidVoid.connectSignal, Signal.SignalHandlerVoidVoid.disconnectSignal, Signal.SignalHandlerVoidVoid.isSignalConnected);
}
/**
The region of the atlas texture to display. `godot.Sprite3D.regionEnabled` must be `true`.
**/
@:native("RegionRect")
public var regionRect:godot.Rect2;
/**
If `true`, texture will be cut from a larger atlas texture. See `godot.Sprite3D.regionRect`.
**/
@:native("RegionEnabled")
public var regionEnabled:Bool;
/**
Coordinates of the frame to display from sprite sheet. This is as an alias for the `godot.Sprite3D.frame` property. `godot.Sprite3D.hframes` or `godot.Sprite3D.vframes` must be greater than 1.
**/
@:native("FrameCoords")
public var frameCoords:godot.Vector2;
/**
Current frame to display from sprite sheet. `godot.Sprite3D.hframes` or `godot.Sprite3D.vframes` must be greater than 1.
**/
@:native("Frame")
public var frame:Int;
/**
The number of rows in the sprite sheet.
**/
@:native("Vframes")
public var vframes:Int;
/**
The number of columns in the sprite sheet.
**/
@:native("Hframes")
public var hframes:Int;
/**
`godot.Texture` object to draw. If `godot.GeometryInstance.materialOverride` is used, this will be overridden.
**/
@:native("Texture")
public var texture:godot.Texture;
@:native("new")
public function new():Void;
@:native("SetTexture")
public function setTexture(texture:godot.Texture):Void;
@:native("GetTexture")
public function getTexture():godot.Texture;
@:native("SetRegion")
public function setRegion(enabled:Bool):Void;
@:native("IsRegion")
public function isRegion():Bool;
@:native("SetRegionRect")
public function setRegionRect(rect:godot.Rect2):Void;
@:native("GetRegionRect")
public function getRegionRect():godot.Rect2;
@:native("SetFrame")
public function setFrame(frame:Int):Void;
@:native("GetFrame")
public function getFrame():Int;
@:native("SetFrameCoords")
public function setFrameCoords(coords:godot.Vector2):Void;
@:native("GetFrameCoords")
public function getFrameCoords():godot.Vector2;
@:native("SetVframes")
public function setVframes(vframes:Int):Void;
@:native("GetVframes")
public function getVframes():Int;
@:native("SetHframes")
public function setHframes(hframes:Int):Void;
@:native("GetHframes")
public function getHframes():Int;
}