00001 #if !defined(AFX_MYMATERIALDIALOG_H__E8B9FADF_53F4_47C4_8F70_7F685C050ADF__INCLUDED_)
00002 #define AFX_MYMATERIALDIALOG_H__E8B9FADF_53F4_47C4_8F70_7F685C050ADF__INCLUDED_
00003
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007
00008
00009 #include "gl/glu.h"
00010 #include "gl/gl.h"
00011 #include "StreamlineMaterial.h"
00012
00014
00015
00017 class MyMaterialDialog : public CDialog
00018 {
00019
00020 public:
00022 GLubyte GetOpacity();
00024 void SetOpacity(GLubyte opacity);
00026 void SetSpecularRGB(GLubyte *specularRGB);
00028 void SetDiffuseRGB(GLubyte *diffuseRGB);
00030 void SetAmbientRGB(GLubyte *ambientRGB);
00032 void GetSpecularRGB(GLubyte *specularRGB);
00034 void GetDiffuseRGB(GLubyte *diffuseRGB);
00036 void GetAmbientRGB(GLubyte *ambientRGB);
00037
00039 void SetMaterial(CStreamlineMaterial material);
00041 CStreamlineMaterial GetMaterial();
00042
00044 CColorDialog m_SpecularDialog;
00046 CColorDialog m_DiffuseDialog;
00048 CColorDialog m_AmbientDialog;
00049
00051 MyMaterialDialog(CWnd* pParent = NULL);
00052
00053
00054
00055 enum { IDD = IDD_MATERIALDIALOG };
00056 int m_Opacity;
00057
00058
00059
00060
00061
00062
00063 protected:
00064 virtual void DoDataExchange(CDataExchange* pDX);
00065
00066
00067
00068 protected:
00069
00070
00071
00072 afx_msg void OnAmbientbutton();
00073 afx_msg void OnDiffusebutton();
00074 afx_msg void OnSpecularbutton();
00075 virtual BOOL OnInitDialog();
00076 afx_msg void OnPaint();
00077
00078 DECLARE_MESSAGE_MAP()
00079 };
00080
00081
00082
00083
00084 #endif // !defined(AFX_MYMATERIALDIALOG_H__E8B9FADF_53F4_47C4_8F70_7F685C050ADF__INCLUDED_)