DlgLightSet.cpp
资源名称:Jhy3D.rar [点击查看]
上传用户:eehhbb
上传日期:2022-08-03
资源大小:2550k
文件大小:2k
源码类别:
OpenGL
开发平台:
Visual C++
- // DlgLightSet.cpp : implementation file
- //
- #include "stdafx.h"
- #include "jhy3d.h"
- #include "DlgLightSet.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDlgLightSet dialog
- CDlgLightSet::CDlgLightSet(CWnd* pParent /*=NULL*/)
- : CDialog(CDlgLightSet::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CDlgLightSet)
- m_dlg_Ambient0 = _T("0.5");
- m_dlg_Ambient1 = _T("0");
- m_dlg_Ambient2 = _T("0");
- m_dlg_Diffuse0 = _T("0.6");
- m_dlg_Diffuse1 = _T("0");
- m_dlg_Diffuse2 = _T("0.4");
- m_dlg_Specular0 = _T("0.1");
- m_dlg_Specular1 = _T("0.3");
- m_dlg_Specular2 = _T("0.4");
- m_dlg_Position0 = _T("0");
- m_dlg_Position1 = _T("0");
- m_dlg_Position2 = _T("0");
- //}}AFX_DATA_INIT
- }
- void CDlgLightSet::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CDlgLightSet)
- 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_Position0);
- DDX_CBString(pDX, IDC_COMBO14, m_dlg_Position1);
- DDX_CBString(pDX, IDC_COMBO15, m_dlg_Position2);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CDlgLightSet, CDialog)
- //{{AFX_MSG_MAP(CDlgLightSet)
- // NOTE: the ClassWizard will add message map macros here
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDlgLightSet message handlers