#if !defined(AFX_DDS_CONTAINER_H__781D7CA3_A3C7_4108_849B_DABC2D14A0E1__INCLUDED_) #define AFX_DDS_CONTAINER_H__781D7CA3_A3C7_4108_849B_DABC2D14A0E1__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // Dds_container.h : header file // ///////////////////////////////////////////////////////////////////////////// // CDds_container dialog class CDds_container : public CDialog { // Construction public: void ConvertTGA2DDS(char *strFolder); void ConvertBump(char *strFolder); void AutoHeaderCreate(CString strSrc); void AutoTGAConvertTexture(char *strPath); void TextureHeaderRestore(char *strPath); void TextureHeaderFix(char *strPath); void AutoConvertTexture(CString strSrc,CString strTar,bool bSmall=true,bool bHeader=true); CDds_container(CWnd* pParent = NULL); // standard constructor void Compress(); void Mipmap(); bool MapInfoFileLoad(char *strPath); void ConvertR3S(CString strSrcPath,CString strDestPath); long m_dwWidth; long m_dwHeight; long m_numMips; HRESULT BltAllLevels(D3DCUBEMAP_FACES FaceType, LPDIRECT3DBASETEXTURE8 ptexSrc, LPDIRECT3DBASETEXTURE8 ptexDest); HRESULT ChangeFormat(LPDIRECT3DBASETEXTURE8 ptexCur, D3DFORMAT fmtTo, LPDIRECT3DBASETEXTURE8* pptexNew); LPDIRECT3DBASETEXTURE8 base; LPDIRECT3DBASETEXTURE8 ptexNew; // Dialog Data //{{AFX_DATA(CDds_container) enum { IDD = IDD_DDS }; CEdit m_econtrol; CString m_Edit; int m_Radio; int m_Radio2; int m_Radio3; BOOL m_bDivTexture; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CDds_container) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CDds_container) afx_msg void OnButton1(); afx_msg void OnChangeEdit(); virtual void OnOK(); afx_msg void OnButtonConvertlowhardware(); afx_msg void OnEsf(); afx_msg void OnButtonTotaltextureconvert(); afx_msg void OnButton2(); afx_msg void OnButton3(); afx_msg void OnButtonDds2tga(); afx_msg void OnButtonBumpgenerate(); afx_msg void OnButtonTga2dds(); afx_msg void OnMapinfoconv(); afx_msg void OnDdsheader(); afx_msg void OnButtonesfinfo(); afx_msg void OnButtonConvertmesh(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_DDS_CONTAINER_H__781D7CA3_A3C7_4108_849B_DABC2D14A0E1__INCLUDED_)