Sha256: dec8b64e3d128ed773db5911ccd8467b0e825cd78998f77e769f42b68110617e
Contents?: true
Size: 931 Bytes
Versions: 6
Compression:
Stored size: 931 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, DrawOpQueueStack& queues, 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
6 entries across 6 versions & 1 rubygems