Sha256: c2cef53df54ec71ee1c38afe486fe5472f555f1f37b3f274e4be08281d970324
Contents?: true
Size: 1.13 KB
Versions: 24
Compression:
Stored size: 1.13 KB
Contents
#pragma once #include "GraphicsImpl.hpp" #include <Gosu/Fwd.hpp> #include <Gosu/ImageData.hpp> #include <memory> #include <stdexcept> class Gosu::TexChunk : public Gosu::ImageData { std::shared_ptr<Texture> texture; int x, y, w, h, padding; GLTexInfo info; void set_tex_info(); public: TexChunk(std::shared_ptr<Texture> texture, int x, int y, int w, int h, int padding); TexChunk(const TexChunk& parent, int x, int y, int w, int h); ~TexChunk() override; int width() const override { return w; } int height() const override { return h; } GLuint tex_name() const { return info.tex_name; } void draw(double x1, double y1, Color c1, double x2, double y2, Color c2, double x3, double y3, Color c3, double x4, double y4, Color c4, ZPos z, AlphaMode mode) const override; const GLTexInfo* gl_tex_info() const override { return &info; } std::unique_ptr<ImageData> subimage(int x, int y, int width, int height) const override; Gosu::Bitmap to_bitmap() const override; void insert(const Bitmap& bitmap, int x, int y) override; };
Version data entries
24 entries across 24 versions & 1 rubygems
Version | Path |
---|---|
gosu-0.13.1 | src/TexChunk.hpp |
gosu-0.13.0 | src/TexChunk.hpp |
gosu-0.12.1 | src/TexChunk.hpp |
gosu-0.12.0 | src/TexChunk.hpp |