Sha256: 1f6d1b8bab61419e7fd63accd70091da5155db19329318bc8d7c7e438698e8c8

Contents?: true

Size: 657 Bytes

Versions: 25

Compression:

Stored size: 657 Bytes

Contents

#pragma once

#include "GraphicsImpl.hpp"

namespace Gosu
{
    class OffScreenTarget
    {
        std::shared_ptr<Texture> texture;
        GLuint renderbuffer;
        GLuint framebuffer;
        
        OffScreenTarget(const OffScreenTarget& other) = delete;
        OffScreenTarget& operator=(const OffScreenTarget& other) = delete;
        OffScreenTarget(OffScreenTarget&& other) = delete;
        OffScreenTarget& operator=(OffScreenTarget&& other) = delete;
        
    public:
        OffScreenTarget(int width, int height, unsigned image_flags);
        ~OffScreenTarget();
        Gosu::Image render(const std::function<void ()>& f);
    };
}

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
gosu-1.4.6 src/OffScreenTarget.hpp
gosu-1.4.5 src/OffScreenTarget.hpp
gosu-1.4.5.pre1 src/OffScreenTarget.hpp
gosu-1.4.4 src/OffScreenTarget.hpp
gosu-1.4.3 src/OffScreenTarget.hpp
gosu-1.4.1 src/OffScreenTarget.hpp
gosu-1.4.0 src/OffScreenTarget.hpp
gosu-1.3.0 src/OffScreenTarget.hpp
gosu-1.2.0 src/OffScreenTarget.hpp
gosu-1.1.1.1 src/OffScreenTarget.hpp
gosu-1.1.0 src/OffScreenTarget.hpp
gosu-1.1.0.pre2 src/OffScreenTarget.hpp
gosu-1.1.0.pre1 src/OffScreenTarget.hpp
gosu-1.0.0 src/OffScreenTarget.hpp
gosu-1.0.0.pre2 src/OffScreenTarget.hpp
gosu-1.0.0.pre1 src/OffScreenTarget.hpp
gosu-0.15.2 src/OffScreenTarget.hpp
gosu-0.15.1 src/OffScreenTarget.hpp
gosu-0.15.0 src/OffScreenTarget.hpp
gosu-0.14.6.pre1 src/OffScreenTarget.hpp