[nostalgia/scene] ACTUALLY add Scene Studio module
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <nostalgia/core/gfx.hpp>
|
||||
#include <nostalgia/glutils/glutils.hpp>
|
||||
#include <nostalgia/scene/scene.hpp>
|
||||
|
||||
namespace nostalgia::scene {
|
||||
|
||||
class SceneEditorView {
|
||||
|
||||
private:
|
||||
core::Context &m_ctx;
|
||||
const SceneStatic &m_sceneStatic;
|
||||
Scene m_scene;
|
||||
glutils::FrameBuffer m_frameBuffer;
|
||||
|
||||
public:
|
||||
SceneEditorView(core::Context *ctx, const SceneStatic &sceneStatic) noexcept;
|
||||
|
||||
void setupScene() noexcept;
|
||||
|
||||
void draw(int width, int height) noexcept;
|
||||
|
||||
[[nodiscard]]
|
||||
const glutils::FrameBuffer &framebuffer() const noexcept;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user