mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-27 04:35:52 +01:00
106 lines
3.0 KiB
C++
106 lines
3.0 KiB
C++
/* Copyright (c) 2002-2012 Croteam Ltd.
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of version 2 of the GNU General Public License as published by
|
|
the Free Software Foundation
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
|
|
|
|
#if !defined(AFX_DLGCREATEREFLECTIONTEXTURE_H__AE69A18C_E288_11D2_8535_004095812ACC__INCLUDED_)
|
|
#define AFX_DLGCREATEREFLECTIONTEXTURE_H__AE69A18C_E288_11D2_8535_004095812ACC__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// DlgCreateReflectionTexture.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgCreateReflectionTexture dialog
|
|
|
|
class CDlgCreateReflectionTexture : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
BOOL m_bCustomWindowsCreated;
|
|
|
|
CTString m_strBase;
|
|
CTString m_strExt;
|
|
CPlacement3D m_plPlacement;
|
|
CModelObject m_moModel;
|
|
CTextureObject m_toBackground;
|
|
|
|
int m_iTimerID;
|
|
|
|
CWnd m_wndPreview;
|
|
CWnd m_wndN;
|
|
CWnd m_wndS;
|
|
CWnd m_wndE;
|
|
CWnd m_wndW;
|
|
CWnd m_wndC;
|
|
CWnd m_wndF;
|
|
CDrawPort *m_apdp[7];
|
|
CViewPort *m_apvp[7];
|
|
|
|
CTextureObject m_toN;
|
|
CTextureObject m_toS;
|
|
CTextureObject m_toE;
|
|
CTextureObject m_toW;
|
|
CTextureObject m_toC;
|
|
CTextureObject m_toF;
|
|
|
|
CDlgCreateReflectionTexture(CWnd* pParent = NULL); // standard constructor
|
|
void CreateReflectionTexture_t( CTFileName fnTexture); // throw char *
|
|
void PutPicture(CWnd &wnd, CTextureObject &to, INDEX iwin);
|
|
void DrawPreview( CDrawPort *pdp);
|
|
void RenderPreview(void);
|
|
void AutoSetTextures( CTFileName fnFile);
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CDlgCreateReflectionTexture)
|
|
enum { IDD = IDD_CREATE_REFLECTION_TEXTURE };
|
|
CComboBox m_comboSizeInPixels;
|
|
CColoredButton m_colorLight;
|
|
CColoredButton m_colorAmbient;
|
|
CColoredButton m_colorReflection;
|
|
BOOL m_bAutoRotate;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CDlgCreateReflectionTexture)
|
|
public:
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CDlgCreateReflectionTexture)
|
|
afx_msg void OnPaint();
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnTimer(UINT nIDEvent);
|
|
afx_msg void OnDestroy();
|
|
afx_msg void OnAutoRotate();
|
|
afx_msg void OnSelchangeSizeInPixels();
|
|
virtual void OnOK();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_DLGCREATEREFLECTIONTEXTURE_H__AE69A18C_E288_11D2_8535_004095812ACC__INCLUDED_)
|