/[hegemonie]/hegemonie/Interface/UiImage.m
ViewVC logotype

Diff of /hegemonie/Interface/UiImage.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by dam, Sun Jul 27 16:24:20 2003 UTC revision 1.8 by dam, Mon Jul 28 14:19:44 2003 UTC
# Line 31  Line 31 
31  @implementation UiImage  @implementation UiImage
32    
33  /**  /**
34   * Initialise the image at a position.   * Initializes the image at position.
35   * Returns nil if the image can't be created.   * Returns nil if the image can't be created.
36   */   */
37  - (id) initWithImageName: (NSString *)imageName  - (id) initWithImageName: (NSString *)imageName
# Line 63  Line 63 
63    [self setSize: [[TextureLoader defaultLoader] textureSize: _imageName]];    [self setSize: [[TextureLoader defaultLoader] textureSize: _imageName]];
64  }  }
65    
66    /**
67     * Displays the image.
68     */
69  - (void) _display  - (void) _display
70  {  {
71    NSSize size = [self size];    NSSize size = [self size];
# Line 74  Line 77 
77    
78    glBindTexture (GL_TEXTURE_2D, _texture);    glBindTexture (GL_TEXTURE_2D, _texture);
79    
80    glColor3f (1.0f, 1.0f, 1.0f);    glColor4f (1.0f, 1.0f, 1.0f, [self alpha]);
81    
82    glBegin (GL_POLYGON);    glBegin (GL_POLYGON);
83    glTexCoord2f (0.0f, 1.0f); glVertex2f (0.0f, 0.0f);    glTexCoord2f (0.0f, 1.0f); glVertex2f (0.0f, 0.0f);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26