#include <PhxGraphicsEngine.h>
Inheritance diagram for Phx::GraphicsEngine::Geometry:

Public Member Functions | |
| virtual void | mesh (const Ptr< const MeshDescription > &mesh)=0 |
| Sets the mesh that is attached to this Geometry. | |
| virtual Ptr< const MeshDescription > | mesh (void) const =0 |
| Returns the current description of the mesh for this geometry. | |
| virtual void | material (uint32_t index, const Ptr< const MaterialDescription > &material)=0 |
| Sets the material used to be used for a particular portion of the model during rendering. | |
| virtual Ptr< const MaterialDescription > | material (uint32_t index) const =0 |
| Returns the MaterialDescription used for the part of the mesh corresponding to the given index. | |
| const String & | name (void) const |
| Returns the name of this geometry, as it was set when the Geometry was created. | |
Protected Member Functions | |
| void | setName (const String &name) |
|
|
Returns the MaterialDescription used for the part of the mesh corresponding to the given index.
|
|
||||||||||||
|
Sets the material used to be used for a particular portion of the model during rendering. The materials are not directly associated to the mesh. The component names are mapped to mesh parts by the engine based on implementation-dependent interpretation of the index. Note that because of the implementation-dependence of the mapping from indices to actual mesh parts, misconfigured meshes may result in replaced textures affecting the wrong areas. Thus, if a modified material is not showing up, or is not being placed on the right part of a mesh, verify that the mesh is correctly exported and that its subparts corresponding to each material are correctly recognized by the underlying graphics engine.
|
|
|
Sets the mesh that is attached to this Geometry.
|
1.4.2