2005-05-23 11:57:23 +00:00
|
|
|
/*
|
|
|
|
* This class encapsulates an SDL_Surface pointer so it can be stored in
|
|
|
|
* an Objective-C collection.
|
|
|
|
*
|
|
|
|
* David Taylor 23-May-2005
|
|
|
|
*/
|
|
|
|
#ifndef SDLIMAGE_H
|
|
|
|
#define SDLIMAGE_H
|
|
|
|
#include <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
#include <SDL.h>
|
|
|
|
#include <SDL_image.h>
|
|
|
|
#include <SDL_rotozoom.h>
|
|
|
|
|
|
|
|
@interface SDLImage : NSObject
|
|
|
|
{
|
|
|
|
SDL_Surface *m_surface;
|
2005-06-08 10:14:52 +00:00
|
|
|
NSSize m_size;
|
2005-05-23 11:57:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (id) initWithSurface: (SDL_Surface *)surface;
|
|
|
|
- (SDL_Surface *) surface;
|
2005-06-08 10:14:52 +00:00
|
|
|
- (NSSize) size;
|
2005-05-23 11:57:23 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|