Fix compilation

This commit is contained in:
Benau 2022-11-16 21:21:33 +08:00
parent 0a1e22451b
commit c4306186b1
2 changed files with 9 additions and 3 deletions

View File

@ -23,6 +23,11 @@
using namespace irr; using namespace irr;
#ifdef DEBUG #ifdef DEBUG
#include <IAnimatedMeshSceneNode.h>
#include <ISceneCollisionManager.h>
#include <ISceneManager.h>
#include <ISkinnedMesh.h>
void AbstractRenderer::drawDebugMeshes() const void AbstractRenderer::drawDebugMeshes() const
{ {
std::vector<irr::scene::IAnimatedMeshSceneNode*> debug_meshes = irr_driver->getDebugMeshes(); std::vector<irr::scene::IAnimatedMeshSceneNode*> debug_meshes = irr_driver->getDebugMeshes();
@ -74,15 +79,16 @@ void AbstractRenderer::drawDebugMeshes() const
/** Draws a joint for debugging skeletons. /** Draws a joint for debugging skeletons.
* \param drawline If true draw a line to the parent. * \param drawline If true draw a line to the parent.
* \param drawname If true draw the name of the joint. * \param drawname If true draw the name of the joint.
* \param joint The joint to draw. * \param sjoint The joint to draw.
* \param mesh The mesh whose skeleton is drawn (only used to get * \param mesh The mesh whose skeleton is drawn (only used to get
* all joints to find the parent). * all joints to find the parent).
* \param id Index, which (%4) determines the color to use. * \param id Index, which (%4) determines the color to use.
*/ */
void AbstractRenderer::drawJoint(bool drawline, bool drawname, void AbstractRenderer::drawJoint(bool drawline, bool drawname,
scene::ISkinnedMesh::SJoint* joint, void* sjoint,
scene::ISkinnedMesh* mesh, int id) const scene::ISkinnedMesh* mesh, int id) const
{ {
scene::ISkinnedMesh::SJoint* joint = (scene::ISkinnedMesh::SJoint*)sjoint;
scene::ISkinnedMesh::SJoint* parent = NULL; scene::ISkinnedMesh::SJoint* parent = NULL;
const core::array< scene::ISkinnedMesh::SJoint * >& joints const core::array< scene::ISkinnedMesh::SJoint * >& joints
= mesh->getAllJoints(); = mesh->getAllJoints();

View File

@ -65,7 +65,7 @@ protected:
void drawDebugMeshes() const; void drawDebugMeshes() const;
void drawJoint(bool drawline, bool drawname, void drawJoint(bool drawline, bool drawname,
irr::scene::ISkinnedMesh::SJoint* joint, void* sjoint,
irr::scene::ISkinnedMesh* mesh, int id) const; irr::scene::ISkinnedMesh* mesh, int id) const;
#endif #endif