sources:


website:
more info here


screenshot:
studies/grafik2/Computergrafik-Code3/Aufgabe6/cglinestyle.h
download file

  1 //
  2 // Computergraphik II
  3 // Prof. Dr. Juergen Doellner
  4 // Wintersemester 2001/02
  5 //
  6 // Rahmenprogramm zu Aufgabenzettel 2
  7 //
  8
  9 #ifndef CG_LINESTYLE_H
 10 #define CG_LINESTYLE_H
 11
 12 #include "cgapplication.h"
 13
 14 class CGLinestyle : public CGApplication {
 15 public:
 16     CGLinestyle();
 17     virtual ~CGLinestyle();
 18
 19     // Ueberschreibe alle diese Ereignisse:
 20     virtual void onInit();
 21     virtual void onDraw();       
 22     virtual void onIdle();
 23     virtual void onKey(unsigned char key);   
 24     virtual void onSize(unsigned int newWidth, unsigned int newHeight);
 25
 26     // value Methode
 27     unsigned char value(int x, int z) const;
 28    
 29 private:
 30     enum { HALOED, SEGMENTED };
 31
 32     void drawScene();
 33
 34     double haloewidth_;
 35     double segmentwidth_;
 36     int width_;
 37     int height_;
 38     double zoom_;
 39     bool run_;   
 40     bool culling_;
 41     bool lighting_;
 42     int mode_;
 43 };
 44
 45 #endif
 46
 47
 48