1 /* $Id: BallView.h,v 1.8 2003/07/13 15:26:24 nan Exp $ */
2 
3 // Copyright (C) 2000, 2002, 2003  $B?@Fn(B $B5H9((B(Kanna Yoshihiro)
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 
19 #ifndef _BallView_
20 #define _BallView_
21 
22 #include "View.h"
23 
24 class BallView : public View {
25 public:
26   BallView();
27   bool Init();
28   virtual ~BallView();
29 
30   virtual bool Redraw();
31   virtual bool RedrawAlpha();
32 
33   static GLuint m_number[10];
34 private:
35   void DrawTargetCircle();
36   GLUquadricObj *m_quad;
37 
38   void DrawBall();
39   void DrawShadow();
40 };
41 
42 #endif	// _BallView
43