7 #ifndef __sdl_ImageSDL_h__ 8 #define __sdl_ImageSDL_h__ 28 void initialize(
void);
31 virtual I32 createSelect(
void);
32 virtual I32 loadSelect(
String filename);
35 virtual BWORD save(
String filename);
36 virtual void select(I32
id);
37 virtual I32
selected(
void)
const {
return m_selected; }
38 virtual void unload(I32
id);
40 virtual void setFormat(ImageI::Format
set);
41 virtual ImageI::Format format(
void)
const;
43 virtual void resize(U32 width,U32 height,U32 depth);
44 virtual void replaceRegion(U32 x,U32 y,U32 z,
45 U32 width,U32 height,U32 depth,
void*
data);
47 virtual U32 width(
void)
const;
48 virtual U32 height(
void)
const;
49 virtual U32 depth(
void)
const;
50 virtual void* raw(
void)
const;
52 virtual U32 regionCount(
void)
const {
return 0; }
53 virtual String regionName(U32 a_regionIndex)
const {
return ""; }
55 virtual String pickRegion(I32 a_x,I32 a_y)
const {
return ""; }
59 void createSurface(ImageI::Format format,U32 width,U32 height);
63 SDL_Surface* m_pCurrentSurface;
67 std::map<U32,SDL_Surface*> m_surfaceMap;
virtual I32 interpretSelect(String a_source)
create an image from text, returning its ID
Definition: ImageSDL.h:34
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
General functionality for image support.
Definition: ImageCommon.h:20
Automatically reference-counted string container.
Definition: String.h:128
virtual I32 interpretSelect(void *data, U32 size)
create an image from raw bytes, returning its ID
Definition: ImageSDL.h:33
virtual I32 selected(void) const
return the selected image ID
Definition: ImageSDL.h:37
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Image handling using SDL.
Definition: ImageSDL.h:21