-
Notifications
You must be signed in to change notification settings - Fork 0
/
C3DShaderPane.h
executable file
·99 lines (68 loc) · 2.33 KB
/
C3DShaderPane.h
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
C3DShaderPane.h
Author: Tom Naughton
Description: <describe the C3DShaderPane class here>
*/
#ifndef C3DShaderPane_H
#define C3DShaderPane_H
#include "C3DPane.h"
#include "CModelInstance.h"
#include "DragAndDrop.h"
class CModelController;
class CGLImage;
class CImage;
class CShader;
class C3DShaderPane:
public C3DPane
{
public:
enum { class_ID = 'SdrP' };
C3DShaderPane();
C3DShaderPane(const SPaneInfo& inPaneInfo, LStr255& desc);
C3DShaderPane(LStream* inStream);
virtual ~C3DShaderPane();
void SetShader(CPakStream *item, const char *inShader, int modifiers);
// LPeriodical methods
virtual void SpendTime(const EventRecord &inMacEvent);
// LCommander methods
virtual void PutOnDuty(
LCommander* inNewTarget);
virtual void TakeOffDuty();
virtual Boolean ObeyCommand(
CommandT inCommand,
void* ioParam = nil);
virtual Boolean HandleKeyPress(
const EventRecord& inKeyEvent);
virtual void FindCommandStatus(
CommandT inCommand,
Boolean& outEnabled,
Boolean& outUsesMark,
UInt16& outMark,
Str255 outName);
virtual void ReshapeGL(int,int); // change size
virtual void Click( SMouseDownEvent &inMouseDown);
protected:
virtual void ClickSelf (const SMouseDownEvent &inMouseDown);
virtual Boolean ItemIsAcceptable (DragReference inDragRef,
ItemReference inItemRef);
virtual void EnterDropArea (DragReference inDragRef,
Boolean inDragHasLeftSender);
virtual void LeaveDropArea (DragReference inDragRef);
virtual void InsideDropArea (DragReference inDragRef);
virtual void ReceiveDragItem (DragReference inDragRef,
DragAttributes inDragAttrs,
ItemReference inItemRef,
Rect &inItemBounds);
void HiliteDropArea(DragReference inDragRef);
void CreateDragEvent (const SMouseDownEvent &inMouseDown);
Boolean CheckForOptionKey (DragReference inDragRef);
Boolean CheckIfViewIsAlsoSender (DragReference inDragRef);
void PasteItem ();
CGLImage *_image;
CShader *_shader;
Boolean _retainedShader;
string _shaderName;
virtual void SetupRendering();
virtual void DrawGL(); // GL Rendering
};
#endif // C3DShaderPane_H