Sha256: 58d747d605c096cbf47428c76c8e10c05bb9e580e2e0ef9ad120f5cf66b6927f
Contents?: true
Size: 914 Bytes
Versions: 5
Compression:
Stored size: 914 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 <GosuImpl/Graphics/Common.hpp> #include <GosuImpl/Graphics/TexChunk.hpp> #include <GosuImpl/Graphics/BlockAllocator.hpp> #include <vector> namespace Gosu { class Texture { BlockAllocator allocator; GLuint name; unsigned num; public: Texture(unsigned size); ~Texture(); unsigned size() const; GLuint texName() const; std::auto_ptr<TexChunk> tryAlloc(Graphics& graphics, Transforms& transforms, DrawOpQueueStack& queues, std::tr1::shared_ptr<Texture> ptr, const Bitmap& bmp, unsigned padding); void free(unsigned x, unsigned y); Gosu::Bitmap toBitmap(unsigned x, unsigned y, unsigned width, unsigned height) const; }; } #endif
Version data entries
5 entries across 5 versions & 1 rubygems