30 lines
583 B
C++
30 lines
583 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
struct TransformComponent;
|
|
struct MeshComponent;
|
|
struct LightComponent;
|
|
struct CameraComponent;
|
|
|
|
struct RenderLight {
|
|
TransformComponent* transform = nullptr;
|
|
LightComponent* light = nullptr;
|
|
};
|
|
|
|
struct RenderMesh {
|
|
TransformComponent* transform = nullptr;
|
|
MeshComponent* mesh = nullptr;
|
|
};
|
|
|
|
struct RenderCamera {
|
|
TransformComponent* transform = nullptr;
|
|
CameraComponent* camera = nullptr;
|
|
};
|
|
|
|
struct RenderCollection {
|
|
std::vector<RenderLight> lights;
|
|
std::vector<RenderMesh> meshes;
|
|
|
|
RenderCamera camera;
|
|
};
|