2 ===========================================================================
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
7 This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
26 ===========================================================================
28 #if !defined(AFX_LIGHTDLG_H__9DF57520_ED11_4BD8_968A_F6A7E34167D2__INCLUDED_)
29 #define AFX_LIGHTDLG_H__9DF57520_ED11_4BD8_968A_F6A7E34167D2__INCLUDED_
33 #endif // _MSC_VER > 1000
45 bool explicitStartEnd;
69 void DefaultProjected();
71 void FromDict( const idDict *e );
72 void ToDict( idDict *e );
73 void ToDictFromDifferences( idDict *e, const idDict *differences );
74 void ToDictWriteAllInfo( idDict *e );
77 /////////////////////////////////////////////////////////////////////////////
80 class CLightDlg : public CDialog {
82 CLightDlg(CWnd* pParent = NULL); // standard constructor
85 void UpdateDialogFromLightInfo( void );
86 void UpdateDialog( bool updateChecks );
87 void UpdateLightInfoFromDialog( void );
88 void UpdateColor( float r, float g, float b, float a );
90 void EnableControls();
91 void LoadLightTextures();
93 void SaveLightInfo( const idDict *differences );
96 //{{AFX_DATA(CLightDlg)
97 enum { IDD = IDD_DIALOG_LIGHT };
98 idGLWidget m_wndPreview;
99 CComboBox m_wndLights;
100 CSliderCtrl m_wndFalloff;
102 BOOL m_bExplicitFalloff;
104 BOOL m_bCheckProjected;
139 // ClassWizard generated virtual function overrides
140 //{{AFX_VIRTUAL(CLightDlg)
142 virtual BOOL DestroyWindow();
144 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
150 // Generated message map functions
151 //{{AFX_MSG(CLightDlg)
152 virtual BOOL OnInitDialog();
153 afx_msg void OnDestroy();
154 afx_msg void OnBtnTexture();
155 afx_msg void OnCheckEqualradius();
156 afx_msg void OnCheckExplicitfalloff();
157 afx_msg void OnCheckPoint();
158 afx_msg void OnCheckProjected();
159 afx_msg void OnRadioFalloff();
161 afx_msg void OnApply();
162 afx_msg void OnBtnColor();
163 afx_msg void OnBtnFog();
164 afx_msg void OnCheckFog();
165 afx_msg void OnCheckRotate();
166 afx_msg void OnCheckStrobe();
167 virtual void OnCancel();
168 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
169 afx_msg void OnSelchangeComboTexture();
170 afx_msg void OnCheckCenter();
171 afx_msg void OnCheckParallel();
172 afx_msg void OnApplyDifferences();
174 DECLARE_MESSAGE_MAP()
179 CLightInfo lightInfo;
180 CLightInfo lightInfoOriginal;
182 idGLDrawableMaterial * m_drawMaterial;
185 //{{AFX_INSERT_LOCATION}}
186 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
188 #endif // !defined(AFX_LIGHTDLG_H__9DF57520_ED11_4BD8_968A_F6A7E34167D2__INCLUDED_)