Replacing Ref-System with unique_ptr<T>
Adding code Goals to README.md
This commit is contained in:
parent
1bc396c4b2
commit
bdf5b25b28
3 changed files with 198 additions and 187 deletions
|
@ -16,7 +16,8 @@ public:
|
|||
|
||||
void body() override {
|
||||
std::cout << "Body\n";
|
||||
//Rectangle(100, 100, sf::Color(250,250,250));
|
||||
Rectangle(400,400, sf::Color(20,20,120));
|
||||
Rectangle(100, 100, sf::Color(250,250,250));
|
||||
Rectangle(10,20, sf::Color(120,120,120));
|
||||
}
|
||||
};
|
||||
|
@ -27,8 +28,8 @@ int main(int argc, char** argv) {
|
|||
sf::RenderWindow window(sf::VideoMode({800, 600}), "Hello World!");
|
||||
window.setFramerateLimit(60);
|
||||
|
||||
cigus::OriginRef<UI::View> view = cigus::OriginRef<UI::View>(new NewView);
|
||||
UI::Renderer renderer(view);
|
||||
const auto view = new NewView();
|
||||
const UI::Renderer renderer(view);
|
||||
|
||||
while (window.isOpen()) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue