プラグイン
TextureLoader.h
Go to the documentation of this file.
1 #pragma once
2 
195 #include "Mix/Plugin/Common.h"
196 #include "Mix/Plugin/IReader.h"
197 
198 namespace Mix{ namespace Plugin{ namespace Graphics{
199 
203  {
205  TP_OK = 0,
209  };
210 
214  {
215  public:
218  enum TYPE
219  {
220  PLANE = 0,
221  CUBE = 1,
222  VOLUME = 2,
223  };
224 
227  enum FLAG
228  {
229  CUBE_POSITIVEX = 0x00000001,
230  CUBE_NEGATIVEX = 0x00000002,
231  CUBE_POSITIVEY = 0x00000004,
232  CUBE_NEGATIVEY = 0x00000008,
233  CUBE_POSITIVEZ = 0x00000010,
234  CUBE_NEGATIVEZ = 0x00000020,
235  };
236 
239  enum FORMAT
240  {
241  R8G8B8A8 = 0,
242 
243  BC1 = 1,
244  BC2 = 2,
245  BC3 = 3,
246  };
247 
248  protected:
250  virtual ~ITextureKit( void ) {}
251 
252  public:
255  virtual void SetType( Mix::Plugin::Graphics::ITextureKit::TYPE type ) = 0;
258  virtual void SetFormat( Mix::Plugin::Graphics::ITextureKit::FORMAT format ) = 0;
262  virtual void SetSize( unsigned int width, unsigned int height ) = 0;
266  virtual void SetDepth( unsigned int depth ) = 0;
269  virtual void SetMipLevels( unsigned int mipLevels ) = 0;
272  virtual void SetFlags( unsigned int flags ) = 0;
273 
279  virtual void* AddSubResourceData( unsigned int memSize, unsigned int memRowPitch, unsigned int memSlicePitch = 0 ) = 0;
285  virtual void AddSubResourceData( const void* pMem, unsigned int memSize, unsigned int memRowPitch, unsigned int memSlicePitch = 0 ) = 0;
286  };
287 
288 }}}
virtual void SetSize(unsigned int width, unsigned int height)=0
サイズを設定します
不正なフォーマット( 継続不可 )
Definition: TextureLoader.h:206
キューブの負方向のY面
Definition: TextureLoader.h:232
各チャンネルが 8Bit の RGBA フォーマット
Definition: TextureLoader.h:241
テクスチャキットインターフェース
Definition: TextureLoader.h:213
BC1 フォーマット
Definition: TextureLoader.h:243
キューブの負方向のZ面
Definition: TextureLoader.h:234
キューブの負方向のX面
Definition: TextureLoader.h:230
ボリュームテクスチャ
Definition: TextureLoader.h:222
FLAG
フラグ列挙定数
Definition: TextureLoader.h:227
virtual void SetMipLevels(unsigned int mipLevels)=0
ミップマップの数を設定します
キューブの正方向のY面
Definition: TextureLoader.h:231
FORMAT
フォーマット列挙定数
Definition: TextureLoader.h:239
サポートされていない
Definition: TextureLoader.h:204
キューブの正方向のZ面
Definition: TextureLoader.h:233
リーダーインターフェースインクルードファイル
ルート
virtual void * AddSubResourceData(unsigned int memSize, unsigned int memRowPitch, unsigned int memSlicePitch=0)=0
サブリソースを追加します
キューブの正方向のX面
Definition: TextureLoader.h:229
システムメモリが不足( 継続不可 )
Definition: TextureLoader.h:207
virtual void SetType(Mix::Plugin::Graphics::ITextureKit::TYPE type)=0
タイプを設定します
キューブテクスチャ
Definition: TextureLoader.h:221
virtual void SetFlags(unsigned int flags)=0
フラグを設定します
TYPE
タイプ列挙定数
Definition: TextureLoader.h:218
成功
Definition: TextureLoader.h:205
BC2 フォーマット
Definition: TextureLoader.h:244
致命的なエラー
Definition: TextureLoader.h:208
virtual void SetDepth(unsigned int depth)=0
深度を設定します
virtual ~ITextureKit(void)
デストラクタ
Definition: TextureLoader.h:250
virtual void SetFormat(Mix::Plugin::Graphics::ITextureKit::FORMAT format)=0
フォーマットを設定します
プレーンテクスチャ
Definition: TextureLoader.h:220
BC3 フォーマット
Definition: TextureLoader.h:245
TEXTURE_PLUGIN_RESULT
テクスチャプラグインリザルト列挙定数
Definition: TextureLoader.h:202