68 void init_vao(
double resolution,
int width,
int height);
74 std::unique_ptr<Texture> texture;
Definition drawable.hpp:12
GLSLShader is a wrapper for OpenGL shader programs.
Definition glsl_shader.hpp:49
void update_color(int width, int height, const unsigned char *values, int alpha=255, ColorMode mode=ColorMode::PROB)
void update_color(int width, int height, float scale, const float *values, float alpha=1.0f, ColorMode mode=ColorMode::PROB)
virtual void draw(glk::GLSLShader &shader) const override
ColorMode
ColorMode defines how the color values are interpreted.
Definition gridmap.hpp:35
@ TURBO
Definition gridmap.hpp:35
@ PROB_TURBO
Definition gridmap.hpp:35
@ RAW
Definition gridmap.hpp:35
@ PROB
Definition gridmap.hpp:35
@ RGBA
Definition gridmap.hpp:35
GridMap(double resolution, int width, int height, const unsigned char *values, int alpha=255, ColorMode mode=ColorMode::PROB)
Constructor.
void update_color(float scale, const float *values, float alpha=1.0f, ColorMode mode=ColorMode::PROB)
void update_color(const unsigned char *values, int alpha=255, ColorMode mode=ColorMode::PROB)
GridMap(double resolution, int width, int height, float scale, const float *values, float alpha=1.0f, ColorMode mode=ColorMode::PROB)
Constructor.
Texture class to wrap OpenGL texture object.
Definition texture.hpp:11
Definition async_buffer_copy.hpp:6