Sha256: e8a76f053c4271f4b32e8b903720a55df5e8b357f68e1ca659edcfc115f5f456

Contents?: true

Size: 1.18 KB

Versions: 15

Compression:

Stored size: 1.18 KB

Contents

#ifndef GOSU_SRC_LARGEIMAGEDATA_HPP
#define GOSU_SRC_LARGEIMAGEDATA_HPP

#include <Gosu/Fwd.hpp>
#include <Gosu/ImageData.hpp>
#include <Gosu/TR1.hpp>
#include <Gosu/Platform.hpp>
#include <stdexcept>
#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(const Bitmap& source,
            unsigned partWidth, unsigned partHeight, unsigned imageFlags);

        int width() const;
        int 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;
        }
        
        GOSU_UNIQUE_PTR<ImageData> subimage(int x, int y, int w, int h) const
        {
            return GOSU_UNIQUE_PTR<ImageData>();
        }
        
        Bitmap toBitmap() const;
        void insert(const Bitmap& bitmap, int x, int y);
    };
}

#endif

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gosu-0.10.9.pre1 src/Graphics/LargeImageData.hpp
gosu-0.10.8 src/Graphics/LargeImageData.hpp
gosu-0.10.7 src/Graphics/LargeImageData.hpp
gosu-0.10.6 src/Graphics/LargeImageData.hpp
gosu-0.10.5 src/Graphics/LargeImageData.hpp
gosu-0.10.5.pre0 src/Graphics/LargeImageData.hpp
gosu-0.10.5.pre1 src/Graphics/LargeImageData.hpp
gosu-0.10.4 src/Graphics/LargeImageData.hpp
gosu-0.10.3 src/Graphics/LargeImageData.hpp
gosu-0.10.2 src/Graphics/LargeImageData.hpp
gosu-0.10.2.pre1 src/Graphics/LargeImageData.hpp
gosu-0.10.1.2 src/Graphics/LargeImageData.hpp
gosu-0.10.1.1 src/Graphics/LargeImageData.hpp
gosu-0.10.1 src/Graphics/LargeImageData.hpp
gosu-0.10.0 src/Graphics/LargeImageData.hpp