set window flag to close instead of default
This commit is contained in:
parent
aab6ff7575
commit
d2fe787cb1
@ -41,8 +41,8 @@ void Engine::createWindow(std::string title,
|
||||
{
|
||||
m_window = new sf::Window(sf::VideoMode(w, h),
|
||||
title,
|
||||
isWindowed ? sf::Style::Default : sf::Style::Fullscreen,
|
||||
sf::ContextSettings(24));
|
||||
isWindowed ? sf::Style::Close : sf::Style::Fullscreen,
|
||||
sf::ContextSettings(24, 8, 0, 3, 3, sf::ContextSettings::Attribute::Core));
|
||||
m_window->setFramerateLimit(60);
|
||||
m_input = new Input(m_window);
|
||||
m_renderer->initGL(w, h);
|
||||
|
@ -17,7 +17,7 @@ int main(){
|
||||
engine.setScene(&scene);
|
||||
engine.start();
|
||||
|
||||
/* GraphNode n1 = GraphNode();
|
||||
/* GraphNode n1 = GraphNode();
|
||||
n1.setValue(1);
|
||||
GraphNode n2 = GraphNode();
|
||||
n2.setValue(2);
|
||||
@ -39,10 +39,10 @@ int main(){
|
||||
std::cout << "Path Size: " << path.size() << std::endl;
|
||||
for(GraphNode* gn: path){
|
||||
std::cout << gn->getValue() << std::endl;
|
||||
}*/
|
||||
}
|
||||
|
||||
Loader::setObjDirectory("../data/");
|
||||
Loader::setMtlDirectory("../data/");
|
||||
Loader::setTexDirectory("../data/");
|
||||
std::vector<Mesh*> meshes = Loader::loadMesh("sword.obj");
|
||||
std::vector<Mesh*> meshes = Loader::loadMesh("sword.obj");*/
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <list>
|
||||
|
||||
#include "system.h"
|
||||
#include "scene.h"
|
||||
#include "scenetree.h"
|
||||
#include "glm/glm.hpp"
|
||||
|
||||
class Input;
|
||||
|
Loading…
x
Reference in New Issue
Block a user