TDME2
1.9.200
src
tdme
engine
model
UpVector.cpp
Go to the documentation of this file.
1
#include <
tdme/engine/model/UpVector.h
>
2
3
#include <string>
4
5
#include <
tdme/tdme.h
>
6
#include <
tdme/utilities/Enum.h
>
7
8
using
std::string;
9
10
using
tdme::engine::model::UpVector
;
11
using
tdme::utilities::Enum
;
12
13
UpVector::UpVector(
const
string
& name,
int
ordinal):
Enum
(name, ordinal)
14
{
15
}
16
17
UpVector
*
tdme::engine::model::UpVector::Y_UP
=
new
UpVector
(
"Y_UP"
, 0);
18
UpVector
*
tdme::engine::model::UpVector::Z_UP
=
new
UpVector
(
"Z_UP"
, 1);
19
20
UpVector
*
UpVector::valueOf
(
const
string
& a0)
21
{
22
if
(
Y_UP
->
getName
() == a0)
return
Y_UP
;
23
if
(
Z_UP
->
getName
() == a0)
return
Z_UP
;
24
// TODO: throw exception here maybe
25
return
nullptr
;
26
}
Enum.h
UpVector.h
tdme::engine::model::UpVector
Model up vector.
Definition:
UpVector.h:20
tdme::engine::model::UpVector::valueOf
static UpVector * valueOf(const string &a0)
Definition:
UpVector.cpp:20
tdme::engine::model::UpVector::Z_UP
static STATIC_DLL_IMPEXT UpVector * Z_UP
Definition:
UpVector.h:25
tdme::engine::model::UpVector::Y_UP
static STATIC_DLL_IMPEXT UpVector * Y_UP
Definition:
UpVector.h:24
tdme::utilities::Enum
Enum base class.
Definition:
Enum.h:14
tdme::utilities::Enum::getName
const string & getName() const
Definition:
Enum.h:37
tdme.h
Generated by
1.9.1