TDME2 1.9.121
Prototype_Type.cpp
Go to the documentation of this file.
2
3#include <string>
4
5#include <tdme/tdme.h>
6#include <tdme/math/Vector3.h>
9
10using std::string;
11
16
17Prototype_Type* tdme::engine::prototype::Prototype_Type::EMPTY = new Prototype_Type("EMPTY", 0, 0, Gizmo::GIZMOTYPE_TRANSLATE | Gizmo::GIZMOTYPE_ROTATE | Gizmo::GIZMOTYPE_SCALE, false, Vector3());
18Prototype_Type* tdme::engine::prototype::Prototype_Type::MODEL = new Prototype_Type("MODEL", 1, -1, Gizmo::GIZMOTYPE_TRANSLATE | Gizmo::GIZMOTYPE_ROTATE | Gizmo::GIZMOTYPE_SCALE, false, Vector3());
19Prototype_Type* tdme::engine::prototype::Prototype_Type::PARTICLESYSTEM = new Prototype_Type("PARTICLESYSTEM", 2, -1, Gizmo::GIZMOTYPE_TRANSLATE | Gizmo::GIZMOTYPE_ROTATE | Gizmo::GIZMOTYPE_SCALE, false, Vector3());
20Prototype_Type* tdme::engine::prototype::Prototype_Type::TRIGGER = new Prototype_Type("TRIGGER", 3, -1, Gizmo::GIZMOTYPE_TRANSLATE | Gizmo::GIZMOTYPE_ROTATE | Gizmo::GIZMOTYPE_SCALE, true, Vector3(1.0f, 1.0f, 1.0f));
21Prototype_Type* tdme::engine::prototype::Prototype_Type::ENVIRONMENTMAPPING = new Prototype_Type("ENVIRONMENTMAPPING", 4, 1, Gizmo::GIZMOTYPE_TRANSLATE | Gizmo::GIZMOTYPE_SCALE, true, Vector3(1.0f, 1.0f, 1.0f));
22Prototype_Type* tdme::engine::prototype::Prototype_Type::TERRAIN = new Prototype_Type("TERRAIN", 5, 0, Gizmo::GIZMOTYPE_TRANSLATE | Gizmo::GIZMOTYPE_ROTATE | Gizmo::GIZMOTYPE_SCALE, false, Vector3());
23
24Prototype_Type::Prototype_Type(const string& name, int ordinal, int boundingVolumeCount, int32_t gizmoTypeMask, bool nonEditScaleDownMode, const Vector3& nonEditScaleDownModeDimension):
25 Enum(name, ordinal), boundingVolumeCount(boundingVolumeCount), gizmoTypeMask(gizmoTypeMask), nonEditScaleDownMode(nonEditScaleDownMode), nonEditScaleDownModeDimension(nonEditScaleDownModeDimension)
26{
27}
28
30{
31 if (EMPTY->getName() == name) return EMPTY;
32 if (MODEL->getName() == name) return MODEL;
33 if (PARTICLESYSTEM->getName() == name) return PARTICLESYSTEM;
34 if (TRIGGER->getName() == name) return TRIGGER;
36 if (TERRAIN->getName() == name) return TERRAIN;
37 return nullptr;
38}
static STATIC_DLL_IMPEXT Prototype_Type * ENVIRONMENTMAPPING
static STATIC_DLL_IMPEXT Prototype_Type * MODEL
static Prototype_Type * valueOf(const string &name)
Returns enum object given by name.
static STATIC_DLL_IMPEXT Prototype_Type * TERRAIN
static STATIC_DLL_IMPEXT Prototype_Type * PARTICLESYSTEM
static STATIC_DLL_IMPEXT Prototype_Type * TRIGGER
static STATIC_DLL_IMPEXT Prototype_Type * EMPTY
3D vector 3 class
Definition: Vector3.h:22
Gizmo tool for views.
Definition: Gizmo.h:26
Enum base class.
Definition: Enum.h:14
const string & getName() const
Definition: Enum.h:30