Sha256: 3ff2a8823e88cc2deb9cf74556544bf0f3412f445ef81aa523feeae4df735583
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
#ifndef GOSUIMPL_LARGEIMAGEDATA_HPP #define GOSUIMPL_LARGEIMAGEDATA_HPP #include <Gosu/Fwd.hpp> #include <Gosu/ImageData.hpp> #include <Gosu/TR1.hpp> #include <vector> namespace Gosu { class LargeImageData : public ImageData { unsigned fullWidth, fullHeight, partsX, partsY, partWidth, partHeight; std::vector<std::tr1::shared_ptr<ImageData> > parts; public: LargeImageData(Graphics& graphics, const Bitmap& source, unsigned partWidth, unsigned partHeight, unsigned borderFlags); unsigned width() const; unsigned height() const; void draw(double x1, double y1, Color c1, double x2, double y2, Color c2, double x3, double y3, Color c3, double x4, double y4, Color c4, ZPos z, AlphaMode mode) const; const GLTexInfo* glTexInfo() const { return 0; } Bitmap toBitmap() const; void insert(const Bitmap& bitmap, int x, int y); }; } #endif
Version data entries
4 entries across 4 versions & 1 rubygems