67 |
{ |
{ |
68 |
NSSize size = [self size]; |
NSSize size = [self size]; |
69 |
|
|
70 |
|
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); |
71 |
|
|
72 |
|
glEnable (GL_BLEND); |
73 |
glEnable (GL_TEXTURE_2D); |
glEnable (GL_TEXTURE_2D); |
74 |
|
|
75 |
glBindTexture (GL_TEXTURE_2D, _texture); |
glBindTexture (GL_TEXTURE_2D, _texture); |
76 |
|
|
77 |
glColor3f (1.0f, 1.0f, 1.0f); |
glColor3f (1.0f, 1.0f, 1.0f); |
84 |
glEnd (); |
glEnd (); |
85 |
|
|
86 |
glDisable (GL_TEXTURE_2D); |
glDisable (GL_TEXTURE_2D); |
87 |
|
glDisable (GL_BLEND); |
88 |
} |
} |
89 |
|
|
90 |
- (void) dealloc |
- (void) dealloc |