Permalink
Browse files

Stage mask

  • Loading branch information...
1 parent eb6502b commit 4266ee09e4ac8fc9912f609b68f59fec6f203e5a Livingroom committed Feb 22, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 Livingroom/Plugins/Mask/Mask.mm
@@ -21,6 +21,8 @@ -(void)initPlugin{
[self addPropF:@"triangleWhiteG"];
[self addPropF:@"triangleWhiteB"];
+ [self addPropF:@"stageMask"];
+
[self addPropF:@"triangleBlack"];
[self addPropF:@"publys"];
@@ -119,6 +121,21 @@ -(void)update:(NSDictionary *)drawingInformation{
-(void)draw:(NSDictionary *)drawingInformation{
ofEnableAlphaBlending();
ofFill();
+
+ if(PropB(@"stageMask")){
+ ApplySurface(@"Floor");
+ ofFill();
+ ofSetColor(0,0,0,255);
+ ofRect(-1,-1,1,3);
+ ofRect(1,-1,1,3);
+
+ ofRect(-1,-1,3,1);
+ ofRect(-1,1,3,1);
+
+ PopSurface();
+
+ }
+
ofSetColor(0,0,0,255.0*PropF(@"rightBlind"));
ofRect(0,0,0.5,1);
@@ -153,6 +170,9 @@ -(void)draw:(NSDictionary *)drawingInformation{
}
+
+
+
}
//

0 comments on commit 4266ee0

Please sign in to comment.