Sha256: 70c156eb84bd6b84c3b4ae25c943e956e8af0cb14f529c07edcc5d6dc29afe10
Contents?: true
Size: 1.06 KB
Versions: 6
Compression:
Stored size: 1.06 KB
Contents
#ifndef GOSUIMPL_LARGEIMAGEDATA_HPP #define GOSUIMPL_LARGEIMAGEDATA_HPP #include <Gosu/Fwd.hpp> #include <Gosu/ImageData.hpp> #include <boost/none.hpp> #include <boost/shared_ptr.hpp> #include <vector> namespace Gosu { class LargeImageData : public ImageData { unsigned fullWidth, fullHeight, partsX, partsY, partWidth, partHeight; std::vector<boost::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; boost::optional<GLTexInfo> glTexInfo() const { return boost::none; } Bitmap toBitmap() const; void insert(const Bitmap& bitmap, int x, int y); }; } #endif
Version data entries
6 entries across 6 versions & 1 rubygems