ttt3d/src/System.hpp

46 lines
1.2 KiB
C++
Raw Normal View History

2018-12-08 19:39:23 +01:00
/*
* Copyright (C) 2018 Ortega Froysa, Nicolás <nortega@themusicinnoise.net>
* Author: Ortega Froysa, Nicolás <nortega@themusicinnoise.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "Logger.hpp"
2018-12-17 11:27:54 +01:00
#include "Shader.hpp"
2018-12-08 19:39:23 +01:00
#include <SDL2/SDL.h>
#include <memory>
#include <GL/glew.h>
#include <GL/gl.h>
class System {
public:
System();
~System();
void run();
static std::unique_ptr<Logger> logger;
private:
void syncInputs();
SDL_Window *window;
SDL_GLContext glcontext;
2018-12-17 11:27:54 +01:00
std::unique_ptr<Shader> shader;
2018-12-08 19:39:23 +01:00
bool running;
};