Heightmap probing ... done?

This commit is contained in:
2023-05-09 14:30:39 +03:00
parent 368e5621d7
commit abf1b26ba2
9 changed files with 322 additions and 42 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
#include "grbl.h"
#include "grbl_machine.h"
#include "glm/ext/matrix_float4x4.hpp"
#include "heightmap.h"
#include <nanogui/opengl.h>
namespace grbl {
@@ -18,7 +19,7 @@ public:
glm::vec3 get_extents_max() const { return max_pos; };
void update_grid(float from_x, float from_y, float to_x, float to_y, int resolution);
void update_grid(const grbl::heightmap& grid);
private:
GLsizei update_model_vbo(const grbl::program& pgm);