Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/gameengine/VideoTexture/ImageBuff.h')
-rw-r--r--source/gameengine/VideoTexture/ImageBuff.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/gameengine/VideoTexture/ImageBuff.h b/source/gameengine/VideoTexture/ImageBuff.h
index fa2025fa8c4..e18edc44288 100644
--- a/source/gameengine/VideoTexture/ImageBuff.h
+++ b/source/gameengine/VideoTexture/ImageBuff.h
@@ -28,20 +28,28 @@ http://www.gnu.org/copyleft/lesser.txt.
#include "ImageBase.h"
+struct ImBuf;
/// class for image buffer
class ImageBuff : public ImageBase
{
+private:
+ struct ImBuf* m_imbuf; // temporary structure for buffer manipulation
public:
/// constructor
- ImageBuff (void) : ImageBase(true) {}
+ ImageBuff (void) : ImageBase(true), m_imbuf(NULL) {}
/// destructor
- virtual ~ImageBuff (void) {}
+ virtual ~ImageBuff (void);
/// load image from buffer
void load (unsigned char * img, short width, short height);
+ /// plot image from extern RGBA buffer to image at position x,y using one of IMB_BlendMode
+ void plot (unsigned char * img, short width, short height, short x, short y, short mode);
+ /// plot image from other ImageBuf to image at position x,y using one of IMB_BlendMode
+ void plot (ImageBuff* img, short x, short y, short mode);
+
/// refresh image - do nothing
virtual void refresh (void) {}
};