From 8b00d67febf133e89f6a0bfabc41feed555dc4a9 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 12 Jan 2019 21:48:33 +0800 Subject: =?UTF-8?q?*=E5=8E=BB=E6=8E=89=E6=96=87=E4=BB=B6=E5=89=8D=E7=BC=80?= =?UTF-8?q?je=5F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/graphics/je_graphic.h | 97 ---------------------------------------- 1 file changed, 97 deletions(-) delete mode 100644 src/libjin/graphics/je_graphic.h (limited to 'src/libjin/graphics/je_graphic.h') diff --git a/src/libjin/graphics/je_graphic.h b/src/libjin/graphics/je_graphic.h deleted file mode 100644 index 92c7c46..0000000 --- a/src/libjin/graphics/je_graphic.h +++ /dev/null @@ -1,97 +0,0 @@ -#ifndef __JE_GRAPHIC_H__ -#define __JE_GRAPHIC_H__ -#include "../core/je_configuration.h" -#if defined(jin_graphics) - -#include "../common/je_object.h" -#include "../math/je_quad.h" -#include "../math/je_vector2.hpp" -#include "../math/je_transform.h" - -#include "je_renderable.h" -#include "je_gl.h" -#include "je_bitmap.h" - -namespace JinEngine -{ - namespace Graphics - { - - /// - /// Class inherites Graphic doesn't keep any state such as origin, scale and other properties. Very low - /// level visualized resources. - /// - class Graphic : public Object, public Renderable - { - public: - /// - /// - /// - Graphic(int w = 0, int h = 0); - - /// - /// - /// - Graphic(const Bitmap* bitmap); - - /// - /// - /// - virtual ~Graphic(); - - /// - /// - /// - inline int getWidth() const { return mSize.w(); } - - /// - /// - /// - inline int getHeight() const { return mSize.h(); } - - /// - /// Get opengl texture token. - /// - /// @return OpenGL texture token. - /// - inline GLuint getGLTexture() const { return mTexture; } - - /// - /// - /// - void setFilter(GLint min, GLint max); - - /// - /// Render graphic single with given coordinates. - /// - void render(float x, float y, float sx = 1, float sy = 1, float r = 0, float ox = 0, float oy = 0) const; - - /// - /// Render part of graphic single with given coordinates. - /// - void render(const Math::Quad& slice, float x, float y, float sx = 1, float sy = 1, float r = 0, float ox = 0, float oy = 0) const; - - /// - /// Render with transform. - /// - void render(const Math::Transform& transform) const; - - /// - /// - /// - void render(const Math::Quad& slice, const Math::Transform& transform) const; - - protected: - Math::Vector2 mSize; - - private: - GLuint mTexture; - - }; - - } // namespace Graphics -} // namespace JinEngine - -#endif // defined(jin_graphics) - -#endif // __JE_GRAPHIC_H__ \ No newline at end of file -- cgit v1.1-26-g67d0