You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
645 B
25 lines
645 B
#pragma once
|
|
#include <coff/archive.hpp>
|
|
#include <coff/image.hpp>
|
|
#include <theo/engine/iff.hpp>
|
|
#include <xtils.hpp>
|
|
|
|
namespace theo
|
|
{
|
|
class swapchain_t
|
|
{
|
|
public:
|
|
struct buffers_t
|
|
{
|
|
std::vector< std::uint8_t > front, back;
|
|
std::shared_ptr< iff_t > iff;
|
|
};
|
|
|
|
explicit swapchain_t( const std::vector< std::uint8_t > &img );
|
|
static std::shared_ptr< swapchain_t > make( const std::vector< std::uint8_t > &img );
|
|
void swap( buffers_t &buffers );
|
|
|
|
std::vector< buffers_t > objs;
|
|
const std::vector< std::uint8_t > archive;
|
|
};
|
|
} // namespace theo
|