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 OSDL_FROM_GFX_H_
00028 #define OSDL_FROM_GFX_H_
00029
00030
00031
00032 #ifdef OSDL_USES_CONFIG_H
00033 #include <OSDLConfig.h>
00034 #endif // OSDL_USES_CONFIG_H
00035
00036
00037 #if OSDL_ARCH_NINTENDO_DS
00038 #include "OSDLConfigForNintendoDS.h"
00039 #endif // OSDL_ARCH_NINTENDO_DS
00040
00041
00042
00043
00044 #if OSDL_USES_SDL_GFX
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064 #include "OSDLPixel.h"
00065
00066
00067
00068
00069 struct SDL_Surface ;
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119 #ifdef __cplusplus
00120 extern "C" {
00121 #endif // __cplusplus
00122
00123
00124
00125
00126
00127
00128
00129 int fastPixelColorNolock( SDL_Surface * dst, Ceylan::Sint16 x,
00130 Ceylan::Sint16 y, Ceylan::Uint32 color ) ;
00131
00132
00133 int fastPixelColorNolockNoclip( SDL_Surface * dst, Ceylan::Sint16 x,
00134 Ceylan::Sint16 y, Ceylan::Uint32 color ) ;
00135
00136
00137 int fastPixelColor( SDL_Surface * dst, Ceylan::Sint16 x,
00138 Ceylan::Sint16 y, Ceylan::Uint32 color ) ;
00139
00140
00141
00142
00143 int fastPixelRGBA( SDL_Surface * dst, Ceylan::Sint16 x,
00144 Ceylan::Sint16 y, Ceylan::Uint8 r, Ceylan::Uint8 g, Ceylan::Uint8 b,
00145 Ceylan::Uint8 a ) ;
00146
00147
00148
00149 int fastPixelRGBANolock( SDL_Surface * dst, Ceylan::Sint16 x,
00150 Ceylan::Sint16 y, Ceylan::Uint8 r, Ceylan::Uint8 g, Ceylan::Uint8 b,
00151 Ceylan::Uint8 a ) ;
00152
00153
00154
00168 int putPixelAlpha( SDL_Surface * surface, Ceylan::Sint16 x,
00169 Ceylan::Sint16 y, OSDL::Video::Pixels::PixelColor color,
00170 OSDL::Video::Pixels::ColorElement alpha ) ;
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182 int pixelColorNolock( SDL_Surface * dst, Ceylan::Sint16 x,
00183 Ceylan::Sint16 y, Ceylan::Uint32 color ) ;
00184
00185
00186 int aalineColorInt( SDL_Surface * dst, Ceylan::Sint16 x1,
00187 Ceylan::Sint16 y1, Ceylan::Sint16 x2, Ceylan::Sint16 y2,
00188 Ceylan::Uint32 color, int draw_endpoint ) ;
00189
00190
00191 int hlineColorStore( SDL_Surface * dst, Ceylan::Sint16 x1,
00192 Ceylan::Sint16 x2, Ceylan::Sint16 y, Ceylan::Uint32 color ) ;
00193
00194
00195 int filledCircleRGBANotBlended( SDL_Surface * dst,
00196 Ceylan::Sint16 x, Ceylan::Sint16 y, Ceylan::Sint16 rad,
00197 Ceylan::Uint8 r, Ceylan::Uint8 g, Ceylan::Uint8 b, Ceylan::Uint8 a ) ;
00198
00199
00200
00201
00202 #ifdef __cplusplus
00203 }
00204 #endif // __cplusplus
00205
00206
00207 #endif // OSDL_USES_SDL_GFX
00208
00209
00210
00211 # endif // OSDL_FROM_GFX_H_