00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef __ALICEML_SURFACE_H__
00028 #define __ALICEML_SURFACE_H__
00029
00030 #include "aliceml.h"
00031
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035
00039 struct ML_Surface {
00040 void *abstract_surface;
00041 ML_Backend *backend;
00042 int w, h;
00043
00044 int ref_count;
00045 };
00046
00048 ALICEMLAPI ML_Surface * ALICEMLCALL
00049 ML_Surface_Create(ML_Backend *backend);
00050
00052 ALICEMLAPI ML_Surface * ALICEMLCALL
00053 ML_Surface_CreateFromBackend(ML_Backend *backend, void *abstract_surfacce);
00054
00056 ALICEMLAPI ML_Surface * ALICEMLCALL
00057 ML_Surface_CreateFromSize(ML_Message *message, int width, int height);
00058
00060 ALICEMLAPI int ALICEMLCALL
00061 ML_Surface_Share(ML_Surface *surface);
00062
00064 ALICEMLAPI void ALICEMLCALL
00065 ML_Surface_Destroy(ML_Surface *surface);
00066
00068 ALICEMLAPI int ALICEMLCALL
00069 ML_Surface_Blit(ML_Surface *dst, int dst_x, int dst_y,
00070 ML_Surface *src, ML_Rect *src_rect);
00071
00073 ALICEMLAPI int ALICEMLCALL
00074 ML_Surface_BlitAlpha(ML_Surface *dst, int dst_x, int dst_y,
00075 ML_Surface *src, ML_Rect *src_rect,
00076 ML_uint8 alpha);
00077
00078 #ifdef __cplusplus
00079 }
00080 #endif
00081
00082 #endif