summaryrefslogtreecommitdiff
path: root/src/common.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-26 17:55:49 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-26 17:55:49 +0200
commit66a69fd9f918215f2b00010140c9c360d3e7c035 (patch)
tree04d7fb63407c0dfd302aa887461c44d97b01223b /src/common.hpp
parentbcfefeaf919281911a53c94b91bc7ec016bd6775 (diff)
Redo the water.
Diffstat (limited to 'src/common.hpp')
-rw-r--r--src/common.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common.hpp b/src/common.hpp
index 6aa88d7..bb425e9 100644
--- a/src/common.hpp
+++ b/src/common.hpp
@@ -321,6 +321,7 @@ namespace render {
class state_t {
sf::RenderWindow *window;
+ void render_water(world::world_t *world, rectf_t rect, double time);
void render_tile(world::world_t *world, v2f_t tx, world::tile_t *tile);
void render_layer(world::world_t *world, rect_t<world::coord_t, 2> &sectors, std::list<world::entity_t*> &ents, layer_t layer);
void drender_text(rectf_t rect, std::string str);
@@ -337,7 +338,7 @@ namespace render {
void begin_frame(ntime_t time_, double dt);
void end_frame(void);
- void render(world::world_t *world);
+ void render(world::world_t *world, double time);
void render(double phase, animated_texture_t *anim, rectf_t bounds, sf::Color color = sf::Color::White, bool mirror = false);
void render(double phase, oriented_sprite_t *sprite, rectf_t bounds, float angle);
@@ -392,6 +393,7 @@ namespace game {
void stop(void);
void tick(ntime_t time, double dt);
world::world_t *get_world(void);
+ double get_render_time(void);
void render_interface_to(render::state_t *render);
};