1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #if !defined(AFX_AUTO_LOD_DLG_H__BCD6DB9A_FA8A_47AD_9E95_317A8B94047A__INCLUDED_)
18 #define AFX_AUTO_LOD_DLG_H__BCD6DB9A_FA8A_47AD_9E95_317A8B94047A__INCLUDED_
24 #include "ps_wrapper.h"
25 #include "dialog_stack.h"
26 #include "nel/3d/particle_system.h"
27 #include "particle_workspace.h"
31 class CParticleSystem
;
35 class CAutoLODDlg
: public CDialog
, public CDialogStack
39 CAutoLODDlg(CParticleWorkspace::CNode
*ownerNode
, NL3D::CParticleSystem
*ps
, IPopupNotify
*pn
, CWnd
* pParent
= NULL
); // standard constructor
41 void init(CWnd
*pParent
);
43 //{{AFX_DATA(CAutoLODDlg)
44 enum { IDD
= IDD_AUTO_LOD
};
45 // NOTE: the ClassWizard will add data members here
50 // ClassWizard generated virtual function overrides
51 //{{AFX_VIRTUAL(CAutoLODDlg)
53 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
58 CParticleWorkspace::CNode
*_Node
;
59 NL3D::CParticleSystem
*_PS
;
64 struct CDistRatioWrapper
: IPSWrapperFloat
66 NL3D::CParticleSystem
*PS
;
67 virtual float get() const { return PS
->getAutoLODStartDistPercent(); }
68 virtual void set(const float &v
) { PS
->setupAutoLOD(v
, PS
->getAutoLODDegradationExponent()); }
71 struct CMaxDistLODBiasWrapper
: IPSWrapperFloat
73 NL3D::CParticleSystem
*PS
;
74 virtual float get() const { return PS
->getMaxDistLODBias(); }
75 virtual void set(const float &v
) { PS
->setMaxDistLODBias(v
); }
76 } _MaxDistLODBiasWrapper
;
78 // Generated message map functions
79 //{{AFX_MSG(CAutoLODDlg)
80 afx_msg
void OnClose();
81 virtual BOOL
OnInitDialog();
82 afx_msg
void OnSelchangeDegradationExponent();
83 afx_msg
void OnSkipParticles();
88 //{{AFX_INSERT_LOCATION}}
89 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
91 #endif // !defined(AFX_AUTO_LOD_DLG_H__BCD6DB9A_FA8A_47AD_9E95_317A8B94047A__INCLUDED_)