SDLPP: Scene - add visitCollisions function

This commit is contained in:
2021-04-25 16:07:46 +02:00
parent 5b96de0d9d
commit 7206dbf7c3
5 changed files with 10 additions and 3 deletions
+2
View File
@@ -9,6 +9,7 @@
#include "sdlpp_common.hpp"
#include "sdlpp_renderer.hpp"
#include "sdlpp_renderobject.hpp"
#include "sdlpp_visitor.hpp"
namespace SDLPP {
class SDLPPSCOPE Scene {
@@ -28,6 +29,7 @@ public:
void updateScene();
std::vector< std::shared_ptr< RenderObject > >
getCollisions( RenderObject &r );
void visitCollisions( RenderObject &r, Visitor &v );
std::vector< std::shared_ptr< RenderObject > >
getCollisions( RenderObject &r,
const std::unordered_set< int > &objectIDs );