VoxelEngine
Loading...
Searching...
No Matches
LayerBuffer.h
1
#pragma once
2
3
#include <LWGL/buffer/Attributes.h>
4
#include "block/Vertex.h"
5
6
namespace
engine {
7
struct
LayerBuffer
{
8
gl::Attributes<Vertex> front;
9
gl::Attributes<Vertex> back;
10
11
LayerBuffer
();
12
13
gl::Attributes<Vertex>& read() {
return
front; }
14
gl::Attributes<Vertex>& write() {
return
back; }
15
void
clear() { back.clear(); }
16
void
moveToFront() { front.swapData(back); }
17
};
18
}
// namespace engine
engine::LayerBuffer
Definition
LayerBuffer.h:7
src
level
LayerBuffer.h
Generated by
1.9.8