Brenta Engine
1.2
Loading...
Searching...
No Matches
dir_light_node_component.hpp
1
// SPDX-License-Identifier: MIT
2
// Author: Giovanni Santini
3
// Mail: giovanni.santini@proton.me
4
// Github: @San7o
5
6
#pragma once
7
8
#include <brenta/node.hpp>
9
10
#include <tenno/memory.hpp>
11
12
namespace
brenta
13
{
14
15
class
DirLight;
16
17
class
DirLightNodeComponent
:
public
NodeComponent
18
{
19
public
:
20
21
tenno::shared_ptr<DirLight> light;
22
23
DirLightNodeComponent
() =
default
;
24
DirLightNodeComponent
(tenno::shared_ptr<DirLight> l)
25
: light(l) {}
26
27
void
update(
float
delta_time)
override
;
28
void
draw(
const
glm::mat4& world_matrix)
override
;
29
30
};
31
32
}
// namespace brenta
33
brenta::DirLightNodeComponent
Definition
dir_light_node_component.hpp:18
brenta::NodeComponent
Definition
node.hpp:68
include
brenta
node_components
dir_light_node_component.hpp
Generated by
1.9.8