Преглед изворни кода

Rename CheckDrawableVisibility() to CheckDrawableVisibilityWork() to match common style

1vanK пре 8 година
родитељ
комит
779d2835be
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2 2
      Source/Urho3D/Urho2D/Renderer2D.cpp
  2. 1 1
      Source/Urho3D/Urho2D/Renderer2D.h

+ 2 - 2
Source/Urho3D/Urho2D/Renderer2D.cpp

@@ -305,7 +305,7 @@ SharedPtr<Material> Renderer2D::CreateMaterial(Texture2D* texture, BlendMode ble
     return newMaterial;
 }
 
-void CheckDrawableVisibility(const WorkItem* item, unsigned threadIndex)
+void CheckDrawableVisibilityWork(const WorkItem* item, unsigned threadIndex)
 {
     Renderer2D* renderer = reinterpret_cast<Renderer2D*>(item->aux_);
     Drawable2D** start = reinterpret_cast<Drawable2D**>(item->start_);
@@ -348,7 +348,7 @@ void Renderer2D::HandleBeginViewUpdate(StringHash eventType, VariantMap& eventDa
         {
             SharedPtr<WorkItem> item = queue->GetFreeItem();
             item->priority_ = M_MAX_UNSIGNED;
-            item->workFunction_ = CheckDrawableVisibility;
+            item->workFunction_ = CheckDrawableVisibilityWork;
             item->aux_ = this;
 
             PODVector<Drawable2D*>::Iterator end = drawables_.End();

+ 1 - 1
Source/Urho3D/Urho2D/Renderer2D.h

@@ -69,7 +69,7 @@ class URHO3D_API Renderer2D : public Drawable
 {
     URHO3D_OBJECT(Renderer2D, Drawable);
 
-    friend void CheckDrawableVisibility(const WorkItem* item, unsigned threadIndex);
+    friend void CheckDrawableVisibilityWork(const WorkItem* item, unsigned threadIndex);
 
 public:
     /// Construct.