summaryrefslogtreecommitdiff
path: root/scene/resources/texture.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-07-14 00:06:44 +0200
committerRémi Verschelde <rverschelde@gmail.com>2021-07-14 00:30:58 +0200
commit536825d004e858f209c73e3cca332b7f2022e6d0 (patch)
treedcc9e6985f892c6c3b5990c0b71990fb6119e3b3 /scene/resources/texture.h
parentc0da57699bcc77951fe93a718f9da214fe640dd8 (diff)
Rename Curve3Texture to CurveXYZTexture
Neither name is a perfect match but `Curve3Texture` looked too similar to `CurveTexture` and `Curve3D`, which made things confusing when picking a texture type or browsing the API reference.
Diffstat (limited to 'scene/resources/texture.h')
-rw-r--r--scene/resources/texture.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/resources/texture.h b/scene/resources/texture.h
index 73390039cb..98aa61138d 100644
--- a/scene/resources/texture.h
+++ b/scene/resources/texture.h
@@ -628,8 +628,8 @@ public:
VARIANT_ENUM_CAST(CurveTexture::TextureMode)
-class Curve3Texture : public Texture2D {
- GDCLASS(Curve3Texture, Texture2D);
+class CurveXYZTexture : public Texture2D {
+ GDCLASS(CurveXYZTexture, Texture2D);
RES_BASE_EXTENSION("curvetex")
private:
@@ -665,8 +665,8 @@ public:
virtual int get_height() const override { return 1; }
virtual bool has_alpha() const override { return false; }
- Curve3Texture();
- ~Curve3Texture();
+ CurveXYZTexture();
+ ~CurveXYZTexture();
};
class GradientTexture : public Texture2D {