diff options
author | chai <chaifix@163.com> | 2018-11-14 21:21:54 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-14 21:21:54 +0800 |
commit | 611d12bdd245dd43b7434661d3e24f2b435378cb (patch) | |
tree | 976904a325695f76680934c0d917ee664e1529d5 /src/libjin/Graphics/je_bitmap.h | |
parent | 84aea028f9955c9313fa14b62d39a3e8e80b84b7 (diff) |
*更新渲染模块
Diffstat (limited to 'src/libjin/Graphics/je_bitmap.h')
-rw-r--r-- | src/libjin/Graphics/je_bitmap.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libjin/Graphics/je_bitmap.h b/src/libjin/Graphics/je_bitmap.h index b0b7dad..c3041f8 100644 --- a/src/libjin/Graphics/je_bitmap.h +++ b/src/libjin/Graphics/je_bitmap.h @@ -3,6 +3,8 @@ #include "../core/je_configuration.h" #if defined(jin_graphics) +#include <functional> + #include "GLee/GLee.h" #include "../common/je_types.h" @@ -62,6 +64,11 @@ namespace JinEngine /// static Bitmap* createBitmap(int width, int height, Color color = Color::BLACK); + /// + /// Create bitmap and set bitmap pixels with given drawer. + /// + static Bitmap* createBitmap(int width, int height, std::function<Color(int, int)> drawer); + /// /// Create bitmap with another one. /// |