-
Notifications
You must be signed in to change notification settings - Fork 0
/
NifTextureView.h
149 lines (119 loc) · 4.55 KB
/
NifTextureView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/*===========================================================================
*
* File: NifTextureView.H
* Author: Dave Humphrey (uesp@m0use.net)
* Created On: Saturday, 28 December, 2002
*
* Interface of the CNifTextureView class.
*
*=========================================================================*/
#ifndef __NifTextureView_H
#define __NifTextureView_H
/*===========================================================================
*
* Begin Required Include Files
*
*=========================================================================*/
#include "ColorStatic.h"
/*===========================================================================
* End of Required Include Files
*=========================================================================*/
/*===========================================================================
*
* Begin Definitions
*
*=========================================================================*/
/*===========================================================================
* End of Definitions
*=========================================================================*/
/*===========================================================================
*
* Begin Class CNifTextureView Definition
*
*=========================================================================*/
class CNifTextureView : public CFormView {
/*---------- Begin Protected Class Members ----------------------*/
protected:
int m_CurrentListIndex;
int m_CurrentMaterialIndex;
/*---------- Begin Public Class Members --------------------------*/
public:
//{{AFX_DATA(CNifTextureView)
enum { IDD = IDD_NIFTEXTURE_FORM };
CColorStatic m_SpecularColor;
CColorStatic m_DiffuseColor;
CColorStatic m_AmbientColor;
CButton m_MaterialBox;
CListBox m_MaterialList;
CButton m_BrowseButton;
CEdit m_FilenameText;
CListBox m_TextureList;
//}}AFX_DATA
/*---------- Begin Protected Class Methods ----------------------*/
protected:
/* Create from serialization only */
CNifTextureView();
DECLARE_DYNCREATE(CNifTextureView)
/* Create the material/texture list from the current file */
void CreateMaterialList (void);
void CreateTextureList (void);
/* Set/get control data */
void GetMaterialData (void);
void SetMaterialData (void);
void GetTextureData (void);
void SetTextureData (void);
/*---------- Begin Public Class Methods --------------------------*/
public:
/* Class destructor */
virtual ~CNifTextureView();
/* Diagnostics */
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
CNifTextureDoc* GetDocument();
CNifTextureApp* GetApp() { return (CNifTextureApp *) AfxGetApp(); }
/* ClassWizard generated virtual function overrides */
//{{AFX_VIRTUAL(CNifTextureView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX);
virtual void OnInitialUpdate();
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
/* Generated message map functions */
protected:
//{{AFX_MSG(CNifTextureView)
afx_msg void OnBrowseButton();
afx_msg void OnSelchangeTextureList();
afx_msg void OnAmibientcolorbox();
afx_msg void OnDiffusecolorbox();
afx_msg void OnSpecularcolorbox();
afx_msg void OnSelchangeMaterialList();
afx_msg void OnAutotint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP();
};
/*===========================================================================
* End of Class CNifTextureView Definition
*=========================================================================*/
/*===========================================================================
*
* Begin Inline Class Methods
*
*=========================================================================*/
#ifndef _DEBUG
inline CNifTextureDoc* CNifTextureView::GetDocument() {
return (CNifTextureDoc*)m_pDocument; }
#endif
/*===========================================================================
* End of Inline Class Methods
*=========================================================================*/
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
//}}AFX_INSERT_LOCATION
#endif
/*===========================================================================
* End of File View.H
*=========================================================================*/