5 // Created by Giles Williams on Fri Jun 21 2002.
6 // Copyright (c) 2001 __MyCompanyName__. All rights reserved.
9 #import <Cocoa/Cocoa.h>
10 #import <Foundation/Foundation.h>
14 #define OPEN_GL_SPRITE_MIN_WIDTH 64.0
15 #define OPEN_GL_SPRITE_MIN_HEIGHT 64.0
17 @interface OpenGLSprite
: NSObject
22 NSRect textureCropRect
;
28 - (id
) initWithImage
:(NSImage
*)textureImage cropRectangle
:(NSRect
)cropRect size
:(NSSize
) spriteSize
;
31 - (void)blitToX
:(float)x Y
:(float)y Z
:(float)z
;
32 - (void)blitToX
:(float)x Y
:(float)y Z
:(float)z Alpha
:(float)a
;
34 - (void)makeTextureFromImage
:(NSImage
*)texImage cropRectangle
:(NSRect
)cropRect size
:(NSSize
)spriteSize
;
36 - (void)replaceTextureFromImage
:(NSImage
*)texImage cropRectangle
:(NSRect
)cropRect
;
37 - (void)substituteTextureFromImage
:(NSImage
*)texImage
;