vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
host_view.h
1#pragma once
2
3#include <glm/glm.hpp>
4#include <glm/gtc/quaternion.hpp>
5
6#include "ecs/entity.h"
7#include "ecs/component/render/camera.h"
8
9namespace Vkm::Engine {
10
18struct HostView {
21 glm::vec3 position = glm::vec3(0.0f);
22 glm::quat rotation = glm::quat(1.0f, 0.0f, 0.0f, 0.0f);
23};
24
25} // namespace Vkm::Engine
Component representing a camera, containing projection and view parameters.
Definition camera.h:25
Names one entity of one Scene, for as long as that slot holds it.
Definition entity.h:23
A view an authoring host renders the frame through instead of the scene's active camera.
Definition host_view.h:18
glm::vec3 position
Free view, world space.
Definition host_view.h:21
glm::quat rotation
Free view, world space.
Definition host_view.h:22
Camera camera
Free view's projection; active unread.
Definition host_view.h:20
EntityId through
Scene camera to look through, or empty.
Definition host_view.h:19