-
Notifications
You must be signed in to change notification settings - Fork 2
/
website.json
96 lines (96 loc) · 2.84 KB
/
website.json
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
{
"Title": "SpriteRenderer",
"Description": "SpriteRenderer is a component that can be added to a GameObject. it can contain a solid color, a semi-transparent color, or a texture. Sprites can be tinted by the color value.",
"Constructors": [
[
"SpriteRenderer(Sprite sprite)",
"Create a spriteRenderer using a sprite that is already loaded."
],
[
"SpriteRenderer(Color color)",
"Create the spriteRenderer using a Color object, no sprite."
],
[
"SpriteRenderer(java.lang.String path)",
"Create a spriteRenderer using an image from the fileSystem."
],
[
"SpriteRenderer(org.joml.Vector4f color)",
"Create the spriteRenderer using a color vector, no sprite."
]
],
"Fields": [
[
"<div class=\"danger\"><strong>[SCRAPER:WARNING]</strong> The JavaDoc Scraper was unable to find the any data for the fields table. Please manually add any missing data or remove this warning and table.</div>",
"",
""
]
],
"Methods": [
[
"Color",
"getColor()",
""
],
[
"org.joml.Vector4f",
"getColorVector()",
""
],
[
"org.joml.Vector2f[]",
"getTexCoords()",
""
],
[
"Texture",
"getTexture()",
""
],
[
"boolean",
"isDirty()",
"Used by the renderer to determine if this sprite should be sent back to the GPU to be redrawn."
],
[
"void",
"setAlpha(float a)",
"Change the alpha/opacity of the sprite and/or color"
],
[
"void",
"setClean()",
"Used by the renderer to reset the state of the SpriteRenderer to clean."
],
[
"void",
"setColor(Color color)",
"Change the color by passing a Color object, converting it to a normalized Vector4f."
],
[
"void",
"setColor(org.joml.Vector4f color)",
"Change the color by passing a Vector4f"
],
[
"void",
"setSprite(Sprite sprite)",
"Change the sprite contained in the SpriteRenderer Component."
],
[
"void",
"setTexture(Texture texture)",
"Set the texture of the Sprite if reqd."
],
[
"void",
"start()",
"Initialize the Component, called once after creation by the parent GameObject."
],
[
"void",
"update(float dt)",
"Update method called every frame by parent GameObject"
]
]
}