1 // Computergraphik I
2 // Prof. Dr. Juergen Doellner
3 // Sommersemester 2001
4 //
5 // Rahmenprogramm fuer Aufgabenzettel 1
6
7
8 // Stephan Brumme, 702544
9 // last changes: May 01, 2001
10
11 #ifndef CG_SAMPLE_H
12 #define CG_SAMPLE_H
13
14 #include "cgapplication.h"
15 #include <vector>
16
17 class CGMalen : public CGApplication {
18 public:
19 CGMalen();
20 virtual ~CGMalen();
21
22 // Ueberschreibe alle diese Ereignisse:
23 virtual void onInit();
24 virtual void onDraw();
25 virtual void onSize(unsigned int newWidth, unsigned int newHeight);
26 virtual void onButton(MouseButton button, int x, int y);
27 virtual void onMove(int x, int y);
28 virtual void onKey(unsigned char key);
29
30 private:
31 MouseButton m_mbLastPressed;
32 GLint m_x, m_y;
33 };
34
35 #endif // CG_SAMPLE_H
36
37
38