2a3ece755c
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@76 127b21dd-08f5-0310-b4b7-95ae10353056
31 lines
449 B
Objective-C
31 lines
449 B
Objective-C
/*
|
|
* This class encapsulates an SDL_Surface pointer so it can be stored in
|
|
* an Objective-C collection.
|
|
*
|
|
* David Taylor 23-May-2005
|
|
*/
|
|
#include "SDLImage.h"
|
|
|
|
@implementation SDLImage
|
|
|
|
- (id) initWithSurface: (SDL_Surface *)surface
|
|
{
|
|
self = [super init];
|
|
m_surface = surface;
|
|
m_size.width = surface->w;
|
|
m_size.height = surface->h;
|
|
return self;
|
|
}
|
|
|
|
- (SDL_Surface *) surface
|
|
{
|
|
return m_surface;
|
|
}
|
|
|
|
- (NSSize) size
|
|
{
|
|
return m_size;
|
|
}
|
|
|
|
@end
|