DlgTeapotSet.cpp
资源名称:Jhy3D.rar [点击查看]
上传用户:eehhbb
上传日期:2022-08-03
资源大小:2550k
文件大小:2k
源码类别:
OpenGL
开发平台:
Visual C++
- // DlgTeapotSet.cpp : implementation file
- //
- #include "stdafx.h"
- #include "jhy3d.h"
- #include "DlgTeapotSet.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDlgTeapotSet dialog
- CDlgTeapotSet::CDlgTeapotSet(CWnd* pParent /*=NULL*/)
- : CDialog(CDlgTeapotSet::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CDlgTeapotSet)
- m_dlg_Ambient0 = _T("0.5");
- m_dlg_Ambient1 = _T("0");
- m_dlg_Ambient2 = _T("0");
- m_dlg_Diffuse0 = _T("0.8");
- m_dlg_Diffuse1 = _T("0");
- m_dlg_Diffuse2 = _T("0");
- m_dlg_Specular0 = _T("0");
- m_dlg_Specular1 = _T("0");
- m_dlg_Specular2 = _T("0");
- m_dlg_Emission0 = _T("0.5");
- m_dlg_Emission1 = _T("0");
- m_dlg_Emission2 = _T("0");
- m_dlg_Shininess = _T("0");
- m_teapot_tx = 0.0f;
- m_teapot_ty = 0.0f;
- m_teapot_tz = 0.0f;
- m_teapot_radius = 0.5f;
- //}}AFX_DATA_INIT
- }
- void CDlgTeapotSet::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CDlgTeapotSet)
- 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);
- DDX_Text(pDX, IDC_EDIT1, m_teapot_tx);
- DDX_Text(pDX, IDC_EDIT2, m_teapot_ty);
- DDX_Text(pDX, IDC_EDIT3, m_teapot_tz);
- DDX_Text(pDX, IDC_EDIT4, m_teapot_radius);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CDlgTeapotSet, CDialog)
- //{{AFX_MSG_MAP(CDlgTeapotSet)
- // NOTE: the ClassWizard will add message map macros here
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDlgTeapotSet message handlers