1 //
2 // Computergraphik II
3 // Prof. Dr. Juergen Doellner
4 // Wintersemester 2001/02
5 //
6 // Rahmenprogramm zu Aufgabenzettel 1
7 //
8
9 #ifndef CG_LINESTYLE_H
10 #define CG_LINESTYLE_H
11
12 #include "cgapplication.h"
13
14 class CGTranslucent : public CGApplication {
15 public:
16 CGTranslucent();
17 virtual ~CGTranslucent();
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 int width_;
31 int height_;
32 bool run_;
33
34 GLfloat moveX_;
35
36 float dirX_;
37 };
38
39 #endif
40
41
42