mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
2b9389202e
This header doesn't actually make use of MathUtil.h within itself, so this can be removed. Many other source files used VideoCommon.h as an indirect include to include MathUtil.h, so these includes can also be adjusted. While we're at it, we can also migrate valid inclusions of VideoCommon.h into cpp files where it can feasibly be done to minimize propagating it via other headers.
40 lines
828 B
C++
40 lines
828 B
C++
// Copyright 2015 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
#include "Common/MathUtil.h"
|
|
|
|
class AbstractTexture;
|
|
class GLContext;
|
|
struct WindowSystemInfo;
|
|
|
|
class SWOGLWindow
|
|
{
|
|
public:
|
|
~SWOGLWindow();
|
|
|
|
GLContext* GetContext() const { return m_gl_context.get(); }
|
|
bool IsHeadless() const;
|
|
|
|
// Image to show, will be swapped immediately
|
|
void ShowImage(const AbstractTexture* image, const MathUtil::Rectangle<int>& xfb_region);
|
|
|
|
static std::unique_ptr<SWOGLWindow> Create(const WindowSystemInfo& wsi);
|
|
|
|
private:
|
|
SWOGLWindow();
|
|
|
|
bool Initialize(const WindowSystemInfo& wsi);
|
|
|
|
u32 m_image_program = 0;
|
|
u32 m_image_texture = 0;
|
|
u32 m_image_vao = 0;
|
|
|
|
std::unique_ptr<GLContext> m_gl_context;
|
|
};
|