VoxelEngine
 
Loading...
Searching...
No Matches
LayerBuffer.h
1#pragma once
2
3#include <LWGL/buffer/Attributes.h>
4#include "block/Vertex.h"
5
6namespace engine {
7 struct LayerBuffer {
8 gl::Attributes<Vertex> front;
9 gl::Attributes<Vertex> back;
10
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
Definition LayerBuffer.h:7