Unravel Engine C++ Reference
Loading...
Searching...
No Matches
shape_vertex.hpp
Go to the documentation of this file.
1
#ifndef GENERATOR_SHAPEGENERATOR_HPP
2
#define GENERATOR_SHAPEGENERATOR_HPP
3
4
#include "
math.hpp
"
5
6
namespace
generator
7
{
8
11
class
shape_vertex_t
12
{
13
public
:
14
gml::dvec2
position
;
15
18
gml::dvec2
tangent
;
19
20
double
tex_coord
;
21
22
shape_vertex_t
() :
position
{},
tangent
{},
tex_coord
{}
23
{
24
}
25
28
gml::dvec2
normal
() const noexcept
29
{
30
return
-
gml::cross
(
tangent
);
31
}
32
};
33
}
// namespace generator
34
35
#endif
generator::shape_vertex_t
Definition
shape_vertex.hpp:12
generator::shape_vertex_t::tex_coord
double tex_coord
Definition
shape_vertex.hpp:20
generator::shape_vertex_t::tangent
gml::dvec2 tangent
Definition
shape_vertex.hpp:18
generator::shape_vertex_t::normal
gml::dvec2 normal() const noexcept
Definition
shape_vertex.hpp:28
generator::shape_vertex_t::shape_vertex_t
shape_vertex_t()
Definition
shape_vertex.hpp:22
generator::shape_vertex_t::position
gml::dvec2 position
Definition
shape_vertex.hpp:14
math.hpp
generator
Definition
any_generator.hpp:7
gml::cross
glm::tvec2< T > cross(const glm::tvec2< T > &v)
Definition
math.hpp:108
UnravelEngine
UnravelEngine
engine
engine
rendering
generator
shape_vertex.hpp
Generated by
1.12.0