PixelLightAPI
.
|
An mesh is a special scene node that has a 3D mesh attached to it by default. More...
#include <SNMesh.h>
Public Types | |
enum | EFlags { NoAutomaticBoundingBox = 1<<10, LoadAtOnce = 1<<11, DynamicMesh = 1<<12, GenerateStrips = 1<<13, CalculateNormals = 1<<14, CalculateTSVs = 1<<15 } |
Scene node flags (SceneNode flags extension) More... | |
Public Member Functions | |
pl_enum (EFlags) pl_enum_base(SceneNode | |
Scene node debug flags (SceneNode debug flags extension) | |
PLS_API PLCore::String | GetSkin () const |
PLS_API void | SetSkin (const PLCore::String &sValue) |
virtual PLS_API void | SetFlags (PLCore::uint32 nValue) |
PLS_API | SNMesh () |
Default constructor. | |
virtual PLS_API | ~SNMesh () |
Destructor. | |
PLS_API bool | LoadMesh (const PLCore::String &sFilename, const PLCore::String &sParams="", const PLCore::String &sMethod="") |
Loads a mesh. | |
PLS_API bool | LoadSkin (const PLCore::String &sFilename, const PLCore::String &sParams="", const PLCore::String &sMethod="") |
Loads a skin. | |
PLS_API bool | SaveSkin (const PLCore::String &sFilename, const PLCore::String &sParams="", const PLCore::String &sMethod="") |
Saves the skin. | |
PLS_API bool | UnloadMesh () |
Unloads the current mesh. | |
PLS_API bool | GetSkeletonJointWorldPosition (const PLCore::String &sJointName, PLMath::Vector3 &vPosition) |
virtual PLS_API PLMesh::MeshHandler * | GetMeshHandler () override |
Returns a pointer to the mesh handler. | |
virtual PLS_API void | DrawDebug (PLRenderer::Renderer &cRenderer, const VisNode *pVisNode=nullptr) override |
This function is called when the debug parts of the scene are drawn. | |
Protected Member Functions | |
virtual PLS_API void | MeshInitFunction () |
This function is called after the mesh handler loads a mesh. | |
virtual PLS_API void | MeshDeInitFunction () |
This function is called after the mesh handler unloads a mesh. | |
virtual PLS_API void | DeInitFunction () override |
This function is called when the scene node gets de-initialized. |
An mesh is a special scene node that has a 3D mesh attached to it by default.
Scene node flags (SceneNode flags extension)
Reimplemented from PLScene::SceneNode.
PLS_API PLScene::SNMesh::SNMesh | ( | ) |
Default constructor.
virtual PLS_API PLScene::SNMesh::~SNMesh | ( | ) | [virtual] |
Destructor.
PLScene::SNMesh::pl_enum | ( | EFlags | ) | [inline] |
Scene node debug flags (SceneNode debug flags extension)
< Draw wireframe
< Draw vertices
< Draw tangents (red = x/u)
< Draw binormals (green = y/v)
< Draw normals (blue = z/w)
< Draw vertex numbers
< Draw joints
< Draw joint names
< Draw skeleton
< Draw anchor points
Reimplemented from PLScene::SceneNode.
PLS_API PLCore::String PLScene::SNMesh::GetSkin | ( | ) | const |
PLS_API void PLScene::SNMesh::SetSkin | ( | const PLCore::String & | sValue | ) |
virtual PLS_API void PLScene::SNMesh::SetFlags | ( | PLCore::uint32 | nValue | ) | [virtual] |
Reimplemented from PLScene::SceneNode.
PLS_API bool PLScene::SNMesh::LoadMesh | ( | const PLCore::String & | sFilename, |
const PLCore::String & | sParams = "" , |
||
const PLCore::String & | sMethod = "" |
||
) |
Loads a mesh.
[in] | sFilename | Mesh filename to load |
[in] | sParams | Optional load method parameters, can be an empty string |
[in] | sMethod | Optional name of the load method to use, can be an empty string |
PLS_API bool PLScene::SNMesh::LoadSkin | ( | const PLCore::String & | sFilename, |
const PLCore::String & | sParams = "" , |
||
const PLCore::String & | sMethod = "" |
||
) |
Loads a skin.
[in] | sFilename | Skin filename to load, if empty, the default materials of the given mesh are used |
[in] | sParams | Optional load method parameters, can be an empty string |
[in] | sMethod | Optional name of the load method to use, can be an empty string |
PLS_API bool PLScene::SNMesh::SaveSkin | ( | const PLCore::String & | sFilename, |
const PLCore::String & | sParams = "" , |
||
const PLCore::String & | sMethod = "" |
||
) |
Saves the skin.
[in] | sFilename | Skin filename |
[in] | sParams | Optional save method parameters, can be an empty string |
[in] | sMethod | Optional name of the save method to use, can be an empty string |
PLS_API bool PLScene::SNMesh::UnloadMesh | ( | ) |
Unloads the current mesh.
PLS_API bool PLScene::SNMesh::GetSkeletonJointWorldPosition | ( | const PLCore::String & | sJointName, |
PLMath::Vector3 & | vPosition | ||
) |
virtual PLS_API void PLScene::SNMesh::MeshInitFunction | ( | ) | [protected, virtual] |
This function is called after the mesh handler loads a mesh.
virtual PLS_API void PLScene::SNMesh::MeshDeInitFunction | ( | ) | [protected, virtual] |
This function is called after the mesh handler unloads a mesh.
virtual PLS_API PLMesh::MeshHandler* PLScene::SNMesh::GetMeshHandler | ( | ) | [override, virtual] |
Returns a pointer to the mesh handler.
Reimplemented from PLScene::SceneNode.
virtual PLS_API void PLScene::SNMesh::DrawDebug | ( | PLRenderer::Renderer & | cRenderer, |
const VisNode * | pVisNode = nullptr |
||
) | [override, virtual] |
This function is called when the debug parts of the scene are drawn.
[in] | cRenderer | The used renderer |
[in] | pVisNode | The current visibility node of this scene node, can be a null pointer |
Reimplemented from PLScene::SceneNode.
Reimplemented in PLPhysics::SNRagdoll.
virtual PLS_API void PLScene::SNMesh::DeInitFunction | ( | ) | [override, protected, virtual] |
This function is called when the scene node gets de-initialized.
Reimplemented from PLScene::SceneNode.
Reimplemented in PLPhysics::SNRagdoll.
|