Divide Framework
0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Line.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2018 DIVIDE-Studio
3
Copyright (c) 2009 Ionut Cava
4
5
This file is part of DIVIDE Framework.
6
7
Permission is hereby granted, free of charge, to any person obtaining a copy
8
of this software
9
and associated documentation files (the "Software"), to deal in the Software
10
without restriction,
11
including without limitation the rights to use, copy, modify, merge, publish,
12
distribute, sublicense,
13
and/or sell copies of the Software, and to permit persons to whom the
14
Software is furnished to do so,
15
subject to the following conditions:
16
17
The above copyright notice and this permission notice shall be included in
18
all copies or substantial portions of the Software.
19
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
IMPLIED,
22
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
23
PARTICULAR PURPOSE AND NONINFRINGEMENT.
24
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25
DAMAGES OR OTHER LIABILITY,
26
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
27
IN CONNECTION WITH THE SOFTWARE
28
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30
*/
31
32
#pragma once
33
#ifndef DVD_CORE_MATH_LINE_H_
34
#define DVD_CORE_MATH_LINE_H_
35
36
#include "
Utility/Headers/Colours.h
"
37
38
namespace
Divide
{
39
40
struct
Line
41
{
42
vec3<F32>
_positionStart
=
VECTOR3_ZERO
;
43
vec3<F32>
_positionEnd
=
VECTOR3_UNIT
;
44
UColour4
_colourStart
=
DefaultColours::BLACK_U8
;
45
UColour4
_colourEnd
=
DefaultColours::DIVIDE_BLUE_U8
;
46
F32
_widthStart
= 1.0f;
47
F32
_widthEnd
= 1.0f;
48
};
49
50
}
//namespace Divide
51
52
#endif
//DVD_CORE_MATH_LINE_H_
Colours.h
Divide::vec3
Definition:
MathVectors.h:480
Divide::vec4< U8 >
Divide::DefaultColours::DIVIDE_BLUE_U8
UColour4 DIVIDE_BLUE_U8
Definition:
Colours.cpp:21
Divide::DefaultColours::BLACK_U8
UColour4 BLACK_U8
Definition:
Colours.cpp:15
Divide
Handle console commands that start with a forward slash.
Definition:
AIProcessor.cpp:7
Divide::F32
float F32
Definition:
PlatformDataTypes.h:82
Divide::VECTOR3_UNIT
static const vec3< F32 > VECTOR3_UNIT
Definition:
MathVectors.h:1437
Divide::VECTOR3_ZERO
static const vec3< F32 > VECTOR3_ZERO
Definition:
MathVectors.h:1434
Divide::Line
Definition:
Line.h:41
Divide::Line::_positionStart
vec3< F32 > _positionStart
Definition:
Line.h:42
Divide::Line::_widthStart
F32 _widthStart
Definition:
Line.h:46
Divide::Line::_positionEnd
vec3< F32 > _positionEnd
Definition:
Line.h:43
Divide::Line::_colourStart
UColour4 _colourStart
Definition:
Line.h:44
Divide::Line::_widthEnd
F32 _widthEnd
Definition:
Line.h:47
Divide::Line::_colourEnd
UColour4 _colourEnd
Definition:
Line.h:45
Source
Core
Math
Headers
Line.h
Generated on Fri May 17 2024 16:59:49 for Divide Framework by
1.9.6