24 #include <GLES3/gl3.h>
70 int start_x,
int start_y,
Heightmap(unsigned int size, unsigned int levels)
void update_level(vec2 *buffer, unsigned int &pixel_offset, const vec2 &level_offset, unsigned level)
[Update region]
void update_heightmap(const std::vector< vec2 > &level_offsets)
GLint GLsizei GLsizei height
unsigned int pixel_buffer_size
GLuint get_texture() const
std::vector< UploadInfo > upload_info
vec2 compute_heightmap(int x, int y, int level)
[Compute heightmap]
GLenum GLuint GLintptr GLsizeiptr size
void update_region(vec2 *buffer, unsigned int &pixel_offset, int x, int y, int width, int height, int start_x, int start_y, int level)
[Compute heightmap]
GLint GLint GLint GLint GLint x
float sample_heightmap(int x, int y)
GLenum GLuint GLint level
std::vector< LevelInfo > level_info
unsigned int heightmap_size
typedef GLuint(GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGKHRPROC)(GLuint count
std::vector< float > heightmap
unsigned int pixel_buffer_index