功能向RenderPipe集中

This commit is contained in:
2025-08-25 23:12:23 +08:00
parent 0f9f81d568
commit 9a0e6d7524
18 changed files with 50 additions and 54 deletions
@@ -18,7 +18,7 @@ public:
};
public:
virtual const std::string& getTypeName() const { return typeName(); }
virtual void render(const fMatrix4& transParent, RenderPipe& queue) const;
virtual void buildRenderableQueue(const fMatrix4& transParent, RenderPipe& pipe) const;
fVector3 getEye(void) const;
fVector3 getLookat(void) const;
@@ -9,7 +9,7 @@ class DV_CORE_API SceneComponent
{
public:
virtual const std::string& getTypeName() const = 0;
virtual void render(const fMatrix4& transParent, RenderPipe& queue) const;
virtual void buildRenderableQueue(const fMatrix4& transParent, RenderPipe& pipe) const;
protected:
SceneNodePtr m_owner;
@@ -27,7 +27,7 @@ public:
};
public:
virtual const std::string& getTypeName() const { return typeName(); }
virtual void render(const fMatrix4& transParent, RenderPipe& queue) const;
virtual void buildRenderableQueue(const fMatrix4& transParent, RenderPipe& pipe) const;
void setLightDefine(const LightDefine& lightDefine);
protected:
@@ -9,7 +9,7 @@ class DV_CORE_API MeshComponent : public SceneComponent
{
public:
virtual const std::string& getTypeName() const { return typeName(); }
virtual void render(const fMatrix4& transParent, RenderPipe& queue) const;
virtual void buildRenderableQueue(const fMatrix4& transParent, RenderPipe& pipe) const;
void setMesh(MeshConstPtr mesh);