summaryrefslogtreecommitdiff
path: root/include/llmr/util/raster.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-07-16 18:53:56 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-07-16 18:53:56 -0700
commit4ea281c750c5afcc68f2832bb42d98a1cbce6735 (patch)
tree60bc7d3ccba2c54859e2e023997cc027cc67aea7 /include/llmr/util/raster.hpp
parentc1a64dc5fa73b54cc5de77629781dfc74302a1e7 (diff)
downloadqtlocation-mapboxgl-4ea281c750c5afcc68f2832bb42d98a1cbce6735.tar.gz
rename llmr => mbgl
Diffstat (limited to 'include/llmr/util/raster.hpp')
-rw-r--r--include/llmr/util/raster.hpp70
1 files changed, 0 insertions, 70 deletions
diff --git a/include/llmr/util/raster.hpp b/include/llmr/util/raster.hpp
deleted file mode 100644
index cbc342d562..0000000000
--- a/include/llmr/util/raster.hpp
+++ /dev/null
@@ -1,70 +0,0 @@
-#ifndef LLMR_UTIL_RASTER
-#define LLMR_UTIL_RASTER
-
-#include <llmr/util/transition.hpp>
-#include <llmr/util/texturepool.hpp>
-#include <llmr/util/image.hpp>
-
-#include <string>
-#include <mutex>
-#include <memory>
-
-typedef struct uv_loop_s uv_loop_t;
-
-namespace llmr {
-
-class Raster : public std::enable_shared_from_this<Raster> {
-
-public:
- Raster(const std::shared_ptr<Texturepool> &texturepool);
- ~Raster();
-
- // load image data
- bool load(const std::string &img);
-
- // bind current texture
- void bind(bool linear = false);
-
- // loaded status
- bool isLoaded() const;
-
- // transitions
- void beginFadeInTransition();
- bool needsTransition() const;
- void updateTransitions(timestamp now);
-
-public:
- // loaded image dimensions
- uint32_t width = 0, height = 0;
-
- // has been uploaded to texture
- bool textured = false;
-
- // the uploaded texture
- uint32_t texture = 0;
-
- // texture opacity
- double opacity = 0;
-
-private:
- mutable std::mutex mtx;
-
- // raw pixels have been loaded
- bool loaded = false;
-
- // shared texture pool
- std::shared_ptr<Texturepool> texturepool;
-
- // min/mag filter
- uint32_t filter = 0;
-
- // the raw pixels
- std::unique_ptr<util::Image> img;
-
- // fade in transition
- std::shared_ptr<util::transition> fade_transition = nullptr;
-};
-
-}
-
-#endif