Refactor SceneRendering to simplify actors impl of drawing flow at high level

This commit is contained in:
Wojciech Figat
2022-02-22 17:06:19 +01:00
parent 8c075c78cb
commit 3fe1e2c763
43 changed files with 191 additions and 617 deletions

View File

@@ -30,6 +30,7 @@ DECLARE_SCENE_OBJECT(Actor);
friend Level;
friend PrefabManager;
friend Scene;
friend SceneRendering;
friend Prefab;
friend PrefabInstanceData;
@@ -39,6 +40,7 @@ protected:
int8 _isActiveInHierarchy : 1;
int8 _isPrefabRoot : 1;
int8 _isEnabled : 1;
int8 _drawNoCulling : 1;
byte _layer;
byte _tag;
Scene* _scene;
@@ -645,18 +647,6 @@ public:
/// <param name="renderContext">The rendering context.</param>
virtual void Draw(RenderContext& renderContext);
/// <summary>
/// Draws this actor. Called during custom actor rendering or any other generic rendering from code.
/// </summary>
/// <param name="renderContext">The rendering context.</param>
virtual void DrawGeneric(RenderContext& renderContext);
/// <summary>
/// Draws this actor and all its children (full scene hierarchy part).
/// </summary>
/// <param name="renderContext">The rendering context.</param>
void DrawHierarchy(RenderContext& renderContext);
#if USE_EDITOR
/// <summary>