#include <OOTextureSprite.h>
Definition at line 35 of file OOTextureSprite.h.
◆ blitBackgroundCentredToX:Y:Z:alpha:
- (void) blitBackgroundCentredToX: |
|
(float) | x |
Y: |
|
(float) | y |
Z: |
|
(float) | z |
alpha: |
|
(float) | a |
◆ blitCentredToX:Y:Z:alpha:
- (void) blitCentredToX: |
|
(float) | x |
Y: |
|
(float) | y |
Z: |
|
(float) | z |
alpha: |
|
(float) | a |
Definition at line 1 of file OOTextureSprite.m.
102 :(float)
x Y:(float)
y Z:(float)z alpha:(float)a
103{
104 float xs =
x -
size.width / 2.0;
105 float ys =
y -
size.height / 2.0;
106 [self blitToX:xs Y:ys Z:z alpha:a];
107}
◆ blitToX:Y:Z:alpha:
- (void) blitToX: |
|
(float) | x |
Y: |
|
(float) | y |
Z: |
|
(float) | z |
alpha: |
|
(float) | a |
Definition at line 1 of file OOTextureSprite.m.
70 :(float)
x Y:(float)
y Z:(float)z alpha:(float)a
71{
74
75 a = OOClamp_0_1_f(a);
76 OOGL(glEnable(GL_TEXTURE_2D));
77 OOGL(glColor4f(1.0, 1.0, 1.0, a));
78
79
80
81 [texture apply];
83 glTexCoord2f(0.0, 0.0);
84 glVertex3f(
x,
y+
size.height, z);
85
86 glTexCoord2f(0.0, 1.0);
88
89 glTexCoord2f(1.0, 1.0);
90 glVertex3f(
x+
size.width,
y, z);
91
92 glTexCoord2f(1.0, 0.0);
95
96 OOGL(glDisable(GL_TEXTURE_2D));
97
99}
#define OO_ENTER_OPENGL()
#define OOVerifyOpenGLState()
#define OOSetOpenGLState(STATE)
◆ dealloc
Definition at line 1 of file OOTextureSprite.m.
58{
59 [texture release];
60
61 [super dealloc];
62}
◆ initWithTexture:
- (id) initWithTexture: |
|
(OOTexture *) | texture |
|
Definition at line 1 of file OOTextureSprite.m.
34{
35 return [self initWithTexture:inTexture size:[inTexture originalDimensions]];
36}
◆ initWithTexture:size:
◆ size
◆ size
◆ texture
The documentation for this class was generated from the following files: