Oolite
1.91.0.7658-250404-b1488af
Toggle main menu visibility
Main Page
Topics
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
z
Enumerations
g
k
m
o
r
s
t
w
Enumerator
a
b
c
d
e
g
j
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Modules
Pages
Loading...
Searching...
No Matches
src
Core
OOTextureSprite.h
Go to the documentation of this file.
1
/*
2
3
OOTextureSprite.h
4
5
Oolite
6
Copyright (C) 2004-2013 Giles C Williams and contributors
7
8
This program is free software; you can redistribute it and/or
9
modify it under the terms of the GNU General Public License
10
as published by the Free Software Foundation; either version 2
11
of the License, or (at your option) any later version.
12
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with this program; if not, write to the Free Software
20
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21
MA 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
38
OOTexture
*
texture
;
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
OOCocoa.h
OOOpenGL.h
OOTextureSprite
Definition
OOTextureSprite.h:36
OOTextureSprite::texture
OOTexture * texture
Definition
OOTextureSprite.h:38
OOTextureSprite::size
NSSize size
Definition
OOTextureSprite.m:64
OOTexture
Definition
OOTexture.h:117
Generated by
1.13.2