Sha256: 2d320045aee9534da8b4252ae4eaf7d49e08b4f11459fb8c004dbf4cbef51172

Contents?: true

Size: 881 Bytes

Versions: 15

Compression:

Stored size: 881 Bytes

Contents

#ifndef GOSU_SRC_GRAPHICS_MACRO_HPP
#define GOSU_SRC_GRAPHICS_MACRO_HPP

#include <Gosu/Fwd.hpp>
#include <Gosu/ImageData.hpp>
#include <Gosu/TR1.hpp>
#include <Gosu/Platform.hpp>
#include "Common.hpp"

class Gosu::Macro : public Gosu::ImageData
{
    struct Impl;
    std::tr1::shared_ptr<Impl> pimpl;
    
public:
    Macro(DrawOpQueue& queue, int width, int height);
    
    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 Gosu::GLTexInfo* glTexInfo() const;
    
    Gosu::Bitmap toBitmap() const;
    
    GOSU_UNIQUE_PTR<ImageData> subimage(int x, int y, int width, int height) 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/Macro.hpp
gosu-0.10.8 src/Graphics/Macro.hpp
gosu-0.10.7 src/Graphics/Macro.hpp
gosu-0.10.6 src/Graphics/Macro.hpp
gosu-0.10.5 src/Graphics/Macro.hpp
gosu-0.10.5.pre0 src/Graphics/Macro.hpp
gosu-0.10.5.pre1 src/Graphics/Macro.hpp
gosu-0.10.4 src/Graphics/Macro.hpp
gosu-0.10.3 src/Graphics/Macro.hpp
gosu-0.10.2 src/Graphics/Macro.hpp
gosu-0.10.2.pre1 src/Graphics/Macro.hpp
gosu-0.10.1.2 src/Graphics/Macro.hpp
gosu-0.10.1.1 src/Graphics/Macro.hpp
gosu-0.10.1 src/Graphics/Macro.hpp
gosu-0.10.0 src/Graphics/Macro.hpp