/* * Copyright (C) 2016 Simon Fels * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . * */ #ifndef ANBOX_GRAPHICS_GL_RENDERER_SERVER_H_ #define ANBOX_GRAPHICS_GL_RENDERER_SERVER_H_ #include #include class Renderer; namespace anbox { namespace input { class Manager; } // namespace input namespace wm { class Manager; } // namespace wm namespace graphics { class LayerComposer; class GLRendererServer { public: struct Config { enum class Driver { // Use the GL driver provided by the host operating system Host, // Use a builtin software based GL driver implementation without any support // for hardware acceleration. Software, }; Driver driver; bool single_window; }; GLRendererServer(const Config &config, const std::shared_ptr &wm); ~GLRendererServer(); std::shared_ptr renderer() const { return renderer_; } private: std::shared_ptr renderer_; std::shared_ptr wm_; std::shared_ptr composer_; }; } // namespace graphics } // namespace anbox #endif