Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/CCustomizerMisc.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Sun Aug 15 01:53:13 2010 UTC (13 years, 9 months ago) by okadu
File MIME type: text/x-chdr
File size: 3306 byte(s)


1 #ifndef CCUSTOMIZERMISC_H_INCLUDED
2 #define CCUSTOMIZERMISC_H_INCLUDED
3
4 #include "CCustomizer.h"
5
6 /*
7 * モデル変更子
8 */
9 class CModelChanger: public CCustomizerBase{
10 private:
11 string m_AltModelName; // 代替モデルファイル名
12 CMesh *m_AltModel; // 代替モデル
13 float m_AltModelScale; // 代替スケール
14 public:
15 CModelChanger();
16 CCustomizerBase *Duplicate(){ return new CModelChanger(*this); }
17 char *Read(char *);
18 void LoadDataCustomizer(CModelPlugin *);
19 int GetTypeFlagCustomizer(){ return CSTM_MODELCHANGER; }
20 CMesh *GetMeshCustomizer(float *);
21 };
22
23 /*
24 * 影抑制指定子
25 */
26 class CShadowInhibitor: public CCustomizerBase{
27 private:
28 bool m_NoCastShadow; // 影を落とさない
29 bool m_NoReceiveShadow; // 影を受けない
30 bool m_Transparent; // 透過指定
31 vector<int> m_MaterialID; // マテリアル番号
32 public:
33 CCustomizerBase *Duplicate(){ return new CShadowInhibitor(*this); }
34 char *Read(char *);
35 void ApplyCustomizer(CMesh *);
36 };
37
38 /*
39 * 環境マップ指定子
40 */
41 class CEnvMapper: public CCustomizerBase{
42 private:
43 vector<int> m_MaterialID; // マテリアル番号
44 public:
45 CCustomizerBase *Duplicate(){ return new CEnvMapper(*this); }
46 char *Read(char *);
47 void ApplyCustomizer(CMesh *);
48 };
49
50 /*
51 * αテスト指定子
52 */
53 class CAlphaTester: public CCustomizerBase{
54 private:
55 vector<int> m_MaterialID; // マテリアル番号
56 public:
57 CCustomizerBase *Duplicate(){ return new CAlphaTester(*this); }
58 char *Read(char *);
59 void ApplyCustomizer(CMesh *);
60 };
61
62 /*
63 * テクスチャ変更子
64 */
65 class CTextureChanger: public CCustomizerBase{
66 private:
67 int m_MaterialID; // マテリアル番号
68 string m_AltTextureName; // 代替テクスチャファイル名
69 LPTEX8 m_AltTexture; // 代替テクスチャ
70 public:
71 CCustomizerBase *Duplicate(){ return new CTextureChanger(*this); }
72 char *Read(char *);
73 void LoadDataCustomizer(CModelPlugin *);
74 void ApplyCustomizer(CMesh *);
75 };
76
77 /*
78 * テクスチャトランスフォーマ
79 */
80 class CTextureTransformer: public CCustomizerBase{
81 private:
82 int m_TransformType; // 変換タイプ
83 int m_MaterialID; // マテリアル番号
84 TTMTX m_Matrix; // 変換行列
85 public:
86 CCustomizerBase *Duplicate(){ return new CTextureTransformer(*this); }
87 char *Read(char *, bool);
88 void SetUpMatrix(int, float *);
89 void ApplyCustomizer(CMesh *);
90 void SetMaterialID(int matid){ m_MaterialID = matid; }
91 };
92
93 /*
94 * アニメーション適用子
95 */
96 class CAnimationApplier: public CCustomizerBase{
97 private:
98 int m_MaterialID; // マテリアル番号
99 CTextureAnimation *m_Animation; // アニメーション
100 public:
101 CCustomizerBase *Duplicate(){ return new CAnimationApplier(*this); }
102 char *Read(char *, CModelPlugin *);
103 void ApplyCustomizer(CMesh *);
104 };
105
106 /*
107 * アルファ変更子
108 */
109 class CAlphaChanger: public CCustomizerBase{
110 private:
111 int m_MaterialID; // マテリアル番号
112 float m_AltAlpha; // 代替アルファ
113 public:
114 CCustomizerBase *Duplicate(){ return new CAlphaChanger(*this); }
115 char *Read(char *);
116 void ApplyCustomizer(CMesh *);
117 };
118
119 /*
120 * マテリアル変更子
121 */
122 class CMaterialChanger: public CCustomizerBase{
123 private:
124 vector<int> m_MaterialID; // マテリアル番号
125 MAT8 m_Material; // マテリアル
126 public:
127 CCustomizerBase *Duplicate(){ return new CMaterialChanger(*this); }
128 char *Read(char *);
129 void ApplyCustomizer(CMesh *);
130 };
131
132 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26