sole / demoscene

sole's demoscene projects

This URL has Read+Write access

demoscene / releases / ppg / ppg_05_cc / src / FXvstripes.h
100644 40 lines (32 sloc) 0.751 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
#ifndef FXVSTRIPES_H
#define FXVSTRIPES_H
 
#include "Effect.h"
#include "math3D.h"
#include "Demo.h"
#include "textures.h"
extern Demo *miDemo;
 
#define NUMALPHALEVELS 400
#define APPEAR 1
#define DISSAPPEAR 2
 
class FXvstripes: public Effect {
protected:
 
TextureImage myTexture;
Point textColor;
char textPath[255];
float alphaLevels[NUMALPHALEVELS];
float lightingTime;
int mode;
 
public:
void setTexture(char *texturePath);
void setLightingTime(float newTime);
void setMode(int newMode);
void perFrame(float time);
void init(void);
void start(void);
void deInit(void);
void stop(void);
 
void setColor(float r,float g, float b, float a);
FXvstripes();
~FXvstripes();
};
 
#endif //FXVSTRIPES_H