OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::DynamicMesh Class Reference

#include <DynamicMesh.hpp>

Inherits s3d::Mesh.

Public Member Functions

SIV3D_NODISCARD_CXX20 DynamicMesh ()=default
 
SIV3D_NODISCARD_CXX20 DynamicMesh (size_t vertexCount, size_t triangleCount)
 
SIV3D_NODISCARD_CXX20 DynamicMesh (const MeshData &meshData)
 
bool fill (const MeshData &meshData)
 
bool fill (const Array< Vertex3D > &vertices)
 
bool fillSubRange (size_t offset, const Array< Vertex3D > &vertices)
 
bool fillSubRange (size_t offset, const Vertex3D *vertices, size_t count)
 
bool fill (const Array< TriangleIndex32 > &indices)
 
void swap (DynamicMesh &other) noexcept
 
- Public Member Functions inherited from s3d::Mesh
SIV3D_NODISCARD_CXX20 Mesh ()
 
SIV3D_NODISCARD_CXX20 Mesh (const MeshData &meshData)
 
virtual ~Mesh ()
 
size_t num_vertices () const
 
size_t num_triangles () const
 
Sphere boundingSphere () const
 
Box boundingBox () const
 
void draw (const ColorF &color=Palette::White) const
 
void draw (double x, double y, double z, const ColorF &color=Palette::White) const
 
void draw (const Vec3 &pos, const ColorF &color=Palette::White) const
 
void draw (double x, double y, double z, const Quaternion &rotation, const ColorF &color=Palette::White) const
 
void draw (const Vec3 &pos, const Quaternion &rotation, const ColorF &color=Palette::White) const
 
void draw (const Mat4x4 &mat, const ColorF &color=Palette::White) const
 
void draw (const PhongMaterial &material) const
 
void draw (double x, double y, double z, const PhongMaterial &material) const
 
void draw (const Vec3 &pos, const PhongMaterial &material) const
 
void draw (double x, double y, double z, const Quaternion &rotation, const PhongMaterial &material) const
 
void draw (const Vec3 &pos, const Quaternion &rotation, const PhongMaterial &material) const
 
void draw (const Mat4x4 &mat, const PhongMaterial &material) const
 
void draw (const Texture &texture, const ColorF &color=Palette::White) const
 
void draw (double x, double y, double z, const Texture &texture, const ColorF &color=Palette::White) const
 
void draw (const Vec3 &pos, const Texture &texture, const ColorF &color=Palette::White) const
 
void draw (double x, double y, double z, const Quaternion &rotation, const Texture &texture, const ColorF &color=Palette::White) const
 
void draw (const Vec3 &pos, const Quaternion &rotation, const Texture &texture, const ColorF &color=Palette::White) const
 
void draw (const Mat4x4 &mat, const Texture &texture, const ColorF &color=Palette::White) const
 
void draw (const Texture &texture, const PhongMaterial &material) const
 
void draw (double x, double y, double z, const Texture &texture, const PhongMaterial &material) const
 
void draw (const Vec3 &pos, const Texture &texture, const PhongMaterial &material) const
 
void draw (double x, double y, double z, const Quaternion &rotation, const Texture &texture, const PhongMaterial &material) const
 
void draw (const Vec3 &pos, const Quaternion &rotation, const Texture &texture, const PhongMaterial &material) const
 
void draw (const Mat4x4 &mat, const Texture &texture, const PhongMaterial &material) const
 
void draw (const TextureRegion &textureRegion, const ColorF &color=Palette::White) const
 
void draw (double x, double y, double z, const TextureRegion &textureRegion, const ColorF &color=Palette::White) const
 
void draw (const Vec3 &pos, const TextureRegion &textureRegion, const ColorF &color=Palette::White) const
 
void draw (double x, double y, double z, const Quaternion &rotation, const TextureRegion &textureRegion, const ColorF &color=Palette::White) const
 
void draw (const Vec3 &pos, const Quaternion &rotation, const TextureRegion &textureRegion, const ColorF &color=Palette::White) const
 
void draw (const Mat4x4 &mat, const TextureRegion &textureRegion, const ColorF &color=Palette::White) const
 
void draw (const TextureRegion &textureRegion, const PhongMaterial &material) const
 
void draw (double x, double y, double z, const TextureRegion &textureRegion, const PhongMaterial &material) const
 
void draw (const Vec3 &pos, const TextureRegion &textureRegion, const PhongMaterial &material) const
 
void draw (double x, double y, double z, const Quaternion &rotation, const TextureRegion &textureRegion, const PhongMaterial &material) const
 
void draw (const Vec3 &pos, const Quaternion &rotation, const TextureRegion &textureRegion, const PhongMaterial &material) const
 
void draw (const Mat4x4 &mat, const TextureRegion &textureRegion, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, double x, double y, double z, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Vec3 &pos, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, double x, double y, double z, const Quaternion &rotation, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Vec3 &pos, const Quaternion &rotation, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Mat4x4 &mat, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, double x, double y, double z, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Vec3 &pos, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, double x, double y, double z, const Quaternion &rotation, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Vec3 &pos, const Quaternion &rotation, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Mat4x4 &mat, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Texture &texture, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, double x, double y, double z, const Texture &texture, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Vec3 &pos, const Texture &texture, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, double x, double y, double z, const Quaternion &rotation, const Texture &texture, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Vec3 &pos, const Quaternion &rotation, const Texture &texture, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Mat4x4 &mat, const Texture &texture, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Texture &texture, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, double x, double y, double z, const Texture &texture, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Vec3 &pos, const Texture &texture, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, double x, double y, double z, const Quaternion &rotation, const Texture &texture, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Vec3 &pos, const Quaternion &rotation, const Texture &texture, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Mat4x4 &mat, const Texture &texture, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const TextureRegion &textureRegion, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, double x, double y, double z, const TextureRegion &textureRegion, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Vec3 &pos, const TextureRegion &textureRegion, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, double x, double y, double z, const Quaternion &rotation, const TextureRegion &textureRegion, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Vec3 &pos, const Quaternion &rotation, const TextureRegion &textureRegion, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Mat4x4 &mat, const TextureRegion &textureRegion, const ColorF &color=Palette::White) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const TextureRegion &textureRegion, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, double x, double y, double z, const TextureRegion &textureRegion, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Vec3 &pos, const TextureRegion &textureRegion, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, double x, double y, double z, const Quaternion &rotation, const TextureRegion &textureRegion, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Vec3 &pos, const Quaternion &rotation, const TextureRegion &textureRegion, const PhongMaterial &material) const
 
void drawSubset (uint32 startTriangle, uint32 triangleCount, const Mat4x4 &mat, const TextureRegion &textureRegion, const PhongMaterial &material) const
 
void swap (Mesh &other) noexcept
 
- Public Member Functions inherited from s3d::AssetHandle< Mesh >
SIV3D_NODISCARD_CXX20 AssetHandle ()
 
SIV3D_NODISCARD_CXX20 AssetHandle (std::shared_ptr< AssetIDWrapperType > &&id)
 
IDType id () const noexcept
 アセットの内部管理 ID を返します。 More...
 
bool isEmpty () const noexcept
 アセットが空であるかを返します。 More...
 
 operator bool () const noexcept
 アセットが空でないかを返します。 More...
 
bool operator== (const AssetHandle &other) const noexcept
 2 つのアセットが同じオブジェクトであるかを返します。 More...
 
bool operator!= (const AssetHandle &other) const noexcept
 2 つのアセットが異なるオブジェクトであるかを返します。 More...
 
void release ()
 このハンドルが管理するアセットを解放します。 More...
 

Additional Inherited Members

- Public Types inherited from s3d::AssetHandle< Mesh >
using AssetIDWrapperType = AssetIDWrapper< AssetHandle >
 アセット ID ラッパー型 More...
 
using IDType = typename AssetIDWrapperType::IDType
 アセット ID 型 More...
 
- Protected Member Functions inherited from s3d::Mesh
SIV3D_NODISCARD_CXX20 Mesh (Dynamic, size_t vertexCount, size_t triangleCount)
 
SIV3D_NODISCARD_CXX20 Mesh (Dynamic, const MeshData &meshData)
 
- Protected Attributes inherited from s3d::AssetHandle< Mesh >
std::shared_ptr< AssetIDWrapperTypem_handle
 

Constructor & Destructor Documentation

◆ DynamicMesh() [1/3]

SIV3D_NODISCARD_CXX20 s3d::DynamicMesh::DynamicMesh ( )
default

◆ DynamicMesh() [2/3]

SIV3D_NODISCARD_CXX20 s3d::DynamicMesh::DynamicMesh ( size_t  vertexCount,
size_t  triangleCount 
)

◆ DynamicMesh() [3/3]

SIV3D_NODISCARD_CXX20 s3d::DynamicMesh::DynamicMesh ( const MeshData meshData)
explicit

Member Function Documentation

◆ fill() [1/3]

bool s3d::DynamicMesh::fill ( const Array< TriangleIndex32 > &  indices)

◆ fill() [2/3]

bool s3d::DynamicMesh::fill ( const Array< Vertex3D > &  vertices)

◆ fill() [3/3]

bool s3d::DynamicMesh::fill ( const MeshData meshData)

◆ fillSubRange() [1/2]

bool s3d::DynamicMesh::fillSubRange ( size_t  offset,
const Array< Vertex3D > &  vertices 
)

◆ fillSubRange() [2/2]

bool s3d::DynamicMesh::fillSubRange ( size_t  offset,
const Vertex3D vertices,
size_t  count 
)

◆ swap()

void s3d::DynamicMesh::swap ( DynamicMesh other)
noexcept

The documentation for this class was generated from the following file: