Sha256: 818b98441210a2d03f6f9f7f17107a39fc1eeb9d74fa737a5a90da53e804d583

Contents?: true

Size: 830 Bytes

Versions: 2

Compression:

Stored size: 830 Bytes

Contents

#pragma once

#include "GraphicsImpl.hpp"
#include <Gosu/Fwd.hpp>
#include <Gosu/ImageData.hpp>
#include <memory>

class Gosu::Macro : public Gosu::ImageData
{
    struct Impl;
    std::shared_ptr<Impl> pimpl;
    
public:
    Macro(DrawOpQueue& queue, int width, int height);
    
    int width() const override;
    int height() const override;
    
    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,
        BlendMode mode) const override;
    
    const Gosu::GLTexInfo* gl_tex_info() const override;
    
    Gosu::Bitmap to_bitmap() const override;
    
    std::unique_ptr<ImageData> subimage(int x, int y, int width, int height) const override;
    
    void insert(const Bitmap& bitmap, int x, int y) override;
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gosu-1.3.0 src/Macro.hpp
gosu-1.2.0 src/Macro.hpp