Added AsloEngine 0.9.0 to Repository
This commit is contained in:
parent
d017dd84b3
commit
881e6c70f2
60 changed files with 2648 additions and 0 deletions
41
asloengine/headers/scene.hpp
Executable file
41
asloengine/headers/scene.hpp
Executable file
|
|
@ -0,0 +1,41 @@
|
|||
#pragma once
|
||||
|
||||
#include <SFML/Graphics.hpp>
|
||||
#include "gameobject.hpp"
|
||||
|
||||
namespace asloengine
|
||||
{
|
||||
|
||||
typedef std::vector<GameObject *> Layer;
|
||||
|
||||
class Scene
|
||||
{
|
||||
|
||||
public:
|
||||
std::string name = "nonamescene";
|
||||
sf::RenderWindow *scene_window;
|
||||
std::vector<Layer> layers;
|
||||
std::vector<Layer> fixed_layers;
|
||||
sf::FloatRect camera_2d_rect;
|
||||
bool needs_clean = false;
|
||||
|
||||
Scene(std::string _name);
|
||||
|
||||
void draw();
|
||||
void load();
|
||||
void start(sf::RenderWindow *window);
|
||||
void update(float delta_time);
|
||||
void clean();
|
||||
void destroy();
|
||||
|
||||
void move_camera(sf::Vector2f _move);
|
||||
|
||||
// Custom Derived Implementations
|
||||
virtual void on_load();
|
||||
virtual void on_update(float delta_time);
|
||||
virtual void on_post_update(float delta_time);
|
||||
virtual void on_destroy();
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue