2020-12-30 14:03:40 +00:00
|
|
|
#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() {};
|
|
|
|
|
2021-01-01 18:50:52 +00:00
|
|
|
virtual void blit(osg::GraphicsContext* gc, VRFramebuffer& readBuffer, int offset_x, int offset_y) = 0;
|
2020-12-30 14:03:40 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|