| 123456789101112131415161718192021222324252627282930 |
- #pragma once
- #include <string>
- #include <glm/vec4.hpp>
- namespace WallpaperEngine::Render::Drivers::Output
- {
- class COutputViewport
- {
- public:
- COutputViewport (glm::ivec4 viewport, std::string name, bool single = false);
- virtual ~COutputViewport ();
- glm::ivec4 viewport;
- std::string name;
- /** Whether this viewport is single in the framebuffer or shares space with more viewports */
- bool single;
- /**
- * Activates output's context for drawing
- */
- virtual void makeCurrent () = 0;
- /**
- * Swaps buffers to present data on the viewport
- */
- virtual void swapOutput () = 0;
- };
- }
|