[core] standardize on uint16_t for texture sizes

This commit is contained in:
Konstantin Käfer
2016-08-22 17:57:22 +02:00
parent 512037cfdc
commit 63e53de157
15 changed files with 42 additions and 36 deletions

View File

@@ -10,7 +10,7 @@ void View::initialize(Map *map_) {
map = map_;
}
PremultipliedImage View::readStillImage() {
PremultipliedImage View::readStillImage(std::array<uint16_t, 2>) {
return {};
}

View File

@@ -18,7 +18,7 @@ GLuint Raster::getID() const {
return texture ? *texture : 0;
}
std::array<size_t, 2> Raster::getSize() const {
std::array<uint16_t, 2> Raster::getSize() const {
return size;
}

View File

@@ -38,12 +38,12 @@ public:
GLuint getID() const;
// size of uploaded image.
std::array<size_t, 2> getSize() const;
std::array<uint16_t, 2> getSize() const;
private:
// raw pixels have been loaded
std::atomic<bool> loaded { false };
std::array<size_t, 2> size = {{ 0, 0 }};
std::array<uint16_t, 2> size = {{ 0, 0 }};
// filters
Scaling filter = Scaling::Nearest;