-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFastCanvas.hpv
63 lines (42 loc) · 1.3 KB
/
FastCanvas.hpv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Feature source code generation begins here...
public:
virtual char* buffer() const;
virtual IVSequence<Sprite*>* spriteSequence() const;
virtual FastCanvas& setSpriteSequence(IVSequence<Sprite*>* aSpriteSequence);
virtual FastCanvas& prepare();
virtual FastCanvas& clear();
virtual FastCanvas& draw();
static INotificationId spriteSequenceId;
static INotificationId bufferId;
private:
IVSequence<Sprite*>* iSpriteSequence;
char* iBuffer;
// Feature source code generation ends here.
private:
class DiveBlitterHandler : public IHandler
{
public:
DiveBlitterHandler (HDIVE ahdive);
Boolean dispatchHandlerEvent(IEvent& event);
void setUpDiveBlitter (IWindow & iwnd);
private:
HDIVE hdive;
};
class DivePaintHandler : public IPaintHandler
{
public:
DivePaintHandler (HDIVE ahdive);
Boolean paintWindow(IPaintEvent& event);
private:
HDIVE hdive;
};
// Update initializeMemberData() after making changes here
FastCanvas& destroy();
FastCanvas& initializeMemberData();
FastCanvas& confirmDIVECapabilities();
DiveBlitterHandler * pdiveBlitterHandler;
DivePaintHandler * pdivePaintHandler;
HDIVE hdive;
ULONG ulDiveImage;
HMTX mtxVideoBufferAccess; // used to serialize buffer access
unsigned int bufferSize;