DlgTerrainProperties.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. #if !defined(AFX_DLGTERRAINPROPERTIES_H__44370841_18E0_4F93_8BF8_C0640205AE46__INCLUDED_)
  13. #define AFX_DLGTERRAINPROPERTIES_H__44370841_18E0_4F93_8BF8_C0640205AE46__INCLUDED_
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // DlgTerrainProperties.h : header file
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CDlgTerrainProperties dialog
  21. class CDlgTerrainProperties : public CDialog
  22. {
  23. // Construction
  24. public:
  25. CDlgTerrainProperties(CWnd* pParent = NULL); // standard constructor
  26. void PrepareGlobalPretenderCombo(void);
  27. void PrepareTilePretenderCombo(void);
  28. void InitComboBoxes(void);
  29. // Dialog Data
  30. //{{AFX_DATA(CDlgTerrainProperties)
  31. enum { IDD = IDD_TERRAIN_PROPERTIES };
  32. CComboBox m_ctrlGlobalPretenderTexture;
  33. CComboBox m_ctrlTilePretender;
  34. CSliderCtrl m_ctrlShadingMapSlider;
  35. CComboBox m_ctrlQuadsPerTile;
  36. CComboBox m_ctrlHeightMapWidth;
  37. CComboBox m_ctrlHeightMapHeight;
  38. CSliderCtrl m_ctrlShadowMapSlider;
  39. CString m_strHeightmapSize;
  40. CString m_strShadowMapSize;
  41. CString m_strTerrainPretender;
  42. CString m_strTilePretender;
  43. float m_fTerrainLength;
  44. float m_fTerrainHeight;
  45. float m_fTerrainWidth;
  46. float m_fLODSwitch;
  47. CString m_strShadingMapSize;
  48. CString m_strMemoryConsumption;
  49. CString m_strLayerMemory;
  50. CString m_strEdgeMap;
  51. //}}AFX_DATA
  52. // Overrides
  53. // ClassWizard generated virtual function overrides
  54. //{{AFX_VIRTUAL(CDlgTerrainProperties)
  55. protected:
  56. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  57. //}}AFX_VIRTUAL
  58. // Implementation
  59. protected:
  60. // Generated message map functions
  61. //{{AFX_MSG(CDlgTerrainProperties)
  62. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  63. virtual BOOL OnInitDialog();
  64. afx_msg void OnSelchangeTerrainHmWidth();
  65. afx_msg void OnSelchangeTerrainHmHeight();
  66. virtual void OnOK();
  67. afx_msg void OnSelchangeTilePretender();
  68. afx_msg void OnSelchangeGlobalPretender();
  69. //}}AFX_MSG
  70. DECLARE_MESSAGE_MAP()
  71. };
  72. //{{AFX_INSERT_LOCATION}}
  73. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  74. #endif // !defined(AFX_DLGTERRAINPROPERTIES_H__44370841_18E0_4F93_8BF8_C0640205AE46__INCLUDED_)