12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #ifndef __PHYSICSNODES_DEBUGNODE_H__
- #define __PHYSICSNODES_DEBUGNODE_H__
- #include "extensions/ExtensionMacros.h"
- #include "2d/CCDrawNode.h"
- #include "extensions/ExtensionExport.h"
- struct cpSpace;
- NS_CC_EXT_BEGIN
- class CC_EX_DLL PhysicsDebugNode : public DrawNode
- {
- public:
-
- static PhysicsDebugNode* create(cpSpace *space);
-
- PhysicsDebugNode();
-
- virtual ~PhysicsDebugNode();
-
- cpSpace* getSpace() const;
- void setSpace(cpSpace *space);
-
-
- virtual void draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) override;
- protected:
- cpSpace *_spacePtr;
- };
- NS_CC_EXT_END
- #endif
|