DlgCreateNormalTexture.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_DLGCREATENORMALTEXTURE_H__C517CED2_FA6C_11D1_82E9_000000000000__INCLUDED_)
  13. #define AFX_DLGCREATENORMALTEXTURE_H__C517CED2_FA6C_11D1_82E9_000000000000__INCLUDED_
  14. #if _MSC_VER >= 1000
  15. #pragma once
  16. #endif // _MSC_VER >= 1000
  17. // DlgCreateNormalTexture.h : header file
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CDlgCreateNormalTexture dialog
  21. class CDlgCreateNormalTexture : public CDialog
  22. {
  23. // Construction
  24. public:
  25. CDlgCreateNormalTexture(CTFileName fnInputFile, CWnd* pParent = NULL); // standard constructor
  26. ~CDlgCreateNormalTexture();
  27. void RefreshCreatedTexture(void);
  28. void ReleaseCreatedTexture(void);
  29. BOOL m_bSourcePictureValid;
  30. BOOL m_bPreviewWindowsCreated;
  31. PIX m_pixSourceWidth;
  32. PIX m_pixSourceHeight;
  33. MEX m_mexCreatedWidth;
  34. CTFileName m_fnSourceFileName;
  35. CTFileName m_fnCreatedFileName;
  36. CWndDisplayTexture m_wndViewDetailTexture;
  37. CWndDisplayTexture m_wndViewCreatedTexture;
  38. CTextureData *m_ptdCreated;
  39. // Dialog Data
  40. //{{AFX_DATA(CDlgCreateNormalTexture)
  41. enum { IDD = IDD_CREATE_NORMAL_TEXTURE };
  42. CButton m_ctrlForce32;
  43. CButton m_ctrlCheckButton;
  44. CComboBox m_ctrlNoOfMipMapsCombo;
  45. CComboBox m_ctrlMexSizeCombo;
  46. CString m_strCreatedTextureName;
  47. CString m_strSizeInPixels;
  48. BOOL m_bCreateMipmaps;
  49. //}}AFX_DATA
  50. // Overrides
  51. // ClassWizard generated virtual function overrides
  52. //{{AFX_VIRTUAL(CDlgCreateNormalTexture)
  53. protected:
  54. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  55. //}}AFX_VIRTUAL
  56. // Implementation
  57. protected:
  58. // Generated message map functions
  59. //{{AFX_MSG(CDlgCreateNormalTexture)
  60. afx_msg void OnPaint();
  61. afx_msg void OnChequeredAlpha();
  62. afx_msg void OnForce32();
  63. virtual BOOL OnInitDialog();
  64. afx_msg void OnBrowseDetail();
  65. afx_msg void OnDetailNone();
  66. afx_msg void OnCreateTexture();
  67. afx_msg void OnCreateMipmaps();
  68. //}}AFX_MSG
  69. DECLARE_MESSAGE_MAP()
  70. };
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_DLGCREATENORMALTEXTURE_H__C517CED2_FA6C_11D1_82E9_000000000000__INCLUDED_)