33- (id)initWithTexture:(
OOTexture *)inTexture
39- (id)initWithTexture:(
OOTexture *)inTexture size:(NSSize)spriteSize
70- (void) blitToX:(
float)x Y:(
float)y Z:(
float)z alpha:(
float)a
76 OOGL(glEnable(GL_TEXTURE_2D));
77 OOGL(glColor4f(1.0, 1.0, 1.0, a));
83 glTexCoord2f(0.0, 0.0);
84 glVertex3f(
x,
y+
size.height, z);
86 glTexCoord2f(0.0, 1.0);
89 glTexCoord2f(1.0, 1.0);
90 glVertex3f(
x+
size.width,
y, z);
92 glTexCoord2f(1.0, 0.0);
96 OOGL(glDisable(GL_TEXTURE_2D));
102- (void) blitCentredToX:(
float)x Y:(
float)y Z:(
float)z alpha:(
float)a
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];
110- (void) blitBackgroundCentredToX:(
float)x Y:(
float)y Z:(
float)z alpha:(
float)a
114 float distance = 512.0f;
116 size.width *= distance;
size.height *= distance;
117 [
self blitCentredToX:x Y:y Z:z * distance alpha:a];
118 size.width /= distance;
size.height /= distance;
id initWithTexture:size:(OOTexture *texture,[size] NSSize spriteSize)
NSSize originalDimensions()