Unexpose ProxyTexture
This commit is contained in:
parent
dbd1524362
commit
92bdeb7eb5
4 changed files with 0 additions and 23 deletions
|
@ -1,13 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<class name="ProxyTexture" inherits="Texture2D" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
|
||||||
<brief_description>
|
|
||||||
</brief_description>
|
|
||||||
<description>
|
|
||||||
</description>
|
|
||||||
<tutorials>
|
|
||||||
</tutorials>
|
|
||||||
<members>
|
|
||||||
<member name="base" type="Texture2D" setter="set_base" getter="get_base">
|
|
||||||
</member>
|
|
||||||
</members>
|
|
||||||
</class>
|
|
|
@ -843,7 +843,6 @@ void register_scene_types() {
|
||||||
GDREGISTER_CLASS(CurveXYZTexture);
|
GDREGISTER_CLASS(CurveXYZTexture);
|
||||||
GDREGISTER_CLASS(GradientTexture1D);
|
GDREGISTER_CLASS(GradientTexture1D);
|
||||||
GDREGISTER_CLASS(GradientTexture2D);
|
GDREGISTER_CLASS(GradientTexture2D);
|
||||||
GDREGISTER_CLASS(ProxyTexture);
|
|
||||||
GDREGISTER_CLASS(AnimatedTexture);
|
GDREGISTER_CLASS(AnimatedTexture);
|
||||||
GDREGISTER_CLASS(CameraTexture);
|
GDREGISTER_CLASS(CameraTexture);
|
||||||
GDREGISTER_VIRTUAL_CLASS(TextureLayered);
|
GDREGISTER_VIRTUAL_CLASS(TextureLayered);
|
||||||
|
|
|
@ -2537,13 +2537,6 @@ void GradientTexture2D::_bind_methods() {
|
||||||
|
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
|
|
||||||
void ProxyTexture::_bind_methods() {
|
|
||||||
ClassDB::bind_method(D_METHOD("set_base", "base"), &ProxyTexture::set_base);
|
|
||||||
ClassDB::bind_method(D_METHOD("get_base"), &ProxyTexture::get_base);
|
|
||||||
|
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "base", PROPERTY_HINT_RESOURCE_TYPE, "Texture2D"), "set_base", "get_base");
|
|
||||||
}
|
|
||||||
|
|
||||||
void ProxyTexture::set_base(const Ref<Texture2D> &p_texture) {
|
void ProxyTexture::set_base(const Ref<Texture2D> &p_texture) {
|
||||||
ERR_FAIL_COND(p_texture == this);
|
ERR_FAIL_COND(p_texture == this);
|
||||||
|
|
||||||
|
|
|
@ -883,8 +883,6 @@ VARIANT_ENUM_CAST(GradientTexture2D::Fill);
|
||||||
VARIANT_ENUM_CAST(GradientTexture2D::Repeat);
|
VARIANT_ENUM_CAST(GradientTexture2D::Repeat);
|
||||||
|
|
||||||
class ProxyTexture : public Texture2D {
|
class ProxyTexture : public Texture2D {
|
||||||
GDCLASS(ProxyTexture, Texture2D);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
mutable RID proxy_ph;
|
mutable RID proxy_ph;
|
||||||
mutable RID proxy;
|
mutable RID proxy;
|
||||||
|
|
Loading…
Reference in a new issue