aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/je_texture.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-19 08:36:44 +0800
committerchai <chaifix@163.com>2018-10-19 08:36:44 +0800
commit7d5f055547e70fa93ee9ac944e62f8d657b9dc55 (patch)
tree081782a1541854db4b8eb69c4b43081f52711286 /src/libjin/Graphics/je_texture.cpp
parent02dd1f38008594048f0e28bad01e7c6d18844198 (diff)
*修改文件名
Diffstat (limited to 'src/libjin/Graphics/je_texture.cpp')
-rw-r--r--src/libjin/Graphics/je_texture.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/libjin/Graphics/je_texture.cpp b/src/libjin/Graphics/je_texture.cpp
new file mode 100644
index 0000000..d2e53e2
--- /dev/null
+++ b/src/libjin/Graphics/je_texture.cpp
@@ -0,0 +1,36 @@
+#include "../core/je_configuration.h"
+#if LIBJIN_MODULES_RENDER
+
+#include <fstream>
+
+#include "../utils/je_utils.h"
+#include "../math/je_math.h"
+
+#include "je_texture.h"
+
+namespace jin
+{
+ namespace graphics
+ {
+
+ using namespace jin::math;
+
+ /*static*/ Texture* Texture::createTexture(Bitmap* bitmap)
+ {
+ Texture* tex = new Texture(bitmap);
+ return tex;
+ }
+
+ Texture::Texture(const Bitmap* bitmap)
+ : Drawable(bitmap)
+ {
+ }
+
+ Texture::~Texture()
+ {
+ }
+
+ } // namespace graphics
+} // namespace jin
+
+#endif // LIBJIN_MODULES_RENDER \ No newline at end of file