-
Notifications
You must be signed in to change notification settings - Fork 1
/
MaterialDlg.cpp
44 lines (32 loc) · 957 Bytes
/
MaterialDlg.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// MaterialDlg.cpp : implementation file
//
#include "stdafx.h"
#include "CGWork.h"
#include "MaterialDlg.h"
// CMaterialDlg dialog
IMPLEMENT_DYNAMIC(CMaterialDlg, CDialog)
CMaterialDlg::CMaterialDlg(CWnd* pParent /*=NULL*/)
: CDialog(CMaterialDlg::IDD, pParent)
, m_ambient(0)
, m_diffuse(0)
, m_shininess(0)
, m_specular(0)
{
}
CMaterialDlg::~CMaterialDlg()
{
}
void CMaterialDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_MATERIAL_AMBIENT, m_ambient);
DDV_MinMaxDouble(pDX, m_ambient, 0, 1);
DDX_Text(pDX, IDC_MATERIAL_DIFFUSE, m_diffuse);
DDV_MinMaxDouble(pDX, m_diffuse, 0, 1);
DDX_Text(pDX, IDC_MATERIAL_SHININESS, m_shininess);
DDV_MinMaxDouble(pDX, m_shininess, 0, 1);
DDX_Text(pDX, IDC_MATERIAL_SPECULAR, m_specular);
}
BEGIN_MESSAGE_MAP(CMaterialDlg, CDialog)
END_MESSAGE_MAP()
// CMaterialDlg message handlers