diff options
| author | JFonS | 2018-05-06 20:49:22 +0200 |
|---|---|---|
| committer | JFonS | 2018-06-13 17:52:37 +0200 |
| commit | 9cd1c20f6aae87e34b45471271062127d385871e (patch) | |
| tree | 729745b76b9ef73006ad688bb04c18c3e9034886 /scene/3d/sprite_3d.h | |
| parent | e9492308379dfc26cd8223ceeaa4c41f98426b56 (diff) | |
| download | godot-9cd1c20f6aae87e34b45471271062127d385871e.tar.gz godot-9cd1c20f6aae87e34b45471271062127d385871e.tar.zst godot-9cd1c20f6aae87e34b45471271062127d385871e.zip | |
Diffstat (limited to 'scene/3d/sprite_3d.h')
| -rw-r--r-- | scene/3d/sprite_3d.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/3d/sprite_3d.h b/scene/3d/sprite_3d.h index 23e1d96b4..a4705a897 100644 --- a/scene/3d/sprite_3d.h +++ b/scene/3d/sprite_3d.h @@ -38,6 +38,8 @@ class SpriteBase3D : public GeometryInstance { GDCLASS(SpriteBase3D, GeometryInstance); + mutable Ref<TriangleMesh> triangle_mesh; //cached + public: enum DrawFlags { FLAG_TRANSPARENT, @@ -133,6 +135,7 @@ public: virtual AABB get_aabb() const; virtual PoolVector<Face3> get_faces(uint32_t p_usage_flags) const; + Ref<TriangleMesh> generate_triangle_mesh() const; SpriteBase3D(); ~SpriteBase3D(); @@ -192,7 +195,6 @@ class AnimatedSprite3D : public SpriteBase3D { int frame; bool centered; - Point2 offset; float timeout; |
