-
Notifications
You must be signed in to change notification settings - Fork 12
/
Helios.h
81 lines (69 loc) · 1.47 KB
/
Helios.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//
// Helios.h
// Helios
//
// Created by Nick Zitzmann on 5/26/20.
//
#ifndef Helios_h
#define Helios_h
#include <sys/types.h>
#include "rsVec.h"
class attracter;
class emitter;
class impCubeVolume;
class impSurface;
class impSphere;
class ion;
class rsText;
#define LIGHTSIZE 64
typedef struct HeliosSaverSettings
{
#ifdef WIN32
LPCTSTR registryPath = ("Software\\Really Slick\\Helios");
HGLRC hglrc;
HDC hdc;
#endif
int32_t viewHeight;
int32_t viewWidth;
bool doingPreview;
int readyToDraw = 0;
unsigned char lightTexture[LIGHTSIZE][LIGHTSIZE];
float frameTime = 0.0f;
emitter *elist;
attracter *alist;
ion *ilist;
rsVec newRgb;
float billboardMat[16];
float aspectRatio;
// text output
rsText* textwriter;
// Parameters edited in the dialog box
int dIons;
int dSize;
int dEmitters;
int dAttracters;
int dSpeed;
int dCameraspeed;
int dSurface;
int dBlur;
impCubeVolume* volume;
impSurface* surface;
impSphere* spheres;
rsVec oldHsl;
rsVec newHsl;
rsVec targetHsl;
float colorInterp;
float colorChange;
float wait;
float preinterp;
float interp;
float interpconst;
void *customSpheremap;
float totalTime = 0.0f;
bool kStatistics;
} _HeliosSaverSettings;
__private_extern__ void setDefaults(HeliosSaverSettings *inSettings);
__private_extern__ void draw(HeliosSaverSettings *inSettings);
__private_extern__ void doSaver(HeliosSaverSettings *inSettings);
__private_extern__ void cleanUp(HeliosSaverSettings *inSettings);
#endif /* Helios_h */