From 7d5f055547e70fa93ee9ac944e62f8d657b9dc55 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 19 Oct 2018 08:36:44 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Graphics/Drawable.h | 89 ------------------------------------------ 1 file changed, 89 deletions(-) delete mode 100644 src/libjin/Graphics/Drawable.h (limited to 'src/libjin/Graphics/Drawable.h') diff --git a/src/libjin/Graphics/Drawable.h b/src/libjin/Graphics/Drawable.h deleted file mode 100644 index 007a9a1..0000000 --- a/src/libjin/Graphics/Drawable.h +++ /dev/null @@ -1,89 +0,0 @@ -#ifndef __LIBJIN_DRAWABLE -#define __LIBJIN_DRAWABLE -#include "../configuration.h" -#if LIBJIN_MODULES_RENDER - -#include "../math/Quad.h" -#include "../math/Vector2.hpp" -#include "OpenGL.h" -#include "Bitmap.h" - -namespace jin -{ - namespace graphics - { - /// - /// - /// - class Drawable - { - public: - /// - /// - /// - Drawable(int w = 0, int h = 0); - - /// - /// - /// - Drawable(const Bitmap* bitmap); - - /// - /// - /// - virtual ~Drawable(); - - /// - /// - /// - void setAnchor(int x, int y); - - /// - /// - /// - void draw(int x, int y, float sx = 1, float sy = 1, float r = 0); - - /// - /// - /// - void draw(const math::Quad& slice, int x, int y, float sx = 1, float sy = 1, float r = 0, float ax = 0, float ay = 0); - - /// - /// - /// - inline int getWidth() const { return size.w; } - - /// - /// - /// - inline int getHeight() const { return size.h; } - - /// - /// - /// - inline GLuint getTexture() const { return texture; } - - /// - /// - /// - void setFilter(GLint min, GLint max); - - protected: - static const int DRAWABLE_V_SIZE = 8; - - GLuint texture; - GLuint vbo; - /* TODO: vertex buffer object */ - /* GLuint vbo; */ - jin::math::Vector2 size; - jin::math::Vector2 anchor; - float vertex_coords[DRAWABLE_V_SIZE]; - float texture_coords[DRAWABLE_V_SIZE]; - - }; - - } // namespace render -} // namespace jin - -#endif // LIBJIN_MODULES_RENDER -#endif // __LIBJIN_DRAWABLE \ No newline at end of file -- cgit v1.1-26-g67d0