Sha256: b215615b88bd5b104ac4e93e6df784f7bad2619cbc8060a011ee5cac838ce005

Contents?: true

Size: 925 Bytes

Versions: 21

Compression:

Stored size: 925 Bytes

Contents

#ifndef GOSUIMPL_GRAPHICS_TEXTURE_HPP
#define GOSUIMPL_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 name;

    public:
        Texture(unsigned size);
        ~Texture();
        unsigned size() const;
        GLuint texName() const;
        GOSU_UNIQUE_PTR<TexChunk>
            tryAlloc(Graphics& graphics, DrawOpQueueStack& queues,
                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

21 entries across 21 versions & 1 rubygems

Version Path
gosu-0.8.7.2 src/Graphics/Texture.hpp
gosu-0.8.7.1 src/Graphics/Texture.hpp
gosu-0.8.7 src/Graphics/Texture.hpp
gosu-0.8.6 src/Graphics/Texture.hpp
gosu-0.8.6.pre1 src/Graphics/Texture.hpp
gosu-0.8.5 src/Graphics/Texture.hpp
gosu-0.8.5.pre1 src/Graphics/Texture.hpp
gosu-0.8.4 src/Graphics/Texture.hpp
gosu-0.8.3 src/Graphics/Texture.hpp
gosu-0.8.2 src/Graphics/Texture.hpp
gosu-0.8.1 src/Graphics/Texture.hpp
gosu-0.8.0 src/Graphics/Texture.hpp
gosu-0.8.0.pre7 src/Graphics/Texture.hpp
gosu-0.8.0.pre6 src/Graphics/Texture.hpp
gosu-0.8.0.pre5 src/Graphics/Texture.hpp
gosu-0.8.0.pre4 src/Graphics/Texture.hpp
gosu-0.8.0.pre3 GosuImpl/Graphics/Texture.hpp
gosu-0.8.0.pre2 GosuImpl/Graphics/Texture.hpp
gosu-0.8.0.pre1 GosuImpl/Graphics/Texture.hpp
gosu-0.7.50 GosuImpl/Graphics/Texture.hpp