Sha256: db95d1052bc39e74f0b83f2ef8e3f30b443d788f2ea39bc5d3d40a6d4a90ae7f

Contents?: true

Size: 929 Bytes

Versions: 15

Compression:

Stored size: 929 Bytes

Contents

#ifndef GOSU_SRC_GRAPHICS_TEXTURE_HPP
#define GOSU_SRC_GRAPHICS_TEXTURE_HPP

#include <Gosu/Fwd.hpp>
#include <Gosu/Bitmap.hpp>
#include <Gosu/TR1.hpp>
#include "Common.hpp"
#include "TexChunk.hpp"
#include "BlockAllocator.hpp"
#include <vector>

namespace Gosu
{
    class Texture
    {
        BlockAllocator allocator_;
        GLuint texName_;
        bool retro_;

    public:
        Texture(unsigned size, bool retro);
        ~Texture();
        unsigned size() const;
        GLuint texName() const;
        bool retro() const;
        GOSU_UNIQUE_PTR<TexChunk>
            tryAlloc(std::tr1::shared_ptr<Texture> ptr, const Bitmap& bmp, unsigned padding);
        void block(unsigned x, unsigned y, unsigned width, unsigned height);
        void free(unsigned x, unsigned y, unsigned width, unsigned height);
        Gosu::Bitmap toBitmap(unsigned x, unsigned y, unsigned width, unsigned height) const;
    };
}

#endif

Version data entries

15 entries across 15 versions & 1 rubygems

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