Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
OOTextureSprite.h
Go to the documentation of this file.
1/*
2
3OOTextureSprite.h
4
5Oolite
6Copyright (C) 2004-2013 Giles C Williams and contributors
7
8This program is free software; you can redistribute it and/or
9modify it under the terms of the GNU General Public License
10as published by the Free Software Foundation; either version 2
11of the License, or (at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with this program; if not, write to the Free Software
20Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21MA 02110-1301, USA.
22
23*/
24
25#import "OOCocoa.h"
26#import "OOOpenGL.h"
27
28@class OOTexture;
29
30
31#define OPEN_GL_SPRITE_MIN_WIDTH 64.0
32#define OPEN_GL_SPRITE_MIN_HEIGHT 64.0
33
34
35@interface OOTextureSprite: NSObject
36{
37@private
39 NSSize size;
40}
41
42
43- (id) initWithTexture:(OOTexture *)texture;
44- (id) initWithTexture:(OOTexture *)texture size:(NSSize)spriteSize;
45
46- (NSSize) size;
47
48- (void) blitToX:(float)x Y:(float)y Z:(float)z alpha:(float)a;
49- (void) blitCentredToX:(float)x Y:(float)y Z:(float)z alpha:(float)a;
50- (void) blitBackgroundCentredToX:(float)x Y:(float)y Z:(float)z alpha:(float)a;
51
52@end
OOTexture * texture
voidpf void uLong size
Definition ioapi.h:134