Dlg3dBoxMaterialSet.cpp
资源名称:Jhy3D.rar [点击查看]
上传用户:eehhbb
上传日期:2022-08-03
资源大小:2550k
文件大小:2k
源码类别:
OpenGL
开发平台:
Visual C++
- // Dlg3dBoxMaterialSet.cpp : implementation file
- //
- #include "stdafx.h"
- #include "jhy3d.h"
- #include "Dlg3dBoxMaterialSet.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDlg3dBoxMaterialSet dialog
- CDlg3dBoxMaterialSet::CDlg3dBoxMaterialSet(CWnd* pParent /*=NULL*/)
- : CDialog(CDlg3dBoxMaterialSet::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CDlg3dBoxMaterialSet)
- m_dlg_ambient0 = _T("0.2");
- m_dlg_ambient1 = _T("0.3");
- m_dlg_ambient2 = _T("0.4");
- m_dlg_diffuse0 = _T("0.2");
- m_dlg_diffuse1 = _T("0.1");
- m_dlg_diffuse2 = _T("0.5");
- m_dlg_specular0 = _T("0");
- m_dlg_specular1 = _T("0");
- m_dlg_specular2 = _T("0");
- m_dlg_emission0 = _T("0.6");
- m_dlg_emission1 = _T("0.3");
- m_dlg_emission2 = _T("0.4");
- m_dlg_shininess = _T("0");
- //}}AFX_DATA_INIT
- }
- void CDlg3dBoxMaterialSet::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CDlg3dBoxMaterialSet)
- DDX_CBString(pDX, IDC_COMBO1, m_dlg_ambient0);
- DDX_CBString(pDX, IDC_COMBO2, m_dlg_ambient1);
- DDX_CBString(pDX, IDC_COMBO3, m_dlg_ambient2);
- DDX_CBString(pDX, IDC_COMBO5, m_dlg_diffuse0);
- DDX_CBString(pDX, IDC_COMBO6, m_dlg_diffuse1);
- DDX_CBString(pDX, IDC_COMBO7, m_dlg_diffuse2);
- DDX_CBString(pDX, IDC_COMBO9, m_dlg_specular0);
- DDX_CBString(pDX, IDC_COMBO10, m_dlg_specular1);
- DDX_CBString(pDX, IDC_COMBO11, m_dlg_specular2);
- DDX_CBString(pDX, IDC_COMBO13, m_dlg_emission0);
- DDX_CBString(pDX, IDC_COMBO14, m_dlg_emission1);
- DDX_CBString(pDX, IDC_COMBO15, m_dlg_emission2);
- DDX_CBString(pDX, IDC_COMBO17, m_dlg_shininess);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CDlg3dBoxMaterialSet, CDialog)
- //{{AFX_MSG_MAP(CDlg3dBoxMaterialSet)
- // NOTE: the ClassWizard will add message map macros here
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDlg3dBoxMaterialSet message handlers