use pbo for picking buffers, restore picking for scenery nodes

This commit is contained in:
milek7
2018-10-23 17:04:04 +02:00
parent cdd79e605c
commit 0c460e9e0d
10 changed files with 165 additions and 53 deletions

17
gl/pbo.h Normal file
View File

@@ -0,0 +1,17 @@
#include "buffer.h"
#include "fence.h"
#include <optional>
namespace gl {
class pbo : private buffer
{
std::optional<fence> sync;
int size = 0;
bool data_ready;
public:
void request_read(int x, int y, int lx, int ly);
bool read_data(int lx, int ly, uint8_t *data);
bool is_busy();
};
}