-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathKinemeGLDepthSortSpritePatch.h
75 lines (65 loc) · 2.6 KB
/
KinemeGLDepthSortSpritePatch.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
#import "KinemeGLDepthSortEnvironmentPatch.h"
#import "KinemeGLRenderer.h"
@interface KinemeGLDepthSortLightweightSprite : NSObject <KinemeGLDepthRenderer>
{
float width, height;
double matrix[16];
double depth;
QCImage *image;
float color[4];
unsigned int blending, depthTesting, culling;
QCOpenGLPort_Image *imagePort;
QCOpenGLPort_Blending *blendPort;
QCOpenGLPort_ZBuffer *depthPort;
QCOpenGLPort_Culling *cullingPort;
}
@property (readwrite, nonatomic) double depth;
@property (readwrite, nonatomic) float width, height;
@property (readwrite, nonatomic, retain) QCImage *image;
@property (readwrite, nonatomic) unsigned int blending, depthTesting, culling;
@property (readwrite, assign, nonatomic) QCOpenGLPort_Image *imagePort;
@property (readwrite, assign, nonatomic) QCOpenGLPort_Blending *blendPort;
@property (readwrite, assign, nonatomic) QCOpenGLPort_ZBuffer *depthPort;
@property (readwrite, assign, nonatomic) QCOpenGLPort_Culling *cullingPort;
@end
@interface KinemeGLDepthSortSpritePatch : QCPatch
{
QCNumberPort *inputX;
QCNumberPort *inputY;
QCNumberPort *inputZ;
QCNumberPort *inputXr;
QCNumberPort *inputYr;
QCNumberPort *inputZr;
QCNumberPort *inputWidth;
QCNumberPort *inputHeight;
QCOpenGLPort_Color *inputColor;
QCOpenGLPort_Image *inputImage;
// QCImagePort *inputMaskImage;
QCOpenGLPort_Blending *inputBlending;
QCOpenGLPort_ZBuffer *inputDepthTesting;
QCOpenGLPort_Culling *inputFaceCulling;
// given to children so they don't need to allocate ports when rendering (each lightweight sprite refers to the same one)
QCOpenGLPort_Image *imagePort;
QCOpenGLPort_Blending *blendPort;
QCOpenGLPort_ZBuffer *depthPort;
QCOpenGLPort_Culling *cullingPort;
KinemeGLDepthSortEnvironmentPatch *_depthSortEnvironment;
}
@property (readonly) QCNumberPort *inputX;
@property (readonly) QCNumberPort *inputY;
@property (readonly) QCNumberPort *inputZ;
@property (readonly) QCNumberPort *inputXr;
@property (readonly) QCNumberPort *inputYr;
@property (readonly) QCNumberPort *inputZr;
@property (readonly) QCNumberPort *inputWidth;
@property (readonly) QCNumberPort *inputHeight;
@property (readonly) QCOpenGLPort_Color *inputColor;
@property (readonly) QCOpenGLPort_Image *inputImage;
//@property (readonly) QCImagePort *inputMaskImage;
@property (readonly) QCOpenGLPort_Blending *inputBlending;
@property (readonly) QCOpenGLPort_ZBuffer *inputDepthTesting;
@property (readonly) QCOpenGLPort_Culling *inputFaceCulling;
- (id)initWithIdentifier:(id)fp8;
- (void)renderOnContext:(QCOpenGLContext *)context;
- (BOOL)execute:(QCOpenGLContext *)context time:(double)time arguments:(NSDictionary *)arguments;
@end