|
opynsim
Unofficial C++ Documentation
|
#include <mesh.h>
Public Member Functions | |
| Mesh () | |
| MeshTopology | topology () const |
| void | set_topology (MeshTopology) |
| bool | has_vertices () const |
| size_t | num_vertices () const |
| std::vector< Vector3 > | vertices () const |
| void | set_vertices (std::span< const Vector3 >) |
| void | set_vertices (std::initializer_list< Vector3 > il) |
| void | transform_vertices (const std::function< Vector3(Vector3)> &) |
| void | transform_vertices (const Transform &) |
| void | transform_vertices (const Matrix4x4 &) |
| bool | has_normals () const |
| std::vector< Vector3 > | normals () const |
| void | set_normals (std::span< const Vector3 >) |
| void | set_normals (std::initializer_list< Vector3 > il) |
| void | transform_normals (const std::function< Vector3(Vector3)> &) |
| bool | has_tex_coords () const |
| std::vector< Vector2 > | tex_coords () const |
| void | set_tex_coords (std::span< const Vector2 >) |
| void | set_tex_coords (std::initializer_list< Vector2 > il) |
| void | transform_tex_coords (const std::function< Vector2(Vector2)> &) |
| std::vector< Color > | colors () const |
| void | set_colors (std::span< const Color >) |
| void | set_colors (std::initializer_list< Color > il) |
| std::vector< Vector4 > | tangents () const |
| void | set_tangents (std::span< const Vector4 >) |
| void | set_tangents (std::initializer_list< Vector4 > il) |
| size_t | num_indices () const |
| MeshIndicesView | indices () const |
| void | set_indices (MeshIndicesView, MeshUpdateFlags=MeshUpdateFlag::Default) |
| void | set_indices (std::initializer_list< uint32_t > il) |
| void | for_each_indexed_vertex (const std::function< void(Vector3)> &) const |
| void | for_each_indexed_triangle (const std::function< void(Triangle)> &) const |
| Triangle | get_triangle_at (size_t first_index_offset) const |
| std::vector< Vector3 > | indexed_vertices () const |
| const std::optional< AABB > & | bounds () const |
| std::optional< Vector3 > | centroid () const |
| void | clear () |
| size_t | num_submesh_descriptors () const |
| void | push_submesh_descriptor (const SubMeshDescriptor &) |
| const SubMeshDescriptor & | submesh_descriptor_at (size_t) const |
| template<std::ranges::input_range Range> requires std::constructible_from<SubMeshDescriptor, std::ranges::range_value_t<Range>> | |
| void | set_submesh_descriptors (const Range &submesh_descriptors) |
| void | clear_submesh_descriptors () |
| size_t | num_vertex_attributes () const |
| const VertexFormat & | vertex_format () const |
| void | set_vertex_buffer_params (size_t num_vertices, const VertexFormat &) |
| size_t | vertex_buffer_stride () const |
| void | set_vertex_buffer_data (std::span< const uint8_t >, MeshUpdateFlags=MeshUpdateFlag::Default) |
| template<std::ranges::contiguous_range Range> requires BitCastable<typename Range::value_type> | |
| void | set_vertex_buffer_data (const Range &range, MeshUpdateFlags flags=MeshUpdateFlag::Default) |
| void | recalculate_normals () |
| void | recalculate_tangents () |
Friends | |
| class | GraphicsBackend |
| struct | std::hash< Mesh > |
| bool | operator== (const Mesh &, const Mesh &)=default |
| std::ostream & | operator<< (std::ostream &, const Mesh &) |
| osc::Mesh::Mesh | ( | ) |
| const std::optional< AABB > & osc::Mesh::bounds | ( | ) | const |
| std::optional< Vector3 > osc::Mesh::centroid | ( | ) | const |
| void osc::Mesh::clear | ( | ) |
| void osc::Mesh::clear_submesh_descriptors | ( | ) |
| std::vector< Color > osc::Mesh::colors | ( | ) | const |
| void osc::Mesh::for_each_indexed_triangle | ( | const std::function< void(Triangle)> & | ) | const |
| void osc::Mesh::for_each_indexed_vertex | ( | const std::function< void(Vector3)> & | ) | const |
| Triangle osc::Mesh::get_triangle_at | ( | size_t | first_index_offset | ) | const |
| bool osc::Mesh::has_normals | ( | ) | const |
| bool osc::Mesh::has_tex_coords | ( | ) | const |
| bool osc::Mesh::has_vertices | ( | ) | const |
| std::vector< Vector3 > osc::Mesh::indexed_vertices | ( | ) | const |
| MeshIndicesView osc::Mesh::indices | ( | ) | const |
| std::vector< Vector3 > osc::Mesh::normals | ( | ) | const |
| size_t osc::Mesh::num_indices | ( | ) | const |
| size_t osc::Mesh::num_submesh_descriptors | ( | ) | const |
| size_t osc::Mesh::num_vertex_attributes | ( | ) | const |
| size_t osc::Mesh::num_vertices | ( | ) | const |
| void osc::Mesh::push_submesh_descriptor | ( | const SubMeshDescriptor & | ) |
| void osc::Mesh::recalculate_normals | ( | ) |
| void osc::Mesh::recalculate_tangents | ( | ) |
|
inline |
| void osc::Mesh::set_colors | ( | std::span< const Color > | ) |
| void osc::Mesh::set_indices | ( | MeshIndicesView | , |
| MeshUpdateFlags | = MeshUpdateFlag::Default |
||
| ) |
|
inline |
|
inline |
| void osc::Mesh::set_normals | ( | std::span< const Vector3 > | ) |
|
inline |
|
inline |
| void osc::Mesh::set_tangents | ( | std::span< const Vector4 > | ) |
|
inline |
| void osc::Mesh::set_tex_coords | ( | std::span< const Vector2 > | ) |
| void osc::Mesh::set_topology | ( | MeshTopology | ) |
|
inline |
| void osc::Mesh::set_vertex_buffer_data | ( | std::span< const uint8_t > | , |
| MeshUpdateFlags | = MeshUpdateFlag::Default |
||
| ) |
| void osc::Mesh::set_vertex_buffer_params | ( | size_t | num_vertices, |
| const VertexFormat & | |||
| ) |
|
inline |
| void osc::Mesh::set_vertices | ( | std::span< const Vector3 > | ) |
| const SubMeshDescriptor & osc::Mesh::submesh_descriptor_at | ( | size_t | ) | const |
| std::vector< Vector4 > osc::Mesh::tangents | ( | ) | const |
| std::vector< Vector2 > osc::Mesh::tex_coords | ( | ) | const |
| MeshTopology osc::Mesh::topology | ( | ) | const |
| void osc::Mesh::transform_vertices | ( | const Matrix4x4 & | ) |
| void osc::Mesh::transform_vertices | ( | const Transform & | ) |
| size_t osc::Mesh::vertex_buffer_stride | ( | ) | const |
| const VertexFormat & osc::Mesh::vertex_format | ( | ) | const |
| std::vector< Vector3 > osc::Mesh::vertices | ( | ) | const |
|
friend |
|
friend |
|
friend |