rename RenderQueue to RenderPipe
This commit is contained in:
+7
-7
@@ -1,4 +1,4 @@
|
||||
#include "pipe/dvc_render_queue.h"
|
||||
#include "pipe/dvc_render_pipe.h"
|
||||
#include "scene/dvc_scene_node.h"
|
||||
#include "pipe/dvc_render_step_IA.h"
|
||||
#include "pipe/dvc_render_step_VS.h"
|
||||
@@ -8,22 +8,22 @@
|
||||
|
||||
DV_CORE_BEGIN_NAMESPACE
|
||||
|
||||
RenderQueue::RenderQueue()
|
||||
RenderPipe::RenderPipe()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
RenderQueue::~RenderQueue()
|
||||
RenderPipe::~RenderPipe()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void RenderQueue::pushRenderable(RenderableConstPtr renderable)
|
||||
void RenderPipe::pushRenderable(RenderableConstPtr renderable)
|
||||
{
|
||||
m_queue.push_back(renderable);
|
||||
}
|
||||
|
||||
RenderableConstPtr RenderQueue::getRenderable(size_t index) const
|
||||
RenderableConstPtr RenderPipe::getRenderable(size_t index) const
|
||||
{
|
||||
assert(index < m_queue.size());
|
||||
if (index < m_queue.size())
|
||||
@@ -33,13 +33,13 @@ RenderableConstPtr RenderQueue::getRenderable(size_t index) const
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void RenderQueue::build(const Scene& scene)
|
||||
void RenderPipe::build(const Scene& scene)
|
||||
{
|
||||
//Build render queue
|
||||
scene.getRootSceneNode()->buildRenderQueue(fMatrix4::IDENTITY, *this);
|
||||
}
|
||||
|
||||
void RenderQueue::process(AntiAliasingTech aaTech, UniformBuffer& uniformBuffer, RenderTarget& renderTarget)
|
||||
void RenderPipe::process(AntiAliasingTech aaTech, UniformBuffer& uniformBuffer, RenderTarget& renderTarget)
|
||||
{
|
||||
m_aaTech = aaTech;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
DV_CORE_BEGIN_NAMESPACE
|
||||
|
||||
void InputAssemberStep::process(const RenderQueue& renderQueue)
|
||||
void InputAssemberStep::process(const RenderPipe& renderQueue)
|
||||
{
|
||||
size_t counts = renderQueue.getRenderableCounts();
|
||||
for (size_t i = 0; i < counts; i++)
|
||||
|
||||
@@ -51,7 +51,7 @@ void CameraComponent::setCameraDefine(const CameraComponent::CameraDefine& camer
|
||||
m_viewProjMatrix = matProj * matView;
|
||||
}
|
||||
|
||||
void CameraComponent::render(const fMatrix4& transParent, RenderQueue& queue) const
|
||||
void CameraComponent::render(const fMatrix4& transParent, RenderPipe& queue) const
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ SceneComponent::~SceneComponent()
|
||||
|
||||
}
|
||||
|
||||
void SceneComponent::render(const fMatrix4& transParent, RenderQueue& queue) const
|
||||
void SceneComponent::render(const fMatrix4& transParent, RenderPipe& queue) const
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ void LightComponent::setLightDefine(const LightDefine& lightDefine)
|
||||
m_define = lightDefine;
|
||||
}
|
||||
|
||||
void LightComponent::render(const fMatrix4& transParent, RenderQueue& queue) const
|
||||
void LightComponent::render(const fMatrix4& transParent, RenderPipe& queue) const
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "scene/component/dvc_mesh_component.h"
|
||||
#include "asset/dvc_mesh.h"
|
||||
#include "pipe/dvc_renderable_entity.h"
|
||||
#include "pipe/dvc_render_queue.h"
|
||||
#include "pipe/dvc_render_pipe.h"
|
||||
|
||||
DV_CORE_BEGIN_NAMESPACE
|
||||
|
||||
@@ -27,7 +27,7 @@ void MeshComponent::setMesh(MeshConstPtr mesh)
|
||||
m_mesh = mesh;
|
||||
}
|
||||
|
||||
void MeshComponent::render(const fMatrix4& transParent, RenderQueue& queue) const
|
||||
void MeshComponent::render(const fMatrix4& transParent, RenderPipe& queue) const
|
||||
{
|
||||
SceneComponent::render(transParent, queue);
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ SceneComponentConstPtr SceneNode::getComponent(size_t index) const
|
||||
return m_componentArray[index];
|
||||
}
|
||||
|
||||
void SceneNode::buildRenderQueue(const fMatrix4& transParent, RenderQueue& queue)
|
||||
void SceneNode::buildRenderQueue(const fMatrix4& transParent, RenderPipe& queue)
|
||||
{
|
||||
fMatrix4 transform = m_transform * transParent;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user