-
Notifications
You must be signed in to change notification settings - Fork 1
/
LightDialog.h
executable file
·44 lines (34 loc) · 1.06 KB
/
LightDialog.h
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
#pragma once
#include "Light.h"
// CLightDialog dialog
class CLightDialog : public CDialog
{
DECLARE_DYNAMIC(CLightDialog)
public:
CLightDialog(CWnd* pParent = NULL); // standard constructor
virtual ~CLightDialog();
//dialog interface
void SetDialogData(LightID id,const LightParams& light);
void SetLightConstants(double ambient_mod, double diffuse_mod, double spcular_mod, double spcular_n);
LightParams GetDialogData(LightID id);
double m_ambient_mod;
double m_diffuse_mod;
double m_specular_mod;
double m_specular_n;
// Dialog Data
enum { IDD = IDD_LIGHTS_DLG };
protected:
LightParams m_lights[MAX_LIGHT];
LightParams m_ambiant;
int m_currentLightIdx;
int GetCurrentLightIndex();
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedRadioLight();
// afx_msg void On();
virtual BOOL OnInitDialog();
afx_msg void OnBnClickedLightEnabled();
afx_msg void OnCbnSelchangeLightType();
afx_msg void OnEnChangeLightColorR();
};