Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Viewport.h
- //
- // Created by Benjamin Broll on 21.01.10.
- // Copyright 2010 NEXT Munich. All rights reserved.
- //
- #import "cocos2d.h"
- /**
- * Implements a viewport which will only render the content that lies within its
- * rectangle.
- */
- @interface Viewport : CCNode {
- // the clipping rectangle
- CGRect rect;
- }
- @property (assign) CGRect rect;
- + (Viewport*) viewportWithRect:(CGRect)rect;
- - (id) initWithRect:(CGRect)rect;
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement