20 lines
524 B
C++
20 lines
524 B
C++
// Copyright (c) 2023 Dominic Masters
|
|
//
|
|
// This software is released under the MIT License.
|
|
// https://opensource.org/licenses/MIT
|
|
|
|
#pragma once
|
|
#include "scene/components/display/Camera.hpp"
|
|
#include "display/TextureRenderTarget.hpp"
|
|
|
|
namespace Dawn {
|
|
class CameraTexture : public SceneItemComponent {
|
|
public:
|
|
// @optional
|
|
StateProperty<std::shared_ptr<Camera>> camera;
|
|
std::shared_ptr<TextureRenderTarget> renderTarget;
|
|
|
|
CameraTexture(SceneItem *item);
|
|
void onStart() override;
|
|
};
|
|
} |