Advertisement
Guest User

Untitled

a guest
Jan 24th, 2012
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement