|
| Mesh (MeshID id, AssetManager *asset_manager, VertexDataPtr vertex_data) |
|
| Mesh (MeshID id, AssetManager *asset_manager, VertexSpecification vertex_specification) |
|
void | reset (VertexDataPtr vertex_data) |
|
void | reset (VertexSpecification vertex_specification) |
|
bool | add_skeleton (uint32_t num_joints) |
|
bool | has_skeleton () const |
|
SubMeshPtr | new_submesh (const std::string &name, MaterialID material, MeshArrangement arrangement=MESH_ARRANGEMENT_TRIANGLES) |
| Create a new ranged submesh with the specified material. More...
|
|
SubMeshPtr | new_submesh (const std::string &name, MaterialID material, IndexType index_type, MeshArrangement arrangement=MESH_ARRANGEMENT_TRIANGLES) |
| Create a new indexed submesh with the specified material and index type. More...
|
|
SubMeshPtr | new_submesh (const std::string &name, MaterialID material, IndexDataPtr index_data, MeshArrangement arrangement=MESH_ARRANGEMENT_TRIANGLES) |
| Create a new indexed submesh with shared index data. More...
|
|
SubMeshPtr | new_submesh_as_capsule (const std::string &name, MaterialID material, float diameter, float length, std::size_t segment_count, std::size_t vertical_segment_count, std::size_t ring_count) |
|
SubMeshPtr | new_submesh_as_sphere (const std::string &name, MaterialID material, float diameter, std::size_t slices, std::size_t stacks) |
|
SubMeshPtr | new_submesh_as_icosphere (const std::string &name, MaterialID material, float diameter, uint32_t subdivisions) |
|
SubMeshPtr | new_submesh_as_rectangle (const std::string &name, MaterialID material, float width, float height, const Vec3 &offset=Vec3()) |
|
SubMeshPtr | new_submesh_as_cube (const std::string &name, MaterialID material, float size) |
|
SubMeshPtr | new_submesh_as_box (const std::string &name, MaterialID material, float width, float height, float depth, const Vec3 &offset=Vec3()) |
|
uint32_t | submesh_count () const |
|
bool | has_submesh (const std::string &name) const |
|
SubMeshPtr | find_submesh (const std::string &name) const |
|
SubMeshPtr | find_submesh_with_material (const MaterialPtr &mat) const |
|
std::vector< SubMeshPtr > | find_all_submeshes (const std::string &name) const |
|
std::vector< SubMeshPtr > | find_all_submeshes_with_material (const MaterialPtr &mat) const |
|
SubMeshPtr | first_submesh () const |
|
void | destroy_submesh (const std::string &name) |
|
void | set_material (MaterialPtr material) |
| Apply material to all submeshes.
|
|
void | set_diffuse (const smlt::Colour &colour) |
| Override vertex colour on all vertices.
|
|
void | reverse_winding () |
| Reverse the winding of all submeshes.
|
|
const AABB & | aabb () const |
|
void | normalize () |
|
void | transform_vertices (const smlt::Mat4 &transform) |
|
SubMeshIteratorPair | each_submesh () |
|
void | enable_animation (MeshAnimationType animation_type, uint32_t animation_frames, FrameUnpackerPtr data) |
|
bool | is_animated () const |
|
uint32_t | animation_frames () const |
|
MeshAnimationType | animation_type () const |
|
void | generate_adjacency_info () |
|
bool | has_adjacency_info () const |
|
| DEFINE_SIGNAL (SkeletonAddedSignal, signal_skeleton_added) |
|
SubMeshCreatedCallback & | signal_submesh_created () |
|
SubMeshDestroyedCallback & | signal_submesh_destroyed () |
|
SubMeshMaterialChangedCallback & | signal_submesh_material_changed () |
|
| S_DEFINE_PROPERTY (adjacency_info, &Mesh::adjacency_) |
|
| S_DEFINE_PROPERTY (vertex_data, &Mesh::vertex_data_) |
|
| S_DEFINE_PROPERTY (skeleton, &Mesh::skeleton_) |
|
virtual float | width () const |
|
virtual float | height () const |
|
virtual float | depth () const |
|
virtual float | half_width () const |
|
virtual float | half_height () const |
|
virtual float | half_depth () const |
|
virtual float | diameter () const |
|
virtual float | radius () const |
|
| Asset (AssetManager *manager) |
|
AssetManager & | asset_manager () |
|
const AssetManager & | asset_manager () const |
|
int | age () const |
|
void | set_garbage_collection_method (GarbageCollectMethod method) |
|
void | set_name (const std::string &name) |
|
const std::string & | name () const |
|
bool | has_name () const |
|
virtual bool | init () |
|
virtual void | clean_up () |
|
| Identifiable (MeshID id) |
|
MeshID | id () const |
|
virtual bool | operator== (const Identifiable< MeshID > &rhs) const |
|
virtual bool | operator< (const Identifiable< MeshID > &rhs) const |
|
void | _bind_id_pointer (ResourceTypePtr ptr) |
|
void | _overwrite_id (MeshID new_id) |
|
void | add_sequence (const std::string &name, const std::vector< AnimationSequenceStage > &stages) |
|
void | add_animation (const std::string &name, uint32_t start_frame, uint32_t end_frame, float fps) |
|
void | add_animation (const std::string &name, uint32_t start_frame, uint32_t end_frame) |
|
bool | has_animations () const |
|
uint32_t | animation_count () const |
|
void | set_default_fps (float fps) |
|
float | default_fps () const |
|
Mesh * | set_name_and_get (const std::string &name) |
|