00001
00002
00004
00005 #if !defined(AFX_MYSPHERE_H__B2B8B6D8_7132_41E3_83A0_A37311F9DF46__INCLUDED_)
00006 #define AFX_MYSPHERE_H__B2B8B6D8_7132_41E3_83A0_A37311F9DF46__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011
00012 #include "MyObject.h"
00013 #include "gl/glu.h"
00014
00016 class MySphere : public MyObject
00017 {
00018 public:
00019 virtual void Init(MyObject *obj);
00020
00022 MySphere(CPoint3D position, float radius, float lineWidth,
00023 GLubyte *rgba);
00024
00025 virtual bool IsInside(CPoint3D position);
00026 virtual void Draw();
00027
00029 float GetRadius();
00031 void SetRadius(float radius);
00032
00034 MySphere();
00035
00036 virtual ~MySphere();
00037 private:
00038 float m_Radius;
00039 float m_QuadRadius;
00040 };
00041
00042 #endif // !defined(AFX_MYSPHERE_H__B2B8B6D8_7132_41E3_83A0_A37311F9DF46__INCLUDED_)