Sha256: 15ddb6e08914f978258c0e8cfe1ee092ed78b766412ecc51330cd426b739ec5c
Contents?: true
Size: 948 Bytes
Versions: 6
Compression:
Stored size: 948 Bytes
Contents
#ifndef GOSUIMPL_GRAPHICS_TEXTURE_HPP #define GOSUIMPL_GRAPHICS_TEXTURE_HPP #include <Gosu/Fwd.hpp> #include <Gosu/Bitmap.hpp> #include <GosuImpl/Graphics/Common.hpp> #include <GosuImpl/Graphics/TexChunk.hpp> #include <GosuImpl/Graphics/BlockAllocator.hpp> #include <boost/cstdint.hpp> #include <boost/shared_ptr.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, boost::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
6 entries across 6 versions & 1 rubygems