clean some properties
[exterlulz-kokogems.git] / src / OpenGLSprite.h
blob267f2cfb6f5277df71f7369334d02c39b7b9119c
1 //
2 // OpenGLSprite.h
3 // GL_BotChallenge
4 //
5 // Created by Giles Williams on Fri Jun 21 2002.
6 // Copyright (c) 2001 __MyCompanyName__. All rights reserved.
7 //
9 #import <Cocoa/Cocoa.h>
10 #import <Foundation/Foundation.h>
12 #import <OpenGL/gl.h>
14 #define OPEN_GL_SPRITE_MIN_WIDTH 64.0
15 #define OPEN_GL_SPRITE_MIN_HEIGHT 64.0
17 @interface OpenGLSprite : NSObject
19 NSData* textureData;
20 GLuint texName;
22 NSRect textureCropRect;
23 NSSize textureSize;
24 NSSize size;
27 - (id)init;
28 - (id)initWithImage:(NSImage *)textureImage cropRectangle:(NSRect)cropRect size:(NSSize) spriteSize;
29 - (void)dealloc;
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;
39 @end