Chronos
0.0
A advanced 2D rendering and animation system
Loading...
Searching...
No Matches
engineStructs.hpp
Go to the documentation of this file.
1
/*
2
Copyright (c) 2024 Rahul Satish Vadhyar
3
4
Permission is hereby granted, free of charge, to any person obtaining a copy
5
of this software and associated documentation files (the "Software"), to deal
6
in the Software without restriction, including without limitation the rights
7
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
copies of the Software, and to permit persons to whom the Software is
9
furnished to do so, subject to the following conditions:
10
11
The above copyright notice and this permission notice shall be included in all
12
copies or substantial portions of the Software.
13
14
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
SOFTWARE.
21
*/
22
23
#pragma once
28
#include "
vulkanHeaders.hpp
"
29
namespace
Chronos
{
30
namespace
Engine {
49
struct
TextParams
{
50
std::string
text
;
51
float
x
= 0;
52
float
y
= 0;
53
float
rotation
= 0;
54
float
scale
= 1.0f;
55
std::array<float, 3>
color
= { 1.0f, 1.0f, 1.0f };
56
};
63
struct
UniformBufferObject
{
64
glm::mat4
model
;
65
glm::mat4
view
;
66
glm::mat4
proj
;
67
};
68
74
struct
UniformColorBufferObject
{
75
glm::vec3
color
;
76
};
77
};
78
};
Chronos
Definition
chronos.hpp:34
Chronos::Engine::TextParams
Parameters for rendering text.
Definition
engineStructs.hpp:49
Chronos::Engine::TextParams::x
float x
Definition
engineStructs.hpp:51
Chronos::Engine::TextParams::scale
float scale
Definition
engineStructs.hpp:54
Chronos::Engine::TextParams::color
std::array< float, 3 > color
Definition
engineStructs.hpp:55
Chronos::Engine::TextParams::text
std::string text
Definition
engineStructs.hpp:50
Chronos::Engine::TextParams::y
float y
Definition
engineStructs.hpp:52
Chronos::Engine::TextParams::rotation
float rotation
Definition
engineStructs.hpp:53
Chronos::Engine::UniformBufferObject
Uniform struct passed to shader.
Definition
engineStructs.hpp:63
Chronos::Engine::UniformBufferObject::model
glm::mat4 model
Definition
engineStructs.hpp:64
Chronos::Engine::UniformBufferObject::proj
glm::mat4 proj
Definition
engineStructs.hpp:66
Chronos::Engine::UniformBufferObject::view
glm::mat4 view
Definition
engineStructs.hpp:65
Chronos::Engine::UniformColorBufferObject
Uniform struct for color passed to shader.
Definition
engineStructs.hpp:74
Chronos::Engine::UniformColorBufferObject::color
glm::vec3 color
Definition
engineStructs.hpp:75
vulkanHeaders.hpp
Contains the common headers for the vulkan API.
Source
Rendering
engineStructs.hpp
Generated by
1.9.8