From 26806791c9b282272eb68f4f45693b57cdb3c115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Wed, 20 Apr 2016 18:07:24 +0200 Subject: [PATCH] =?UTF-8?q?O=C3=B9=20est=20pass=C3=A9=20le=20lissage=20=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/manager.cpp | 5 ++++- src/resource_manager.cpp | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/manager.cpp b/src/manager.cpp index 959ffa4..e508618 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -28,7 +28,10 @@ Manager::Manager() : title(sf::String(L"")), previous_time(sf::seconds(0)), desktop.LoadThemeFromFile("res/gui.theme"); // création de la fenêtre du jeu - window.create(sf::VideoMode(704, 480), "Skizzle", sf::Style::Default); + window.create( + sf::VideoMode(704, 480), "Skizzle", sf::Style::Default, + sf::ContextSettings(0, 0, 1) + ); // FIXME: après avoir supprimé ::useGUIView(), supprimer ceci // récupération de la vue par défaut comme vue du gui diff --git a/src/resource_manager.cpp b/src/resource_manager.cpp index 2b74aaf..2305074 100644 --- a/src/resource_manager.cpp +++ b/src/resource_manager.cpp @@ -93,6 +93,8 @@ std::shared_ptr ResourceManager::getTexture(std::string name) { // on transfère l'image vers le GPU auto texture = std::shared_ptr(new sf::Texture); + texture->setSmooth(true); + std::cout << "Création de la texture " << name << " : "; if (texture->loadFromImage(*image)) {