Pārlūkot izejas kodu

Rename `UI::SetRenderTexture()` to `UI:SetElementRenderTexture()`.

Rokas Kupstys 8 gadi atpakaļ
vecāks
revīzija
a27620bae2
3 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 2 2
      Source/Urho3D/UI/UI.cpp
  2. 1 1
      Source/Urho3D/UI/UI.h
  3. 1 1
      Source/Urho3D/UI/UIElement.cpp

+ 2 - 2
Source/Urho3D/UI/UI.cpp

@@ -2078,11 +2078,11 @@ IntVector2 UI::GetEffectiveRootElementSize(bool applyScale) const
     return size;
 }
 
-void UI::SetRenderTexture(UIElement* element, Texture2D* texture)
+void UI::SetElementRenderTexture(UIElement* element, Texture2D* texture)
 {
     if (element == nullptr)
     {
-        URHO3D_LOGERROR("UI::SetRenderTexture called with null element.");
+        URHO3D_LOGERROR("UI::SetElementRenderTexture called with null element.");
         return;
     }
 

+ 1 - 1
Source/Urho3D/UI/UI.h

@@ -213,7 +213,7 @@ public:
     const IntVector2& GetCustomSize() const { return customSize_; }
 
     /// Set texture to which element will be rendered.
-    void SetRenderTexture(UIElement* element, Texture2D* texture);
+    void SetElementRenderTexture(UIElement* element, Texture2D* texture);
 
     /// Data structure used to represent the drag data associated to a UIElement.
     struct DragData

+ 1 - 1
Source/Urho3D/UI/UIElement.cpp

@@ -2280,7 +2280,7 @@ void UIElement::HandlePostUpdate(StringHash eventType, VariantMap& eventData)
 void UIElement::SetRenderTexture(Texture2D* texture)
 {
     if (UI* ui = GetSubsystem<UI>())
-        ui->SetRenderTexture(this, texture);
+        ui->SetElementRenderTexture(this, texture);
 }
 
 }