Sha256: 17fcd7d7b67a988b8057fb967afbc6515a73af4cff4387167e53415cb37eb2eb

Contents?: true

Size: 465 Bytes

Versions: 2

Compression:

Stored size: 465 Bytes

Contents

#pragma once

#include <Gosu/Utility.hpp>
#include "GraphicsImpl.hpp"
#include <limits>
#include <optional>
#include <stdexcept>
#include <vector>

namespace Gosu
{
    class ClipRectStack
    {
        std::vector<Rect> m_stack;
        std::optional<Rect> m_effective_rect;

    public:
        void clear();
        void push(const Rect& rect);
        void pop();

        const std::optional<Rect>& effective_rect() const { return m_effective_rect; }
    };
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gosu-2.0.0.pre8 src/ClipRectStack.hpp
gosu-2.0.0.pre7 src/ClipRectStack.hpp