LightMaterial.cpp
上传用户:azhong891
上传日期:2013-06-04
资源大小:197k
文件大小:2k
- // LightMaterial.cpp : implementation file
- //
- #include "stdafx.h"
- #include "Delaunay.h"
- #include "LightMaterial.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CLightMaterial dialog
- CLightMaterial::CLightMaterial(CWnd* pParent /*=NULL*/)
- : CDialog(CLightMaterial::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CLightMaterial)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void CLightMaterial::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- DDX_Text(pDX, IDC_COLOR_RED, m_colorRed);
- DDX_Text(pDX, IDC_COLOR_GREEN, m_colorGreen);
- DDX_Text(pDX, IDC_COLOR_BLUE, m_colorBlue);
- DDX_Check(pDX, IDC_COLOR_MASK_R, m_bMaskRed);
- DDX_Check(pDX, IDC_COLOR_MASK_G, m_bMaskGreen);
- DDX_Check(pDX, IDC_COLOR_MASK_B, m_bMaskBlue);
- DDX_Text(pDX, IDC_M_AMBIENT_R, m_matAmbientR);
- DDX_Text(pDX, IDC_M_AMBIENT_G, m_matAmbientG);
- DDX_Text(pDX, IDC_M_AMBIENT_B, m_matAmbientB);
- DDX_Text(pDX, IDC_M_DIFFUSE_R, m_matDiffuseR);
- DDX_Text(pDX, IDC_M_DIFFUSE_G, m_matDiffuseG);
- DDX_Text(pDX, IDC_M_DIFFUSE_B, m_matDiffuseB);
- DDX_Text(pDX, IDC_M_SPECULAR_R, m_matSpecularR);
- DDX_Text(pDX, IDC_M_SPECULAR_G, m_matSpecularG);
- DDX_Text(pDX, IDC_M_SPECULAR_B, m_matSpecularB);
- DDX_Text(pDX, IDC_M_EMISSION_R, m_matEmissionR);
- DDX_Text(pDX, IDC_M_EMISSION_G, m_matEmissionG);
- DDX_Text(pDX, IDC_M_EMISSION_B, m_matEmissionB);
- DDX_Text(pDX, IDC_M_SHININESS, m_matShininess);
- DDX_Check(pDX, IDC_MATERIAL_FLAG,m_bMaterialOnOff);
- }
- BEGIN_MESSAGE_MAP(CLightMaterial, CDialog)
- //{{AFX_MSG_MAP(CLightMaterial)
- // NOTE: the ClassWizard will add message map macros here
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CLightMaterial message handlers