Program Listing for File debug_drawer.h

Return to documentation for file (rootex/core/physics/debug_drawer.h)

#pragma once

#include "common/common.h"
#include "Bullet3D/src/LinearMath/btIDebugDraw.h"

class Material;
class BasicMaterial;

class DebugDrawer : public btIDebugDraw
{
public:
    DebugDrawer() = default;
    DebugDrawer(DebugDrawer&) = delete;
    ~DebugDrawer() = default;

    virtual void drawLine(const btVector3& from, const btVector3& to, const btVector3& color) override;
    virtual void drawContactPoint(const btVector3& pointOnB, const btVector3& normalOnB, btScalar distance, int lifeTime, const btVector3& color) override;
    virtual void reportErrorWarning(const char* warningString) override;
    virtual void draw3dText(const btVector3& location, const char* textString) override;
    virtual void setDebugMode(int debugMode) override;
    virtual int getDebugMode() const override;
};