SDLPP: Scene - add visitCollisions function
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user