ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.55 by root, Thu Apr 20 08:11:56 2006 UTC vs.
Revision 1.57 by root, Fri Apr 21 07:09:10 2006 UTC

33 typedef signed char int8_t; 33 typedef signed char int8_t;
34 typedef signed short int16_t; 34 typedef signed short int16_t;
35 typedef signed int int32_t; 35 typedef signed int int32_t;
36#endif 36#endif
37 37
38#include "glext.h"
39
38#define FOW_DARKNESS 32 40#define FOW_DARKNESS 32
39 41
40#define MAP_EXTEND_X 32 42#define MAP_EXTEND_X 32
41#define MAP_EXTEND_Y 512 43#define MAP_EXTEND_Y 512
42 44
237 break; 239 break;
238 240
239 row->col[x - row->c0].darkness = -1; 241 row->col[x - row->c0].darkness = -1;
240 } 242 }
241 } 243 }
244}
245
246static void
247music_finished ()
248{
249 SDL_UserEvent ev;
250
251 ev.type = SDL_USEREVENT;
252 ev.code = 0;
253 ev.data1 = 0;
254 ev.data2 = 0;
255
256 SDL_PushEvent ((SDL_Event *)&ev);
242} 257}
243 258
244MODULE = CFClient PACKAGE = CFClient 259MODULE = CFClient PACKAGE = CFClient
245 260
246PROTOTYPES: ENABLE 261PROTOTYPES: ENABLE
463 } 478 }
464} 479}
465 480
466int 481int
467Mix_OpenAudio (int frequency = 22050, int format = MIX_DEFAULT_FORMAT, int channels = 1, int chunksize = 512) 482Mix_OpenAudio (int frequency = 22050, int format = MIX_DEFAULT_FORMAT, int channels = 1, int chunksize = 512)
483 POSTCALL:
484 Mix_HookMusicFinished (music_finished);
468 485
469void 486void
470Mix_CloseAudio () 487Mix_CloseAudio ()
471 488
472int 489int
1308 const_iv (GL_TEXTURE_WRAP_T), 1325 const_iv (GL_TEXTURE_WRAP_T),
1309 const_iv (GL_CLAMP), 1326 const_iv (GL_CLAMP),
1310 const_iv (GL_REPEAT), 1327 const_iv (GL_REPEAT),
1311 const_iv (GL_NEAREST), 1328 const_iv (GL_NEAREST),
1312 const_iv (GL_LINEAR), 1329 const_iv (GL_LINEAR),
1330 const_iv (GL_NEAREST_MIPMAP_NEAREST),
1331 const_iv (GL_LINEAR_MIPMAP_NEAREST),
1332 const_iv (GL_NEAREST_MIPMAP_LINEAR),
1333 const_iv (GL_LINEAR_MIPMAP_LINEAR),
1334 const_iv (GL_GENERATE_MIPMAP),
1335 const_iv (GL_LINEAR),
1313 const_iv (GL_MODULATE), 1336 const_iv (GL_MODULATE),
1314 const_iv (GL_REPLACE), 1337 const_iv (GL_REPLACE),
1315 const_iv (GL_COLOR_BUFFER_BIT), 1338 const_iv (GL_COLOR_BUFFER_BIT),
1316 const_iv (GL_PROJECTION), 1339 const_iv (GL_PROJECTION),
1317 const_iv (GL_MODELVIEW), 1340 const_iv (GL_MODELVIEW),

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines