Удалить draw.hpp
This commit is contained in:
13
draw.hpp
13
draw.hpp
@@ -1,13 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
#include <SFML/Graphics.hpp>
|
|
||||||
#include "data.hpp"
|
|
||||||
|
|
||||||
|
|
||||||
void update_window(sf::RenderWindow& window,std::vector<std::unique_ptr<object>>& objects){
|
|
||||||
window.clear();
|
|
||||||
for(const auto & i : objects){
|
|
||||||
object* obj = i.get();
|
|
||||||
obj->draw(window);
|
|
||||||
}
|
|
||||||
window.display();
|
|
||||||
}
|
|
Reference in New Issue
Block a user