You've already forked godot
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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user