mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Irrlicht: Get rid of obsolete setDebugName
(#15541)
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
23e502fa0e
commit
fef28aced9
68 changed files with 20 additions and 322 deletions
|
@ -24,12 +24,7 @@ class CIndexBuffer final : public IIndexBuffer
|
|||
{
|
||||
public:
|
||||
//! Default constructor for empty buffer
|
||||
CIndexBuffer()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
setDebugName("CIndexBuffer");
|
||||
#endif
|
||||
}
|
||||
CIndexBuffer() {}
|
||||
|
||||
video::E_INDEX_TYPE getType() const override
|
||||
{
|
||||
|
|
|
@ -22,9 +22,6 @@ public:
|
|||
CMeshBuffer() :
|
||||
PrimitiveType(EPT_TRIANGLES)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
setDebugName("CMeshBuffer");
|
||||
#endif
|
||||
Vertices = new CVertexBuffer<T>();
|
||||
Indices = new SIndexBuffer();
|
||||
}
|
||||
|
|
|
@ -24,12 +24,7 @@ class CVertexBuffer final : public IVertexBuffer
|
|||
{
|
||||
public:
|
||||
//! Default constructor for empty buffer
|
||||
CVertexBuffer()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
setDebugName("CVertexBuffer");
|
||||
#endif
|
||||
}
|
||||
CVertexBuffer() {}
|
||||
|
||||
const void *getData() const override
|
||||
{
|
||||
|
|
|
@ -34,10 +34,6 @@ public:
|
|||
AlignLeft(EGUIA_UPPERLEFT), AlignRight(EGUIA_UPPERLEFT), AlignTop(EGUIA_UPPERLEFT), AlignBottom(EGUIA_UPPERLEFT),
|
||||
Environment(environment), Type(type)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
setDebugName("IGUIElement");
|
||||
#endif
|
||||
|
||||
// if we were given a parent to attach to
|
||||
if (parent) {
|
||||
parent->addChildToEnd(this);
|
||||
|
|
|
@ -136,31 +136,6 @@ public:
|
|||
return ReferenceCounter;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
//! Returns the debug name of the object.
|
||||
/** The Debugname may only be set and changed by the object
|
||||
itself. This method should only be used in Debug mode.
|
||||
\return Returns a string, previously set by setDebugName(); */
|
||||
const c8 *getDebugName() const
|
||||
{
|
||||
return DebugName;
|
||||
}
|
||||
|
||||
protected:
|
||||
//! Sets the debug name of the object.
|
||||
/** The Debugname may only be set and changed by the object
|
||||
itself. This method should only be used in Debug mode.
|
||||
\param newName: New debug name to set. */
|
||||
void setDebugName(const c8 *newName)
|
||||
{
|
||||
DebugName = newName;
|
||||
}
|
||||
|
||||
private:
|
||||
//! The debug name.
|
||||
const c8 *DebugName = nullptr;
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
||||
//! The reference counter. Mutable to do reference counting on const objects.
|
||||
|
|
|
@ -21,9 +21,6 @@ struct SAnimatedMesh final : public IAnimatedMesh
|
|||
SAnimatedMesh(scene::IMesh *mesh = 0, scene::E_ANIMATED_MESH_TYPE type = scene::EAMT_UNKNOWN) :
|
||||
IAnimatedMesh(), FramesPerSecond(25.f), Type(type)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
setDebugName("SAnimatedMesh");
|
||||
#endif
|
||||
addMesh(mesh);
|
||||
recalculateBoundingBox();
|
||||
}
|
||||
|
|
|
@ -17,12 +17,7 @@ namespace scene
|
|||
struct SMesh final : public IMesh
|
||||
{
|
||||
//! constructor
|
||||
SMesh()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
setDebugName("SMesh");
|
||||
#endif
|
||||
}
|
||||
SMesh() {}
|
||||
|
||||
//! destructor
|
||||
virtual ~SMesh()
|
||||
|
|
|
@ -22,9 +22,6 @@ struct SSkinMeshBuffer final : public IMeshBuffer
|
|||
VertexType(vt), PrimitiveType(EPT_TRIANGLES),
|
||||
BoundingBoxNeedsRecalculated(true)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
setDebugName("SSkinMeshBuffer");
|
||||
#endif
|
||||
Vertices_Tangents = new SVertexBufferTangents();
|
||||
Vertices_2TCoords = new SVertexBufferLightMap();
|
||||
Vertices_Standard = new SVertexBuffer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue