Guest User

Untitled

a guest
Jan 24th, 2012
256
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×