Editor multyrender initial
This commit is contained in:
parent
119e610db6
commit
19706ed738
7 changed files with 74 additions and 29 deletions
26
3DEditor/public/Editor.hpp
Normal file
26
3DEditor/public/Editor.hpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
|
||||
#include "RayTracer.hpp"
|
||||
#include "RasterRender.hpp"
|
||||
|
||||
namespace tp {
|
||||
class Editor {
|
||||
public:
|
||||
Editor() = default;
|
||||
|
||||
void loadDefaults();
|
||||
|
||||
uint4 getViewportTexID();
|
||||
void setViewportSize(const Vec2F& size);
|
||||
void renderViewport();
|
||||
|
||||
private:
|
||||
Scene mScene;
|
||||
|
||||
RasterRender mRasterRenderer;
|
||||
RayTracer mPathRenderer;
|
||||
|
||||
// TODO move inside the scene
|
||||
Vec2F mViewportSize;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue