dynpip rearrangment

This commit is contained in:
h4570
2022-07-18 23:50:25 +02:00
parent f08fc1c8d3
commit 2fe40c8d90
35 changed files with 111 additions and 37 deletions
@@ -19,14 +19,14 @@
namespace Tyra {
class StaPipelineCore {
class StaPipCore {
public:
StaPipelineCore();
~StaPipelineCore();
StaPipCore();
~StaPipCore();
void init(RendererCore* t_core);
/** Render 3D data via "bags" */
/** Render 3D via "bags" */
void render(StaPipBag* data, StaPipBagPackagesBBox* bbox = nullptr);
/** Get max vert count of VU1 qbuffer (for optimizations) */
@@ -15,7 +15,7 @@
#include "./stapip_options.hpp"
#include "renderer/core/renderer_core.hpp"
#include "renderer/3d/mesh/dynamic/dynamic_mesh.hpp"
#include "./core/static_pipeline_core.hpp"
#include "./core/stapip_core.hpp"
namespace Tyra {
@@ -24,6 +24,8 @@ class StaticPipeline : public Renderer3DPipeline {
StaticPipeline();
~StaticPipeline();
StaPipCore core;
void init(RendererCore* core);
void onUse();
@@ -35,7 +37,6 @@ class StaticPipeline : public Renderer3DPipeline {
void render(DynamicMesh* mesh, const StaPipOptions* options = nullptr);
private:
StaPipelineCore core;
RendererCore* rendererCore;
Vec4* colorsCache;