SHARE
TWEET

Untitled

a guest Jan 24th, 2012 192 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. //  Viewport.h
  3. //
  4. //  Created by Benjamin Broll on 21.01.10.
  5. //  Copyright 2010 NEXT Munich. All rights reserved.
  6. //
  7.  
  8. #import "cocos2d.h"
  9.  
  10.  
  11. /**
  12.  * Implements a viewport which will only render the content that lies within its
  13.  * rectangle.
  14.  */
  15. @interface Viewport : CCNode {
  16.  
  17.         // the clipping rectangle
  18.         CGRect rect;
  19.        
  20. }
  21.  
  22. @property (assign) CGRect rect;
  23.  
  24. + (Viewport*) viewportWithRect:(CGRect)rect;
  25. - (id) initWithRect:(CGRect)rect;
  26.  
  27. @end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top