mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-23 21:23:51 +00:00
28 lines
638 B
C++
28 lines
638 B
C++
|
#ifndef OPENXR_SWAPCHAINIMAGE_HPP
|
||
|
#define OPENXR_SWAPCHAINIMAGE_HPP
|
||
|
|
||
|
#include <vector>
|
||
|
#include <memory>
|
||
|
|
||
|
#include <openxr/openxr.h>
|
||
|
#include <osg/GraphicsContext>
|
||
|
|
||
|
#include "vrframebuffer.hpp"
|
||
|
|
||
|
namespace MWVR
|
||
|
{
|
||
|
class OpenXRSwapchainImage
|
||
|
{
|
||
|
public:
|
||
|
static std::vector< std::unique_ptr<OpenXRSwapchainImage> >
|
||
|
enumerateSwapchainImages(osg::GraphicsContext* gc, XrSwapchain swapchain, XrSwapchainCreateInfo swapchainCreateInfo);
|
||
|
|
||
|
OpenXRSwapchainImage();
|
||
|
virtual ~OpenXRSwapchainImage() {};
|
||
|
|
||
|
virtual void blit(osg::GraphicsContext* gc, VRFramebuffer& readBuffer) = 0;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|