-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLegacyLight.h
54 lines (48 loc) · 1.44 KB
/
LegacyLight.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#pragma once
#include "irrlicht.h"
#include "IrrManagers.h"
#include "Vector2D.h"
#include "Vector3D.h"
#include "Vector4D.h"
#include "LuaLime.h"
#include "DebugVisual.h"
#include <string>
#include <vector>
#include "Compatible3D.h"
class LegacyLight : public Compatible3D {
public:
irr::scene::ILightSceneNode* light = 0;
DebugSceneNode* d = nullptr;
irr::scene::ISceneNode* getNode() const override { return light; }
LegacyLight(int type, const Vector3D& pos, const Vector3D& rot, const Vector4D& color);
LegacyLight(int type);
LegacyLight(const Vector3D& pos);
LegacyLight();
LegacyLight(const LegacyLight& other);
Vector3D getPosition();
void setPosition(const Vector3D& pos);
Vector3D getRotation();
void setRotation(const Vector3D& rot);
Vector4D getLightColor();
void setLightColor(const Vector4D& col);
Vector4D getAmbientColor();
void setAmbientColor(const Vector4D& col);
Vector4D getSpecColor();
void setSpecColor(const Vector4D& col);
int getType();
void setType(int i);
Vector2D getCones();
void setCones(const Vector2D& cones);
float getRadius();
void setRadius(float r);
Vector3D getAttenuation();
void setAttenuation(const Vector3D& a);
float getFalloff();
void setFalloff(float f);
void destroy();
bool getDebug();
void setDebug(bool visible);
bool getVisible();
void setVisible(bool visible);
};
void bindLegacyLight();