关键节点
This commit is contained in:
27
editor/app/Rendering/Viewport/SceneViewportRenderRequest.h
Normal file
27
editor/app/Rendering/Viewport/SceneViewportRenderRequest.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
namespace XCEngine::Components {
|
||||
|
||||
class CameraComponent;
|
||||
class Scene;
|
||||
|
||||
} // namespace XCEngine::Components
|
||||
|
||||
namespace XCEngine::UI::Editor::App {
|
||||
|
||||
struct SceneViewportRenderRequest {
|
||||
::XCEngine::Components::Scene* scene = nullptr;
|
||||
::XCEngine::Components::CameraComponent* camera = nullptr;
|
||||
std::vector<std::uint64_t> selectedObjectIds = {};
|
||||
float orbitDistance = 0.0f;
|
||||
bool debugSelectionMask = false;
|
||||
|
||||
bool IsValid() const {
|
||||
return scene != nullptr && camera != nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace XCEngine::UI::Editor::App
|
||||
Reference in New Issue
Block a user