1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fixes missng 2D engine bits

-Mesh2D now works
-MultiMesh2D now works
-Polygon2D now works
-Added hooks for processing 2D particles
-Skeleton2D now works

2D particles still not working, but stuff needed for it is now implemented.
This commit is contained in:
reduz
2021-05-10 13:12:44 -03:00
parent a1cc6b45dc
commit 479391ef54
18 changed files with 395 additions and 308 deletions

View File

@@ -246,10 +246,16 @@ public:
RID mesh;
Transform2D transform;
Color modulate;
RID mesh_instance;
RID texture;
CommandMesh() { type = TYPE_MESH; }
~CommandMesh() {
if (mesh_instance.is_valid()) {
RendererStorage::base_singleton->free(mesh_instance);
}
}
};
struct CommandMultiMesh : public Command {
@@ -262,7 +268,6 @@ public:
struct CommandParticles : public Command {
RID particles;
RID texture;
CommandParticles() { type = TYPE_PARTICLES; }