Menu

[327ada]: / Source / Tests / Explorer / Dirlight.h  Maximize  Restore  History

Download this file

55 lines (43 with data), 1.1 kB

 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
#ifndef DIRLIGHT_INCLUDE
#define DIRLIGHT_INCLUDE
#include <list>
#include "float3.h"
#include "float4x4.h"
class Lights;
#if BUILDING_DLL
#define DLLIMPORT __declspec(dllexport)
#else
#define DLLIMPORT __declspec(dllimport)
#endif
class DLLIMPORT Dirlight {
friend class Lights;
float3 dir;
float3 lookat;
float3 up;
float3 color;
bool enabled;
bool castshadows;
// Matrices voor de renderer
float4x4 matView;
float4x4 matProj;
float4x4 matViewProj;
std::list<Dirlight*>::iterator bufferlocation;
public:
Dirlight(float3 dir,float3 color,bool enabled);
~Dirlight();
float3 GetColor();
float3 GetDirection();
float3 GetLookat();
float3 GetUp();
bool GetEnabled();
bool GetCastShadows();
void SetDirection(float3 dir);
void SetColor(float3 color);
void SetEnabled(bool enabled);
void SetCastShadows(bool castshadows);
// Create VP projection so that whole scene fits into frustum
void GetProjectionPoint();
void GetProjection();
void Print();
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.