00001 #if !defined(AFX_MYBLOCKDIALOG_H__5629F46A_39B4_4423_96BA_0FFD020180D8__INCLUDED_)
00002 #define AFX_MYBLOCKDIALOG_H__5629F46A_39B4_4423_96BA_0FFD020180D8__INCLUDED_
00003
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007
00008
00009
00010 #include "MyMaterialDialog.h"
00011 #include "gl/gl.h"
00012 #include "Defines.h"
00013
00015
00016
00017 class MyBlockDialog : public CDialog
00018 {
00019
00020 public:
00021 static void InitBlockTex();
00022 bool GetIsTex();
00023 void SetIsTex(bool isTex);
00024 static void ReadBlTex(CString filename);
00025 void SetZOffs(float zOffs);
00026 float GetZOffs();
00027 MyBlockDialog(CWnd* pParent = NULL);
00028 MyMaterialDialog m_MaterialDialog;
00029
00030 static GLubyte blTex[DEF_BLTEX_HEIGHT][DEF_BLTEX_WIDTH][4];
00031
00032
00033 enum { IDD = IDD_BLOCKDIALOG };
00034 int m_ZOffs;
00035 BOOL m_IsTex;
00036
00037
00038
00039
00040
00041
00042 protected:
00043 virtual void DoDataExchange(CDataExchange* pDX);
00044
00045
00046
00047 protected:
00048
00049
00050
00051 afx_msg void OnMaterialButton();
00052 virtual BOOL OnInitDialog();
00053 afx_msg void OnLoadTexButton();
00054 afx_msg void OnPaint();
00055
00056 DECLARE_MESSAGE_MAP()
00057 };
00058
00059
00060
00061
00062 #endif // !defined(AFX_MYBLOCKDIALOG_H__5629F46A_39B4_4423_96BA_0FFD020180D8__INCLUDED_)