RavEngine
Loading...
Searching...
No Matches
Swapchain.hpp
1
#pragma once
2
#include <RGL/Texture.hpp>
3
#include <RGL/Synchronization.hpp>
4
#include <span>
5
#include <memory>
6
7
namespace
RGL{
8
struct
SwapchainPresentConfig
{
9
uint32_t imageIndex = 0;
10
};
11
struct
ISwapchain
{
12
virtual
~ISwapchain
() {}
13
virtual
void
Resize(uint32_t width, uint32_t height) = 0;
14
virtual
void
GetNextImage(uint32_t* index) = 0;
15
virtual
ITexture
* ImageAtIndex(uint32_t index) = 0;
16
virtual
void
Present(
const
SwapchainPresentConfig
&) = 0;
17
18
virtual
void
SetVsyncMode(
bool
mode) = 0;
19
};
20
}
RGL::ITexture
Definition
Texture.hpp:168
RGL::ISwapchain
Definition
Swapchain.hpp:11
RGL::SwapchainPresentConfig
Definition
Swapchain.hpp:8
RavEngine
deps
RGL
include
RGL
Swapchain.hpp
Generated by
1.9.8