aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/je_bitmap.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-21 16:21:16 +0800
committerchai <chaifix@163.com>2018-10-21 16:21:16 +0800
commit07770f3ad369ff47386310b731d349f7af1fe0d9 (patch)
tree7547b1a8b2beaceb31ea1b62edbdaa5cd6a1b247 /src/libjin/Graphics/je_bitmap.h
parent066e5987c515dfc34537d73ca9d2a81ddd1f9e1b (diff)
*修改编译控制
Diffstat (limited to 'src/libjin/Graphics/je_bitmap.h')
-rw-r--r--src/libjin/Graphics/je_bitmap.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libjin/Graphics/je_bitmap.h b/src/libjin/Graphics/je_bitmap.h
index d9d0981..445bf91 100644
--- a/src/libjin/Graphics/je_bitmap.h
+++ b/src/libjin/Graphics/je_bitmap.h
@@ -1,7 +1,7 @@
#ifndef __JE_BITMAP_H
#define __JE_BITMAP_H
#include "../core/je_configuration.h"
-#if LIBJIN_MODULES_RENDER
+#if defined(jin_graphics)
#include "../3rdparty/GLee/GLee.h"
#include "../common/je_types.h"
@@ -22,6 +22,14 @@ namespace JinEngine
class Bitmap
{
public:
+ ///
+ /// Create bitmap from given file.
+ ///
+ /// @param path Path of image file.
+ /// @return Bitmap if create successful, otherwise retrun false.
+ ///
+ static Bitmap* createBitmap(const char* path);
+
///
/// Create bitmap by pixels data.
///