HatchitGame
Main Page
Related Pages
Namespaces
Classes
Files
File List
include
unused
ht_tween_value.h
1
15
#pragma once
16
17
#include <ht_math.h>
18
#include <ht_platform.h>
19
20
namespace
Hatchit
{
21
22
namespace
Game {
23
27
enum class
TweenValueType
28
{
29
Float,
30
Float2,
31
Float3,
32
Float4
33
};
34
38
class
HT_API
TweenValue
39
{
40
public
:
46
TweenValue
(
float
value);
47
53
TweenValue
(
const
Math::Float2& value);
54
60
TweenValue
(
const
Math::Float3& value);
61
67
TweenValue
(
const
Math::Float4& value);
68
72
float
GetFloat()
const
;
73
77
Math::Float2 GetFloat2()
const
;
78
82
Math::Float3 GetFloat3()
const
;
83
87
Math::Float4 GetFloat4()
const
;
88
92
TweenValueType GetType()
const
;
93
99
void
SetValue(
float
value);
100
106
void
SetValue(
const
Math::Float2& value);
107
113
void
SetValue(
const
Math::Float3& value);
114
120
void
SetValue(
const
Math::Float4& value);
121
125
bool
operator==(
const
TweenValue
& other)
const
;
126
130
bool
operator!=(
const
TweenValue
& other)
const
;
131
132
private
:
133
Math::Float4 m_values;
134
TweenValueType m_valueType;
135
};
136
137
}
138
}
Hatchit
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition:
ht_glfwkeyboard.h:21
Hatchit::Game::TweenValue
Defines a tween value.
Definition:
ht_tween_value.h:38
Generated by
1.8.11