From 611d12bdd245dd43b7434661d3e24f2b435378cb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Nov 2018 21:21:54 +0800 Subject: =?UTF-8?q?*=E6=9B=B4=E6=96=B0=E6=B8=B2=E6=9F=93=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Graphics/je_bitmap.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libjin/Graphics/je_bitmap.h') 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 + #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 drawer); + /// /// Create bitmap with another one. /// -- cgit v1.1-26-g67d0