67 #define EPS 1.0e-6 // Epsilon
69 #define DEFAULT_VEC {0.00, 0.00, 1.00} // Default start vector
70 #define DEFAULT_DIFFUSE RGB( 30, 0, 200) // Default diffuse color
71 #define DEFAULT_AMBIENT RGB( 20, 20, 20) // Default ambient color
72 #define DEFAULT_LIGHT RGB(200, 200, 200) // Default light color
73 #define DEFAULT_START_BACKGROUND_COLOR RGB( 0, 0, 0) // Default gradient background start color
74 #define DEFAULT_END_BACKGROUND_COLOR RGB(140, 0, 120) // Default gradient background end color
75 #define DEFAULT_SPEC_EXP 25.0 // Default specular intensity
76 #define VAL_NOT_IN_USE -50000 // Internal use
85 virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct );
130 void SetVector (
double dx,
double dy,
double dz);
163 void InitBitmap (LPDRAWITEMSTRUCT lpDrawItemStruct, CDC *pDC);
165 void BuildImage (LPDRAWITEMSTRUCT lpDrawItemStruct);
171 COLORREF
CalcLight (
double dx,
double dy,
double dz);
181 void SetAxis (
double d,
int nAxis);
220 DECLARE_MESSAGE_MAP()
void SetVectorChangedCallback(VectorCtlCallbackProc proc)
void SetRadius(UINT uRadius)
afx_msg void OnLButtonUp(UINT nFlags, CPoint point)
BOOL SetBackgroundImage(UINT uBackgroundBitmapID)
CONST PIXELFORMATDESCRIPTOR UINT
VectorCtlCallbackProc m_procVectorChanging
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
BOOL SetSensitivity(UINT uSens)
void InitBitmap(LPDRAWITEMSTRUCT lpDrawItemStruct, CDC *pDC)
BOOL SetSpecularExponent(double dExp)
double GetSpecularExponent()
void(* VectorCtlCallbackProc)(idQuat rotation)
void SetCenter(UINT uHorizPos, UINT uVertPos)
void SetVector(double dx, double dy, double dz)
void SetBackgroundColor(COLORREF clrStart, COLORREF clrEnd)
void SetAmbientColor(COLORREF clr)
COLORREF m_clrBackgroundStart
void OnMouseDrag(int, int)
void BuildImage(LPDRAWITEMSTRUCT lpDrawItemStruct)
double m_dSpecularExponent
void SetAxisControl(int nXCtl, int nYCtl, int nZCtl)
VectorCtlCallbackProc m_procVectorChanged
void SetAxis(double d, int nAxis)
void SetVectorChangingCallback(VectorCtlCallbackProc proc)
void RotateByXandY(double XRot, double YRot)
void SetLightColor(COLORREF clr)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point)
COLORREF m_clrBackgroundEnd
COLORREF GetDiffuseColor()
void ClipToFront(BOOL bEnable)
void Redraw(BOOL bErase=FALSE)
idQuat ToQuat(void) const
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
void SetDiffuseColor(COLORREF clr)
void UpdateAxisControls()
COLORREF CalcLight(double dx, double dy, double dz)
void SetidAxis(const idMat3 &mat)
void ClearBackgroundBitmap()
BOOL m_bBackgroundBitmapUsed
afx_msg void OnMouseMove(UINT nFlags, CPoint point)
COLORREF GetAmbientColor()