3D モデル
More...
#include <Model.hpp>
Inherits s3d::AssetHandle< Model >.
◆ Model() [1/2]
SIV3D_NODISCARD_CXX20 s3d::Model::Model |
( |
| ) |
|
◆ Model() [2/2]
3D モデルを読み込みます。
- Parameters
-
path | ファイルのパス(対応している形式は Wavefront OBJ) |
colorOption | 色空間 |
◆ ~Model()
virtual s3d::Model::~Model |
( |
| ) |
|
|
virtual |
◆ boundingBox()
const Box& s3d::Model::boundingBox |
( |
| ) |
const |
|
noexcept |
3D モデルのバウンディングボックスを返します。
- Returns
- 3D モデルのバウンディングボックス
◆ boundingSphere()
const Sphere& s3d::Model::boundingSphere |
( |
| ) |
const |
|
noexcept |
3D モデルのバウンディングスフィアを返します。
- Returns
- 3D モデルのバウンディングスフィア
◆ diffuseTextureNames()
Array<String> s3d::Model::diffuseTextureNames |
( |
| ) |
const |
3D モデルに登録されているディフューズテクスチャの名前(パス)を返します。
- Returns
- 3D モデルに登録されているディフューズテクスチャの名前(パス)一覧
◆ draw() [1/6]
void s3d::Model::draw |
( |
| ) |
const |
◆ draw() [2/6]
void s3d::Model::draw |
( |
const Mat4x4 & |
mat | ) |
const |
◆ draw() [3/6]
void s3d::Model::draw |
( |
const Vec3 & |
pos | ) |
const |
◆ draw() [4/6]
void s3d::Model::draw |
( |
const Vec3 & |
pos, |
|
|
const Quaternion & |
rotation |
|
) |
| const |
◆ draw() [5/6]
void s3d::Model::draw |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| const |
3D モデルを描画します。
- Parameters
-
x | ワールドの X 座標 |
y | ワールドの Y 座標 |
z | ワールドの Z 座標 |
◆ draw() [6/6]
void s3d::Model::draw |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
const Quaternion & |
rotation |
|
) |
| const |
3D モデルを描画します。
- Parameters
-
x | ワールドの X 座標 |
y | ワールドの Y 座標 |
z | ワールドの Z 座標 |
rotation | 回転 |
◆ materials()
3D モデルに登録されているマテリアル一覧を返します。
- Returns
- 3D モデルに登録されているマテリアル一覧
◆ objects()
3D モデルを構成するモデルパーツ一覧を返します。
- Returns
- 3D モデルを構成するモデルパーツ一覧
◆ RegisterDiffuseTextures()
3D モデルに含まれるテクスチャ情報をもとに、テクスチャアセットを登録します。
- Parameters
-
model | 3D モデル |
textureDesc | テクスチャの設定 |
- Returns
- テクスチャアセットの登録に成功した場合 true, それ以外の場合は false
◆ swap()
void s3d::Model::swap |
( |
Model & |
other | ) |
|
|
noexcept |
別の 3D モデルと中身を交換します。
- Parameters
-
The documentation for this class was generated from the following file: