ランタイム
IStaticMesh.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 #include "Mix/Dynamics/IObject.h"
7 
8 namespace Mix{ namespace Dynamics{
9 
13  {
14  protected:
16  virtual ~IStaticMesh( void ) {}
17 
18  public:
21  virtual UInt32 GetPartCount( void ) const = 0;
24  virtual UInt32 GetPolygonCount( UInt32 partIndex ) const = 0;
27  virtual UInt32 GetTotalPolygonCount( void ) const = 0;
30  virtual UInt32 GetMaterialCount( void ) const = 0;
31 
37  virtual UInt32 GetMaterialIndex( UInt32 partIndex, UInt32 polygonIndex ) const = 0;
43  virtual Boolean SetMaterialIndex( UInt32 partIndex, UInt32 polygonIndex, UInt32 materialIndex ) = 0;
50  virtual UInt32 LockMaterialIndices( UInt32 partIndex, UInt32 polygonStartIndex, UInt32 polygonCount, UInt32** ppMaterialIndices ) const = 0;
51 
56  virtual const Mix::Dynamics::MATERIAL& GetMaterial( UInt32 index ) const = 0;
61  virtual Boolean GetMaterial( UInt32 index, Mix::Dynamics::MATERIAL& material ) const = 0;
67  virtual const Mix::Dynamics::MATERIAL& GetMaterial( UInt32 partIndex, UInt32 polygonIndex ) const = 0;
73  virtual Boolean GetMaterial( UInt32 partIndex, UInt32 polygonIndex, Mix::Dynamics::MATERIAL& material ) const = 0;
78  virtual Boolean SetMaterial( UInt32 index, const Mix::Dynamics::MATERIAL& material ) = 0;
84  virtual UInt32 LockMaterials( UInt32 startIndex, UInt32 count, Mix::Dynamics::MATERIAL** ppMaterials ) const = 0;
85  };
86 
87 }}
virtual UInt32 LockMaterialIndices(UInt32 partIndex, UInt32 polygonStartIndex, UInt32 polygonCount, UInt32 **ppMaterialIndices) const =0
ポリゴンのマテリアルインデックス配列を取得します
virtual const Mix::Dynamics::MATERIAL & GetMaterial(void) const =0
マテリアルを取得します
オブジェクトインターフェースインクルードファイル
スタティックメッシュインターフェース
Definition: IStaticMesh.h:12
virtual UInt32 GetTotalPolygonCount(void) const =0
総ポリゴン数を取得します
unsigned int UInt32
符号無し32ビット整数
Definition: Common.h:68
virtual ~IStaticMesh(void)
デストラクタ
Definition: IStaticMesh.h:16
virtual UInt32 GetPolygonCount(UInt32 partIndex) const =0
ポリゴン数を取得します
virtual UInt32 LockMaterials(UInt32 startIndex, UInt32 count, Mix::Dynamics::MATERIAL **ppMaterials) const =0
マテリアル配列を取得します
ミックス
Definition: AtomicValue.h:6
virtual Boolean SetMaterial(UInt32 index, const Mix::Dynamics::MATERIAL &material)=0
マテリアルを設定します
オブジェクトインターフェース
Definition: IObject.h:13
virtual UInt32 GetPartCount(void) const =0
パート数を取得します
virtual UInt32 GetMaterialCount(void) const =0
マテリアル数を取得します
virtual Boolean SetMaterialIndex(UInt32 partIndex, UInt32 polygonIndex, UInt32 materialIndex)=0
ポリゴンのマテリアルインデックスを設定します
BOOL Boolean
32ビットブーリアン
Definition: Common.h:102
virtual UInt32 GetMaterialIndex(UInt32 partIndex, UInt32 polygonIndex) const =0
ポリゴンのマテリアルインデックスを取得します
マテリアル構造体
Definition: Common.h:1882