home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 February / Chip_2001-02_cd1.bin / bonus / demos / CS / exp / SOURCES / DEMO / EFEKT_17.H < prev    next >
C/C++ Source or Header  |  2000-08-20  |  900b  |  50 lines

  1. #define ZACIATOK17 152.4
  2. #define KONIEC17   160.0
  3. #define CFGNAME17 "data\\cfg\\twirl.cfg"
  4.  
  5. #define tew_x 150
  6. #define tew_y 100
  7.  
  8.    struct twirl
  9.      {
  10.      float c1x,c1y; //stred 1
  11.      float c2x,c2y; //stred 2
  12.      float hmuch; //intenzita 
  13.      float posx[tew_x][tew_y]; //povodna pozicia 
  14.      float posy[tew_x][tew_y]; 
  15.      float newx[tew_x][tew_y]; //stocena pozicia
  16.      float newy[tew_x][tew_y];
  17.      float texx[tew_x][tew_y]; //texture coords
  18.      float texy[tew_x][tew_y];
  19.      };
  20.  
  21.  
  22. class efekt_17 : public EFEKT
  23. {
  24. public:
  25.    int  go(double t);
  26.    int  init();
  27.    int  load();
  28.    int  free();
  29.    int  update();
  30.  
  31.   // -> premenne efektu
  32.  
  33.    int tw_x;
  34.    int tw_y;
  35.    
  36.    int  mode1;
  37.    int  mode2;
  38.    float polomer;
  39.    float otocenie;
  40.    char tex_name[30];   
  41.    
  42.    twirl tw;
  43.    Texture3DS *tex;
  44.  
  45.    float cntr;
  46.    float clr;
  47.   // <- 
  48.  
  49. };
  50.