www.pudn.com > VC++Delaunay.rar > Lighting.cpp


// Lighting.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "Delaunay.h" 
#include "Lighting.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CLighting dialog 
 
 
CLighting::CLighting(CWnd* pParent /*=NULL*/) 
	: CDialog(CLighting::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CLighting) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
 
void CLighting::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	DDX_Text(pDX, IDC_L_AMBIENT_R, m_lightAmbientR); 
    DDX_Text(pDX, IDC_L_AMBIENT_G, m_lightAmbientG); 
	DDX_Text(pDX, IDC_L_AMBIENT_B, m_lightAmbientB); 
	 
	DDX_Text(pDX, IDC_L_SPECULAR_R, m_lightSpecularR); 
    DDX_Text(pDX, IDC_L_SPECULAR_G, m_lightSpecularG); 
	DDX_Text(pDX, IDC_L_SPECULAR_B, m_lightSpecularB); 
	 
	DDX_Text(pDX, IDC_L_DIFFUSE_R, m_lightDiffuseR); 
    DDX_Text(pDX, IDC_L_DIFFUSE_G, m_lightDiffuseG); 
	DDX_Text(pDX, IDC_L_DIFFUSE_B, m_lightDiffuseB); 
 
	DDX_Text(pDX, IDC_L_POSITION_X, m_lightPositionX); 
    DDX_Text(pDX, IDC_L_POSITION_Y, m_lightPositionY); 
	DDX_Text(pDX, IDC_L_POSITION_Z, m_lightPositionZ); 
} 
 
 
BEGIN_MESSAGE_MAP(CLighting, CDialog) 
	//{{AFX_MSG_MAP(CLighting) 
		// NOTE: the ClassWizard will add message map macros here 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CLighting message handlers