hydrangea/include/scene.h

33 lines
524 B
C++

#include <vector>
#include "box2d/b2_math.h"
#include "box2d/b2_world.h"
#ifndef HYDRANGEA_SCENE_H
#define HYDRANGEA_SCENE_H
class Node;
class Scene
{
private:
// Members
std::vector<Node*> node_tree;
public:
// Constructor and Destructor
Scene();
~Scene();
// Methods
void Update();
void AppendNode(Node* node);
// Members
b2Vec2 b_gravity = b2Vec2(0, -10);
b2World *b_world;
int velocity_iterations = 6;
int position_iterations = 2;
};
#endif //HYDRANGEA_SCENE_H