gcbuffer.h
来自「一个symbian上成熟的小游戏源码」· C头文件 代码 · 共 42 行
H
42 行
#ifndef GCBUFFER_H
#define GCBUFFER_H
// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <w32std.h>
#include <bitstd.h>
#include <bitdev.h>
#include "fbs.h"
namespace gamespace
{
class CGcBuffer
{
public:
~CGcBuffer();
static CGcBuffer* NewL(CWindowGc& aGc,TInt aBufferWidth,TInt aBufferHeight);
static CGcBuffer* NewLC(CWindowGc& aGc,TInt aBufferWidth,TInt aBufferHeight);
private:
CGcBuffer();
void ConstructL(CWindowGc& aGc,TInt aBufferWidth,TInt aBufferHeight);
public:
void Flush( CWindowGc& aGc, TInt aX, TInt aY );
CWindowGc& BufferGc();
void ClearBuffer( TRgb aColor = KRgbWhite );
private:
TInt iBufferWidth;
TInt iBufferHeight;
CFbsBitmap* iBufferBitmap;
CFbsBitmapDevice* iBitmapDevice;//图形设备
CBitmapContext* iBitmapContext;//图形操作上下文
};
}
#endif // GCBUFFER_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?