Morph-SynRJ
view efx_screen4.h @ 0:22de913c2d84
morph-synrj intro
| author | "Cedric Pinson <cedric.pinson@alcove.fr> <mornifle@plopbyte.net>" |
|---|---|
| date | Tue Nov 27 15:23:52 2007 +0100 (2007-11-27) |
| parents | |
| children |
line source
1 #ifndef EFX_SCREEN4_H
2 #define EFX_SCREEN4_H
5 #include "cmn_texture.h"
6 #include "efx_equa2.h"
7 #include "efx_harmonics.h"
8 #include "mth_hermite.h"
9 #include "cmn_design.h"
11 // sync
12 #include "fxSync.h"
16 #define NbSampleSoundLevel 10
18 class efxScreen4_t
19 {
20 double internalTime;
23 GLuint background;
26 int indexInSample;
27 float sampleLevelSound[NbSampleSoundLevel];
28 float levelSound;
29 efxEquaBase_t equa;
32 // camera
33 mth::Hermite_t* cameraPath;
34 mth::HermiteKey_t* cameraKeyData;
35 mth::Vector3_t cameraLookAt;
36 mth::Vector3_t cameraPosition;
38 float linesScroll1;
39 float linesScroll2;
40 int nbLinesScroll1;
41 int nbLinesScroll2;
42 uchar* scrollText2map;
43 void UpdateScrollText1();
44 void UpdateScrollText2();
47 char** ScrollText2;
48 char** ScrollText1;
49 void InitTextchar(char**& _dst,const char** _src,int& _nbLines);
50 void DrawScrollText1();
51 void DrawScrollText2();
53 // void DisplayBackground();
54 // void DrawEqua();
55 // void DisplayDesign();
58 void DrawBackScrollLine(const float* _pnts,int _nbPts,float _offsetY,float _offsetX);
59 void DrawBackScrollBg(const float* _pntsTop,int _nbPts, float _OffsetTop,float _OffsetBottomY,float _offsetX);
60 void DrawBackScroll();
64 public:
66 efxScreen4_t();
69 void Init();
70 void Kill();
72 void Update();
73 void Draw();
75 };
77 //146432 -> 52224
78 #endif
