Sha256: cd65412a660abf5f4c21554de805dd8ec2581ade05d7758a37dce59fc44003f4
Contents?: true
Size: 909 Bytes
Versions: 9
Compression:
Stored size: 909 Bytes
Contents
#ifndef GOSUIMPL_GRAPHICS_TEXTURE_HPP #define GOSUIMPL_GRAPHICS_TEXTURE_HPP #include <Gosu/Fwd.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: static unsigned maxTextureSize(); Texture(unsigned size); ~Texture(); unsigned size() const; GLuint texName() const; std::auto_ptr<TexChunk> tryAlloc(Graphics& graphics, DrawOpQueue& queue, boost::shared_ptr<Texture> ptr, const Bitmap& bmp, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, unsigned padding); void free(unsigned x, unsigned y); }; } #endif
Version data entries
9 entries across 9 versions & 1 rubygems