Files
MapLibreParticleLab/include/mbgl/renderer/prerendered_texture.hpp
Konstantin Käfer 4ea281c750 rename llmr => mbgl
2014-07-16 18:53:56 -07:00

37 lines
730 B
C++

#ifndef MBGL_RENDERER_PRERENDERED_TEXTURE
#define MBGL_RENDERER_PRERENDERED_TEXTURE
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/platform/gl.hpp>
#include <mbgl/style/rasterize_properties.hpp>
namespace mbgl {
class Painter;
class PrerenderedTexture : private util::noncopyable {
public:
PrerenderedTexture(const RasterizedProperties &properties);
~PrerenderedTexture();
void bindTexture();
void bindFramebuffer();
void unbindFramebuffer();
inline GLuint getTexture() const { return texture; }
void blur(Painter& painter, uint16_t passes);
public:
const RasterizedProperties properties;
private:
GLint previous_fbo = 0;
GLuint fbo = 0;
GLuint texture = 0;
};
}
#endif