00001
00002
00003
00004
00005
00006
00007 int tolua_clanLua_open (void);
00008 void tolua_clanLua_close (void);
00009
00010
00011 #ifdef __cplusplus
00012 static int dummy = tolua_clanLua_open ();
00013 #endif
00014
00015 #include "tolua/tolua.h"
00016
00017 #include "../API/core.h"
00018 #include "../API/Display/Display/display.h"
00019 #include "../API/Display/Display/surface.h"
00020 #include "../API/Display/Display/surfaceprovider.h"
00021 #include "../API/Display/SurfaceProviders/canvas.h"
00022 #include "../API/Display/Display/target.h"
00023 #include "../API/Display/Input/mouse.h"
00024 #include "../API/Display/Input/keyboard.h"
00025 #include "../API/Display/Input/key.h"
00026
00027 #define TRUE 1
00028 #define FALSE 0
00029
00030
00031 static int tolua_tag_CL_Display;
00032 static int tolua_tag_CL_Palette;
00033 static int tolua_tag_CL_DisplayCard;
00034 static int tolua_tag_CL_VidMode;
00035 static int tolua_tag_const_CL_ClipRect;
00036 static int tolua_tag_CL_ClipRect;
00037 static int tolua_tag_CL_System;
00038 static int tolua_tag_CL_Mouse;
00039 static int tolua_tag_CL_InputDevice;
00040 static int tolua_tag_CL_Keyboard;
00041 static int tolua_tag_CL_Surface;
00042 static int tolua_tag_CL_ResourceManager;
00043 static int tolua_tag_CL_SurfaceProvider;
00044 static int tolua_tag_const_CL_Surface;
00045 static int tolua_tag_CL_Target;
00046 static int tolua_tag_const_CL_Target;
00047 static int tolua_tag_CL_Canvas;
00048
00049
00050 static void toluaI_init_tag (void)
00051 {
00052 tolua_usertype("CL_Display");
00053 tolua_usertype("CL_DisplayCard");
00054 tolua_usertype("CL_Mouse");
00055 tolua_usertype("CL_SurfaceProvider");
00056 tolua_usertype("CL_Palette");
00057 tolua_usertype("CL_Canvas");
00058 tolua_usertype("CL_Keyboard");
00059 tolua_usertype("CL_Surface");
00060 tolua_usertype("CL_Target");
00061 tolua_usertype("CL_ClipRect");
00062 tolua_usertype("CL_System");
00063 tolua_usertype("CL_InputDevice");
00064 tolua_usertype("CL_ResourceManager");
00065 tolua_usertype("CL_VidMode");
00066 tolua_settag("CL_ClipRect",&tolua_tag_CL_ClipRect);
00067 tolua_settag("const CL_ClipRect",&tolua_tag_const_CL_ClipRect);
00068 tolua_settag("CL_Display",&tolua_tag_CL_Display);
00069 tolua_settag("CL_Mouse",&tolua_tag_CL_Mouse);
00070 tolua_settag("CL_Target",&tolua_tag_CL_Target);
00071 tolua_settag("CL_VidMode",&tolua_tag_CL_VidMode);
00072 tolua_settag("const CL_Surface",&tolua_tag_const_CL_Surface);
00073 tolua_settag("CL_System",&tolua_tag_CL_System);
00074 tolua_settag("CL_InputDevice",&tolua_tag_CL_InputDevice);
00075 tolua_settag("CL_Canvas",&tolua_tag_CL_Canvas);
00076 tolua_settag("CL_Palette",&tolua_tag_CL_Palette);
00077 tolua_settag("CL_Surface",&tolua_tag_CL_Surface);
00078 tolua_settag("CL_SurfaceProvider",&tolua_tag_CL_SurfaceProvider);
00079 tolua_settag("CL_DisplayCard",&tolua_tag_CL_DisplayCard);
00080 tolua_settag("CL_Keyboard",&tolua_tag_CL_Keyboard);
00081 tolua_settag("CL_ResourceManager",&tolua_tag_CL_ResourceManager);
00082 tolua_settag("const CL_Target",&tolua_tag_const_CL_Target);
00083 }
00084
00085
00086 static void toluaI_CL_Display_delete0(void)
00087 {
00088 if (
00089 !tolua_istype(1,tolua_tag_CL_Display,0) ||
00090 !tolua_isnoobj(2)
00091 )
00092 goto error;
00093 else
00094 {
00095 CL_Display* self = (CL_Display*) tolua_getusertype(1,0);
00096 if (!self) tolua_error("invalid 'self' in function 'delete'");
00097 delete self;
00098 }
00099 return;
00100 error:
00101 tolua_error("#ferror in function 'delete'.");
00102 }
00103
00104
00105 static void toluaI_CL_Display_flip_display0(void)
00106 {
00107 if (
00108 !tolua_istype(2,tolua_tag_number,1) ||
00109 !tolua_isnoobj(3)
00110 )
00111 goto error;
00112 else
00113 {
00114 int sync = ((int) tolua_getnumber(2,0));
00115 {
00116 CL_Display::flip_display(sync);
00117 }
00118 }
00119 return;
00120 error:
00121 tolua_error("#ferror in function 'flip_display'.");
00122 }
00123
00124
00125 static void toluaI_CL_Display_clear_display0(void)
00126 {
00127 if (
00128 !tolua_istype(2,tolua_tag_number,1) ||
00129 !tolua_istype(3,tolua_tag_number,1) ||
00130 !tolua_istype(4,tolua_tag_number,1) ||
00131 !tolua_istype(5,tolua_tag_number,1) ||
00132 !tolua_isnoobj(6)
00133 )
00134 goto error;
00135 else
00136 {
00137 float red = ((float) tolua_getnumber(2,0));
00138 float green = ((float) tolua_getnumber(3,0));
00139 float blue = ((float) tolua_getnumber(4,0));
00140 float alpha = ((float) tolua_getnumber(5,1));
00141 {
00142 CL_Display::clear_display(red,green,blue,alpha);
00143 }
00144 }
00145 return;
00146 error:
00147 tolua_error("#ferror in function 'clear_display'.");
00148 }
00149
00150
00151 static void toluaI_CL_Display_set_palette0(void)
00152 {
00153 if (
00154 !tolua_istype(2,tolua_tag_CL_Palette,0) ||
00155 !tolua_isnoobj(3)
00156 )
00157 goto error;
00158 else
00159 {
00160 CL_Palette* palette = ((CL_Palette*) tolua_getusertype(2,0));
00161 {
00162 CL_Display::set_palette(palette);
00163 }
00164 }
00165 return;
00166 error:
00167 tolua_error("#ferror in function 'set_palette'.");
00168 }
00169
00170
00171 static void toluaI_CL_Display_get_palette0(void)
00172 {
00173 if (
00174 !tolua_isnoobj(2)
00175 )
00176 goto error;
00177 else
00178 {
00179 {
00180 CL_Palette* toluaI_ret = CL_Display::get_palette();
00181 tolua_pushusertype((void*)toluaI_ret,tolua_tag_CL_Palette);
00182 }
00183 }
00184 return;
00185 error:
00186 tolua_error("#ferror in function 'get_palette'.");
00187 }
00188
00189
00190 static void toluaI_CL_Display_select_card0(void)
00191 {
00192 if (
00193 !tolua_istype(2,tolua_tag_CL_DisplayCard,0) ||
00194 !tolua_isnoobj(3)
00195 )
00196 goto error;
00197 else
00198 {
00199 CL_DisplayCard* card = ((CL_DisplayCard*) tolua_getusertype(2,0));
00200 {
00201 CL_Display::select_card(card);
00202 }
00203 }
00204 return;
00205 error:
00206 tolua_error("#ferror in function 'select_card'.");
00207 }
00208
00209
00210 static void toluaI_CL_Display_get_current_card0(void)
00211 {
00212 if (
00213 !tolua_isnoobj(2)
00214 )
00215 goto error;
00216 else
00217 {
00218 {
00219 CL_DisplayCard* toluaI_ret = CL_Display::get_current_card();
00220 tolua_pushusertype((void*)toluaI_ret,tolua_tag_CL_DisplayCard);
00221 }
00222 }
00223 return;
00224 error:
00225 tolua_error("#ferror in function 'get_current_card'.");
00226 }
00227
00228
00229 static void toluaI_CL_Display_set_videomode0(void)
00230 {
00231 if (
00232 !tolua_istype(2,tolua_tag_CL_VidMode,0) ||
00233 !tolua_isnoobj(3)
00234 )
00235 goto error;
00236 else
00237 {
00238 CL_VidMode* mode = ((CL_VidMode*) tolua_getusertype(2,0));
00239 {
00240 CL_Display::set_videomode(mode);
00241 }
00242 }
00243 return;
00244 error:
00245 tolua_error("#ferror in function 'set_videomode'.");
00246 }
00247
00248
00249 static void toluaI_CL_Display_set_videomode1(void)
00250 {
00251 if (
00252 !tolua_istype(2,tolua_tag_number,0) ||
00253 !tolua_istype(3,tolua_tag_number,0) ||
00254 !tolua_istype(4,tolua_tag_number,0) ||
00255 !tolua_isnoobj(5)
00256 )
00257 goto error;
00258 else
00259 {
00260 int width = ((int) tolua_getnumber(2,0));
00261 int height = ((int) tolua_getnumber(3,0));
00262 int bpp = ((int) tolua_getnumber(4,0));
00263 {
00264 CL_Display::set_videomode(width,height,bpp);
00265 }
00266 }
00267 return;
00268 error:
00269 toluaI_CL_Display_set_videomode0();
00270 }
00271
00272
00273 static void toluaI_CL_Display_get_width0(void)
00274 {
00275 if (
00276 !tolua_isnoobj(2)
00277 )
00278 goto error;
00279 else
00280 {
00281 {
00282 int toluaI_ret = CL_Display::get_width();
00283 tolua_pushnumber((double)toluaI_ret);
00284 }
00285 }
00286 return;
00287 error:
00288 tolua_error("#ferror in function 'get_width'.");
00289 }
00290
00291
00292 static void toluaI_CL_Display_get_height0(void)
00293 {
00294 if (
00295 !tolua_isnoobj(2)
00296 )
00297 goto error;
00298 else
00299 {
00300 {
00301 int toluaI_ret = CL_Display::get_height();
00302 tolua_pushnumber((double)toluaI_ret);
00303 }
00304 }
00305 return;
00306 error:
00307 tolua_error("#ferror in function 'get_height'.");
00308 }
00309
00310
00311 static void toluaI_CL_Display_get_bpp0(void)
00312 {
00313 if (
00314 !tolua_isnoobj(2)
00315 )
00316 goto error;
00317 else
00318 {
00319 {
00320 int toluaI_ret = CL_Display::get_bpp();
00321 tolua_pushnumber((double)toluaI_ret);
00322 }
00323 }
00324 return;
00325 error:
00326 tolua_error("#ferror in function 'get_bpp'.");
00327 }
00328
00329
00330 static void toluaI_CL_Display_push_clip_rect0(void)
00331 {
00332 if (
00333 !tolua_isnoobj(2)
00334 )
00335 goto error;
00336 else
00337 {
00338 {
00339 CL_Display::push_clip_rect();
00340 }
00341 }
00342 return;
00343 error:
00344 tolua_error("#ferror in function 'push_clip_rect'.");
00345 }
00346
00347
00348 static void toluaI_CL_Display_push_clip_rect1(void)
00349 {
00350 if (
00351 !tolua_istype(2,tolua_tag_const_CL_ClipRect,0) ||
00352 !tolua_isnoobj(3)
00353 )
00354 goto error;
00355 else
00356 {
00357 const CL_ClipRect* rect = ((const CL_ClipRect*) tolua_getusertype(2,0));
00358 {
00359 CL_Display::push_clip_rect(*rect);
00360 }
00361 }
00362 return;
00363 error:
00364 toluaI_CL_Display_push_clip_rect0();
00365 }
00366
00367
00368 static void toluaI_CL_Display_get_clip_rect0(void)
00369 {
00370 if (
00371 !tolua_isnoobj(2)
00372 )
00373 goto error;
00374 else
00375 {
00376 {
00377 CL_ClipRect toluaI_ret = CL_Display::get_clip_rect();
00378 {
00379 #ifdef __cplusplus
00380 void* toluaI_clone = new CL_ClipRect(toluaI_ret);
00381 #else
00382 void* toluaI_clone = tolua_copy((void*)&toluaI_ret,sizeof(CL_ClipRect));
00383 #endif
00384 tolua_pushusertype(tolua_doclone(toluaI_clone,tolua_tag_CL_ClipRect),tolua_tag_CL_ClipRect);
00385 }
00386 }
00387 }
00388 return;
00389 error:
00390 tolua_error("#ferror in function 'get_clip_rect'.");
00391 }
00392
00393
00394 static void toluaI_CL_Display_set_clip_rect0(void)
00395 {
00396 if (
00397 !tolua_istype(2,tolua_tag_const_CL_ClipRect,0) ||
00398 !tolua_isnoobj(3)
00399 )
00400 goto error;
00401 else
00402 {
00403 const CL_ClipRect* rect = ((const CL_ClipRect*) tolua_getusertype(2,0));
00404 {
00405 CL_Display::set_clip_rect(*rect);
00406 }
00407 }
00408 return;
00409 error:
00410 tolua_error("#ferror in function 'set_clip_rect'.");
00411 }
00412
00413
00414 static void toluaI_CL_Display_pop_clip_rect0(void)
00415 {
00416 if (
00417 !tolua_isnoobj(2)
00418 )
00419 goto error;
00420 else
00421 {
00422 {
00423 CL_Display::pop_clip_rect();
00424 }
00425 }
00426 return;
00427 error:
00428 tolua_error("#ferror in function 'pop_clip_rect'.");
00429 }
00430
00431
00432 static void toluaI_CL_Display_fill_rect0(void)
00433 {
00434 if (
00435 !tolua_istype(2,tolua_tag_number,0) ||
00436 !tolua_istype(3,tolua_tag_number,0) ||
00437 !tolua_istype(4,tolua_tag_number,0) ||
00438 !tolua_istype(5,tolua_tag_number,0) ||
00439 !tolua_istype(6,tolua_tag_number,0) ||
00440 !tolua_istype(7,tolua_tag_number,0) ||
00441 !tolua_istype(8,tolua_tag_number,0) ||
00442 !tolua_istype(9,tolua_tag_number,0) ||
00443 !tolua_isnoobj(10)
00444 )
00445 goto error;
00446 else
00447 {
00448 int x1 = ((int) tolua_getnumber(2,0));
00449 int y1 = ((int) tolua_getnumber(3,0));
00450 int x2 = ((int) tolua_getnumber(4,0));
00451 int y2 = ((int) tolua_getnumber(5,0));
00452 float r = ((float) tolua_getnumber(6,0));
00453 float g = ((float) tolua_getnumber(7,0));
00454 float b = ((float) tolua_getnumber(8,0));
00455 float a = ((float) tolua_getnumber(9,0));
00456 {
00457 CL_Display::fill_rect(x1,y1,x2,y2,r,g,b,a);
00458 }
00459 }
00460 return;
00461 error:
00462 tolua_error("#ferror in function 'fill_rect'.");
00463 }
00464
00465
00466 static void toluaI_CL_Display_draw_line0(void)
00467 {
00468 if (
00469 !tolua_istype(2,tolua_tag_number,0) ||
00470 !tolua_istype(3,tolua_tag_number,0) ||
00471 !tolua_istype(4,tolua_tag_number,0) ||
00472 !tolua_istype(5,tolua_tag_number,0) ||
00473 !tolua_istype(6,tolua_tag_number,0) ||
00474 !tolua_istype(7,tolua_tag_number,0) ||
00475 !tolua_istype(8,tolua_tag_number,0) ||
00476 !tolua_istype(9,tolua_tag_number,0) ||
00477 !tolua_isnoobj(10)
00478 )
00479 goto error;
00480 else
00481 {
00482 int x1 = ((int) tolua_getnumber(2,0));
00483 int y1 = ((int) tolua_getnumber(3,0));
00484 int x2 = ((int) tolua_getnumber(4,0));
00485 int y2 = ((int) tolua_getnumber(5,0));
00486 float r = ((float) tolua_getnumber(6,0));
00487 float g = ((float) tolua_getnumber(7,0));
00488 float b = ((float) tolua_getnumber(8,0));
00489 float a = ((float) tolua_getnumber(9,0));
00490 {
00491 CL_Display::draw_line(x1,y1,x2,y2,r,g,b,a);
00492 }
00493 }
00494 return;
00495 error:
00496 tolua_error("#ferror in function 'draw_line'.");
00497 }
00498
00499
00500 static void toluaI_CL_Display_sync_buffers0(void)
00501 {
00502 if (
00503 !tolua_isnoobj(2)
00504 )
00505 goto error;
00506 else
00507 {
00508 {
00509 CL_Display::sync_buffers();
00510 }
00511 }
00512 return;
00513 error:
00514 tolua_error("#ferror in function 'sync_buffers'.");
00515 }
00516
00517
00518 static void toluaI_CL_System_keep_alive0(void)
00519 {
00520 if (
00521 !tolua_isnoobj(2)
00522 )
00523 goto error;
00524 else
00525 {
00526 {
00527 CL_System::keep_alive();
00528 }
00529 }
00530 return;
00531 error:
00532 tolua_error("#ferror in function 'keep_alive'.");
00533 }
00534
00535
00536 static void toluaI_CL_System_sleep0(void)
00537 {
00538 if (
00539 !tolua_istype(2,tolua_tag_number,0) ||
00540 !tolua_isnoobj(3)
00541 )
00542 goto error;
00543 else
00544 {
00545 int millis = ((int) tolua_getnumber(2,0));
00546 {
00547 CL_System::sleep(millis);
00548 }
00549 }
00550 return;
00551 error:
00552 tolua_error("#ferror in function 'sleep'.");
00553 }
00554
00555
00556 static void toluaI_CL_System_get_time0(void)
00557 {
00558 if (
00559 !tolua_isnoobj(2)
00560 )
00561 goto error;
00562 else
00563 {
00564 {
00565 unsigned int toluaI_ret = CL_System::get_time();
00566 tolua_pushnumber((double)toluaI_ret);
00567 }
00568 }
00569 return;
00570 error:
00571 tolua_error("#ferror in function 'get_time'.");
00572 }
00573
00574
00575 static void toluaI_CL_Mouse_delete0(void)
00576 {
00577 if (
00578 !tolua_istype(1,tolua_tag_CL_Mouse,0) ||
00579 !tolua_isnoobj(2)
00580 )
00581 goto error;
00582 else
00583 {
00584 CL_Mouse* self = (CL_Mouse*) tolua_getusertype(1,0);
00585 if (!self) tolua_error("invalid 'self' in function 'delete'");
00586 delete self;
00587 }
00588 return;
00589 error:
00590 tolua_error("#ferror in function 'delete'.");
00591 }
00592
00593
00594 static void toluaI_CL_Mouse_get_x0(void)
00595 {
00596 if (
00597 !tolua_isnoobj(2)
00598 )
00599 goto error;
00600 else
00601 {
00602 {
00603 int toluaI_ret = CL_Mouse::get_x();
00604 tolua_pushnumber((double)toluaI_ret);
00605 }
00606 }
00607 return;
00608 error:
00609 tolua_error("#ferror in function 'get_x'.");
00610 }
00611
00612
00613 static void toluaI_CL_Mouse_get_y0(void)
00614 {
00615 if (
00616 !tolua_isnoobj(2)
00617 )
00618 goto error;
00619 else
00620 {
00621 {
00622 int toluaI_ret = CL_Mouse::get_y();
00623 tolua_pushnumber((double)toluaI_ret);
00624 }
00625 }
00626 return;
00627 error:
00628 tolua_error("#ferror in function 'get_y'.");
00629 }
00630
00631
00632 static void toluaI_CL_Mouse_left_pressed0(void)
00633 {
00634 if (
00635 !tolua_isnoobj(2)
00636 )
00637 goto error;
00638 else
00639 {
00640 {
00641 bool toluaI_ret = CL_Mouse::left_pressed();
00642 tolua_pushnumber((double)toluaI_ret);
00643 }
00644 }
00645 return;
00646 error:
00647 tolua_error("#ferror in function 'left_pressed'.");
00648 }
00649
00650
00651 static void toluaI_CL_Mouse_middle_pressed0(void)
00652 {
00653 if (
00654 !tolua_isnoobj(2)
00655 )
00656 goto error;
00657 else
00658 {
00659 {
00660 int toluaI_ret = CL_Mouse::middle_pressed();
00661 tolua_pushnumber((double)toluaI_ret);
00662 }
00663 }
00664 return;
00665 error:
00666 tolua_error("#ferror in function 'middle_pressed'.");
00667 }
00668
00669
00670 static void toluaI_CL_Mouse_right_pressed0(void)
00671 {
00672 if (
00673 !tolua_isnoobj(2)
00674 )
00675 goto error;
00676 else
00677 {
00678 {
00679 int toluaI_ret = CL_Mouse::right_pressed();
00680 tolua_pushnumber((double)toluaI_ret);
00681 }
00682 }
00683 return;
00684 error:
00685 tolua_error("#ferror in function 'right_pressed'.");
00686 }
00687
00688
00689 static void toluaI_CL_Keyboard_delete0(void)
00690 {
00691 if (
00692 !tolua_istype(1,tolua_tag_CL_Keyboard,0) ||
00693 !tolua_isnoobj(2)
00694 )
00695 goto error;
00696 else
00697 {
00698 CL_Keyboard* self = (CL_Keyboard*) tolua_getusertype(1,0);
00699 if (!self) tolua_error("invalid 'self' in function 'delete'");
00700 delete self;
00701 }
00702 return;
00703 error:
00704 tolua_error("#ferror in function 'delete'.");
00705 }
00706
00707
00708 static void toluaI_CL_Keyboard_get_keycode0(void)
00709 {
00710 if (
00711 !tolua_istype(2,tolua_tag_number,0) ||
00712 !tolua_isnoobj(3)
00713 )
00714 goto error;
00715 else
00716 {
00717 int button_no = ((int) tolua_getnumber(2,0));
00718 {
00719 int toluaI_ret = CL_Keyboard::get_keycode(button_no);
00720 tolua_pushnumber((double)toluaI_ret);
00721 }
00722 }
00723 return;
00724 error:
00725 tolua_error("#ferror in function 'get_keycode'.");
00726 }
00727
00728
00729 static void toluaI_CL_Surface_load0(void)
00730 {
00731 if (
00732 !tolua_istype(2,tolua_tag_string,0) ||
00733 !tolua_istype(3,tolua_tag_CL_ResourceManager,0) ||
00734 !tolua_isnoobj(4)
00735 )
00736 goto error;
00737 else
00738 {
00739 const char* resource_id = ((const char*) tolua_getstring(2,0));
00740 CL_ResourceManager* manager = ((CL_ResourceManager*) tolua_getusertype(3,0));
00741 {
00742 CL_Surface* toluaI_ret = CL_Surface::load(resource_id,manager);
00743 tolua_pushusertype((void*)toluaI_ret,tolua_tag_CL_Surface);
00744 }
00745 }
00746 return;
00747 error:
00748 tolua_error("#ferror in function 'load'.");
00749 }
00750
00751
00752 static void toluaI_CL_Surface_create0(void)
00753 {
00754 if (
00755 !tolua_istype(2,tolua_tag_CL_SurfaceProvider,0) ||
00756 !tolua_istype(3,tolua_tag_number,0) ||
00757 !tolua_isnoobj(4)
00758 )
00759 goto error;
00760 else
00761 {
00762 CL_SurfaceProvider* provider = ((CL_SurfaceProvider*) tolua_getusertype(2,0));
00763 int delete_provider = ((int) tolua_getnumber(3,0));
00764 {
00765 CL_Surface* toluaI_ret = CL_Surface::create(provider,delete_provider);
00766 tolua_pushusertype((void*)toluaI_ret,tolua_tag_CL_Surface);
00767 }
00768 }
00769 return;
00770 error:
00771 tolua_error("#ferror in function 'create'.");
00772 }
00773
00774
00775 static void toluaI_CL_Surface_delete0(void)
00776 {
00777 if (
00778 !tolua_istype(1,tolua_tag_CL_Surface,0) ||
00779 !tolua_isnoobj(2)
00780 )
00781 goto error;
00782 else
00783 {
00784 CL_Surface* self = (CL_Surface*) tolua_getusertype(1,0);
00785 if (!self) tolua_error("invalid 'self' in function 'delete'");
00786 delete self;
00787 }
00788 return;
00789 error:
00790 tolua_error("#ferror in function 'delete'.");
00791 }
00792
00793
00794 static void toluaI_CL_Surface_reload0(void)
00795 {
00796 if (
00797 !tolua_istype(1,tolua_tag_CL_Surface,0) ||
00798 !tolua_isnoobj(2)
00799 )
00800 goto error;
00801 else
00802 {
00803 CL_Surface* self = (CL_Surface*) tolua_getusertype(1,0);
00804 if (!self) tolua_error("invalid 'self' in function 'reload'");
00805 {
00806 self->reload();
00807 }
00808 }
00809 return;
00810 error:
00811 tolua_error("#ferror in function 'reload'.");
00812 }
00813
00814
00815 static void toluaI_CL_Surface_get_provider0(void)
00816 {
00817 if (
00818 !tolua_istype(1,tolua_tag_const_CL_Surface,0) ||
00819 !tolua_isnoobj(2)
00820 )
00821 goto error;
00822 else
00823 {
00824 const CL_Surface* self = (const CL_Surface*) tolua_getusertype(1,0);
00825 if (!self) tolua_error("invalid 'self' in function 'get_provider'");
00826 {
00827 CL_SurfaceProvider* toluaI_ret = self->get_provider();
00828 tolua_pushusertype((void*)toluaI_ret,tolua_tag_CL_SurfaceProvider);
00829 }
00830 }
00831 return;
00832 error:
00833 tolua_error("#ferror in function 'get_provider'.");
00834 }
00835
00836
00837 static void toluaI_CL_Surface_put_screen0(void)
00838 {
00839 if (
00840 !tolua_istype(1,tolua_tag_CL_Surface,0) ||
00841 !tolua_istype(2,tolua_tag_number,0) ||
00842 !tolua_istype(3,tolua_tag_number,0) ||
00843 !tolua_istype(4,tolua_tag_number,1) ||
00844 !tolua_istype(5,tolua_tag_CL_DisplayCard,1) ||
00845 !tolua_isnoobj(6)
00846 )
00847 goto error;
00848 else
00849 {
00850 CL_Surface* self = (CL_Surface*) tolua_getusertype(1,0);
00851 int x = ((int) tolua_getnumber(2,0));
00852 int y = ((int) tolua_getnumber(3,0));
00853 int spr_no = ((int) tolua_getnumber(4,0));
00854 CL_DisplayCard* card = ((CL_DisplayCard*) tolua_getusertype(5,NULL));
00855 if (!self) tolua_error("invalid 'self' in function 'put_screen'");
00856 {
00857 self->put_screen(x,y,spr_no,card);
00858 }
00859 }
00860 return;
00861 error:
00862 tolua_error("#ferror in function 'put_screen'.");
00863 }
00864
00865
00866 static void toluaI_CL_Surface_put_screen1(void)
00867 {
00868 if (
00869 !tolua_istype(1,tolua_tag_CL_Surface,0) ||
00870 !tolua_istype(2,tolua_tag_number,0) ||
00871 !tolua_istype(3,tolua_tag_number,0) ||
00872 !tolua_istype(4,tolua_tag_number,0) ||
00873 !tolua_istype(5,tolua_tag_number,0) ||
00874 !tolua_istype(6,tolua_tag_number,1) ||
00875 !tolua_istype(7,tolua_tag_CL_DisplayCard,1) ||
00876 !tolua_isnoobj(8)
00877 )
00878 goto error;
00879 else
00880 {
00881 CL_Surface* self = (CL_Surface*) tolua_getusertype(1,0);
00882 int x = ((int) tolua_getnumber(2,0));
00883 int y = ((int) tolua_getnumber(3,0));
00884 float scale_x = ((float) tolua_getnumber(4,0));
00885 float scale_y = ((float) tolua_getnumber(5,0));
00886 int spr_no = ((int) tolua_getnumber(6,0));
00887 CL_DisplayCard* card = ((CL_DisplayCard*) tolua_getusertype(7,NULL));
00888 if (!self) tolua_error("invalid 'self' in function 'put_screen'");
00889 {
00890 self->put_screen(x,y,scale_x,scale_y,spr_no,card);
00891 }
00892 }
00893 return;
00894 error:
00895 toluaI_CL_Surface_put_screen0();
00896 }
00897
00898
00899 static void toluaI_CL_Surface_put_screen2(void)
00900 {
00901 if (
00902 !tolua_istype(1,tolua_tag_CL_Surface,0) ||
00903 !tolua_istype(2,tolua_tag_number,0) ||
00904 !tolua_istype(3,tolua_tag_number,0) ||
00905 !tolua_istype(4,tolua_tag_number,0) ||
00906 !tolua_istype(5,tolua_tag_number,0) ||
00907 !tolua_istype(6,tolua_tag_number,1) ||
00908 !tolua_istype(7,tolua_tag_CL_DisplayCard,1) ||
00909 !tolua_isnoobj(8)
00910 )
00911 goto error;
00912 else
00913 {
00914 CL_Surface* self = (CL_Surface*) tolua_getusertype(1,0);
00915 int x = ((int) tolua_getnumber(2,0));
00916 int y = ((int) tolua_getnumber(3,0));
00917 int size_x = ((int) tolua_getnumber(4,0));
00918 int size_y = ((int) tolua_getnumber(5,0));
00919 int spr_no = ((int) tolua_getnumber(6,0));
00920 CL_DisplayCard* card = ((CL_DisplayCard*) tolua_getusertype(7,NULL));
00921 if (!self) tolua_error("invalid 'self' in function 'put_screen'");
00922 {
00923 self->put_screen(x,y,size_x,size_y,spr_no,card);
00924 }
00925 }
00926 return;
00927 error:
00928 toluaI_CL_Surface_put_screen1();
00929 }
00930
00931
00932 static void toluaI_CL_Surface_put_target0(void)
00933 {
00934 if (
00935 !tolua_istype(1,tolua_tag_CL_Surface,0) ||
00936 !tolua_istype(2,tolua_tag_number,0) ||
00937 !tolua_istype(3,tolua_tag_number,0) ||
00938 !tolua_istype(4,tolua_tag_number,0) ||
00939 !tolua_istype(5,tolua_tag_CL_Target,0) ||
00940 !tolua_isnoobj(6)
00941 )
00942 goto error;
00943 else
00944 {
00945 CL_Surface* self = (CL_Surface*) tolua_getusertype(1,0);
00946 int x = ((int) tolua_getnumber(2,0));
00947 int y = ((int) tolua_getnumber(3,0));
00948 int spr_no = ((int) tolua_getnumber(4,0));
00949 CL_Target* target = ((CL_Target*) tolua_getusertype(5,0));
00950 if (!self) tolua_error("invalid 'self' in function 'put_target'");
00951 {
00952 self->put_target(x,y,spr_no,target);
00953 }
00954 }
00955 return;
00956 error:
00957 tolua_error("#ferror in function 'put_target'.");
00958 }
00959
00960
00961 static void toluaI_CL_Surface_get_width0(void)
00962 {
00963 if (
00964 !tolua_istype(1,tolua_tag_const_CL_Surface,0) ||
00965 !tolua_isnoobj(2)
00966 )
00967 goto error;
00968 else
00969 {
00970 const CL_Surface* self = (const CL_Surface*) tolua_getusertype(1,0);
00971 if (!self) tolua_error("invalid 'self' in function 'get_width'");
00972 {
00973 unsigned int toluaI_ret = self->get_width();
00974 tolua_pushnumber((double)toluaI_ret);
00975 }
00976 }
00977 return;
00978 error:
00979 tolua_error("#ferror in function 'get_width'.");
00980 }
00981
00982
00983 static void toluaI_CL_Surface_get_height0(void)
00984 {
00985 if (
00986 !tolua_istype(1,tolua_tag_const_CL_Surface,0) ||
00987 !tolua_isnoobj(2)
00988 )
00989 goto error;
00990 else
00991 {
00992 const CL_Surface* self = (const CL_Surface*) tolua_getusertype(1,0);
00993 if (!self) tolua_error("invalid 'self' in function 'get_height'");
00994 {
00995 unsigned int toluaI_ret = self->get_height();
00996 tolua_pushnumber((double)toluaI_ret);
00997 }
00998 }
00999 return;
01000 error:
01001 tolua_error("#ferror in function 'get_height'.");
01002 }
01003
01004
01005 static void toluaI_CL_Surface_get_num_frames0(void)
01006 {
01007 if (
01008 !tolua_istype(1,tolua_tag_const_CL_Surface,0) ||
01009 !tolua_isnoobj(2)
01010 )
01011 goto error;
01012 else
01013 {
01014 const CL_Surface* self = (const CL_Surface*) tolua_getusertype(1,0);
01015 if (!self) tolua_error("invalid 'self' in function 'get_num_frames'");
01016 {
01017 unsigned int toluaI_ret = self->get_num_frames();
01018 tolua_pushnumber((double)toluaI_ret);
01019 }
01020 }
01021 return;
01022 error:
01023 tolua_error("#ferror in function 'get_num_frames'.");
01024 }
01025
01026
01027 static void toluaI_CL_Surface_is_video0(void)
01028 {
01029 if (
01030 !tolua_istype(1,tolua_tag_const_CL_Surface,0) ||
01031 !tolua_istype(2,tolua_tag_CL_DisplayCard,1) ||
01032 !tolua_isnoobj(3)
01033 )
01034 goto error;
01035 else
01036 {
01037 const CL_Surface* self = (const CL_Surface*) tolua_getusertype(1,0);
01038 CL_DisplayCard* card = ((CL_DisplayCard*) tolua_getusertype(2,NULL));
01039 if (!self) tolua_error("invalid 'self' in function 'is_video'");
01040 {
01041 int toluaI_ret = self->is_video(card);
01042 tolua_pushnumber((double)toluaI_ret);
01043 }
01044 }
01045 return;
01046 error:
01047 tolua_error("#ferror in function 'is_video'.");
01048 }
01049
01050
01051 static void toluaI_CL_Surface_is_loaded0(void)
01052 {
01053 if (
01054 !tolua_istype(1,tolua_tag_const_CL_Surface,0) ||
01055 !tolua_istype(2,tolua_tag_CL_DisplayCard,1) ||
01056 !tolua_isnoobj(3)
01057 )
01058 goto error;
01059 else
01060 {
01061 const CL_Surface* self = (const CL_Surface*) tolua_getusertype(1,0);
01062 CL_DisplayCard* card = ((CL_DisplayCard*) tolua_getusertype(2,NULL));
01063 if (!self) tolua_error("invalid 'self' in function 'is_loaded'");
01064 {
01065 int toluaI_ret = self->is_loaded(card);
01066 tolua_pushnumber((double)toluaI_ret);
01067 }
01068 }
01069 return;
01070 error:
01071 tolua_error("#ferror in function 'is_loaded'.");
01072 }
01073
01074
01075 static void toluaI_CL_Surface_convert_video0(void)
01076 {
01077 if (
01078 !tolua_istype(1,tolua_tag_CL_Surface,0) ||
01079 !tolua_istype(2,tolua_tag_CL_DisplayCard,1) ||
01080 !tolua_isnoobj(3)
01081 )
01082 goto error;
01083 else
01084 {
01085 CL_Surface* self = (CL_Surface*) tolua_getusertype(1,0);
01086 CL_DisplayCard* card = ((CL_DisplayCard*) tolua_getusertype(2,NULL));
01087 if (!self) tolua_error("invalid 'self' in function 'convert_video'");
01088 {
01089 int toluaI_ret = self->convert_video(card);
01090 tolua_pushnumber((double)toluaI_ret);
01091 }
01092 }
01093 return;
01094 error:
01095 tolua_error("#ferror in function 'convert_video'.");
01096 }
01097
01098
01099 static void toluaI_CL_Surface_convert_system0(void)
01100 {
01101 if (
01102 !tolua_istype(1,tolua_tag_CL_Surface,0) ||
01103 !tolua_istype(2,tolua_tag_CL_DisplayCard,1) ||
01104 !tolua_isnoobj(3)
01105 )
01106 goto error;
01107 else
01108 {
01109 CL_Surface* self = (CL_Surface*) tolua_getusertype(1,0);
01110 CL_DisplayCard* card = ((CL_DisplayCard*) tolua_getusertype(2,NULL));
01111 if (!self) tolua_error("invalid 'self' in function 'convert_system'");
01112 {
01113 int toluaI_ret = self->convert_system(card);
01114 tolua_pushnumber((double)toluaI_ret);
01115 }
01116 }
01117 return;
01118 error:
01119 tolua_error("#ferror in function 'convert_system'.");
01120 }
01121
01122
01123 static void toluaI_CL_Surface_flush0(void)
01124 {
01125 if (
01126 !tolua_istype(1,tolua_tag_CL_Surface,0) ||
01127 !tolua_istype(2,tolua_tag_CL_DisplayCard,1) ||
01128 !tolua_isnoobj(3)
01129 )
01130 goto error;
01131 else
01132 {
01133 CL_Surface* self = (CL_Surface*) tolua_getusertype(1,0);
01134 CL_DisplayCard* card = ((CL_DisplayCard*) tolua_getusertype(2,NULL));
01135 if (!self) tolua_error("invalid 'self' in function 'flush'");
01136 {
01137 self->flush(card);
01138 }
01139 }
01140 return;
01141 error:
01142 tolua_error("#ferror in function 'flush'.");
01143 }
01144
01145
01146 static void toluaI_CL_Target_delete0(void)
01147 {
01148 if (
01149 !tolua_istype(1,tolua_tag_CL_Target,0) ||
01150 !tolua_isnoobj(2)
01151 )
01152 goto error;
01153 else
01154 {
01155 CL_Target* self = (CL_Target*) tolua_getusertype(1,0);
01156 if (!self) tolua_error("invalid 'self' in function 'delete'");
01157 delete self;
01158 }
01159 return;
01160 error:
01161 tolua_error("#ferror in function 'delete'.");
01162 }
01163
01164
01165 static void toluaI_CL_Target_is_video0(void)
01166 {
01167 if (
01168 !tolua_istype(1,tolua_tag_CL_Target,0) ||
01169 !tolua_isnoobj(2)
01170 )
01171 goto error;
01172 else
01173 {
01174 CL_Target* self = (CL_Target*) tolua_getusertype(1,0);
01175 if (!self) tolua_error("invalid 'self' in function 'is_video'");
01176 {
01177 int toluaI_ret = self->is_video();
01178 tolua_pushnumber((double)toluaI_ret);
01179 }
01180 }
01181 return;
01182 error:
01183 tolua_error("#ferror in function 'is_video'.");
01184 }
01185
01186
01187 static void toluaI_CL_Target_lock0(void)
01188 {
01189 if (
01190 !tolua_istype(1,tolua_tag_CL_Target,0) ||
01191 !tolua_isnoobj(2)
01192 )
01193 goto error;
01194 else
01195 {
01196 CL_Target* self = (CL_Target*) tolua_getusertype(1,0);
01197 if (!self) tolua_error("invalid 'self' in function 'lock'");
01198 {
01199 self->lock();
01200 }
01201 }
01202 return;
01203 error:
01204 tolua_error("#ferror in function 'lock'.");
01205 }
01206
01207
01208 static void toluaI_CL_Target_unlock0(void)
01209 {
01210 if (
01211 !tolua_istype(1,tolua_tag_CL_Target,0) ||
01212 !tolua_isnoobj(2)
01213 )
01214 goto error;
01215 else
01216 {
01217 CL_Target* self = (CL_Target*) tolua_getusertype(1,0);
01218 if (!self) tolua_error("invalid 'self' in function 'unlock'");
01219 {
01220 self->unlock();
01221 }
01222 }
01223 return;
01224 error:
01225 tolua_error("#ferror in function 'unlock'.");
01226 }
01227
01228
01229 static void toluaI_CL_Target_get_data0(void)
01230 {
01231 if (
01232 !tolua_istype(1,tolua_tag_const_CL_Target,0) ||
01233 !tolua_isnoobj(2)
01234 )
01235 goto error;
01236 else
01237 {
01238 const CL_Target* self = (const CL_Target*) tolua_getusertype(1,0);
01239 if (!self) tolua_error("invalid 'self' in function 'get_data'");
01240 {
01241 void* toluaI_ret = self->get_data();
01242 tolua_pushuserdata(toluaI_ret);
01243 }
01244 }
01245 return;
01246 error:
01247 tolua_error("#ferror in function 'get_data'.");
01248 }
01249
01250
01251 static void toluaI_CL_Target_get_num_frames0(void)
01252 {
01253 if (
01254 !tolua_istype(1,tolua_tag_const_CL_Target,0) ||
01255 !tolua_isnoobj(2)
01256 )
01257 goto error;
01258 else
01259 {
01260 const CL_Target* self = (const CL_Target*) tolua_getusertype(1,0);
01261 if (!self) tolua_error("invalid 'self' in function 'get_num_frames'");
01262 {
01263 unsigned int toluaI_ret = self->get_num_frames();
01264 tolua_pushnumber((double)toluaI_ret);
01265 }
01266 }
01267 return;
01268 error:
01269 tolua_error("#ferror in function 'get_num_frames'.");
01270 }
01271
01272
01273 static void toluaI_CL_Target_get_width0(void)
01274 {
01275 if (
01276 !tolua_istype(1,tolua_tag_const_CL_Target,0) ||
01277 !tolua_isnoobj(2)
01278 )
01279 goto error;
01280 else
01281 {
01282 const CL_Target* self = (const CL_Target*) tolua_getusertype(1,0);
01283 if (!self) tolua_error("invalid 'self' in function 'get_width'");
01284 {
01285 unsigned int toluaI_ret = self->get_width();
01286 tolua_pushnumber((double)toluaI_ret);
01287 }
01288 }
01289 return;
01290 error:
01291 tolua_error("#ferror in function 'get_width'.");
01292 }
01293
01294
01295 static void toluaI_CL_Target_get_height0(void)
01296 {
01297 if (
01298 !tolua_istype(1,tolua_tag_const_CL_Target,0) ||
01299 !tolua_isnoobj(2)
01300 )
01301 goto error;
01302 else
01303 {
01304 const CL_Target* self = (const CL_Target*) tolua_getusertype(1,0);
01305 if (!self) tolua_error("invalid 'self' in function 'get_height'");
01306 {
01307 unsigned int toluaI_ret = self->get_height();
01308 tolua_pushnumber((double)toluaI_ret);
01309 }
01310 }
01311 return;
01312 error:
01313 tolua_error("#ferror in function 'get_height'.");
01314 }
01315
01316
01317 static void toluaI_CL_Target_get_pitch0(void)
01318 {
01319 if (
01320 !tolua_istype(1,tolua_tag_const_CL_Target,0) ||
01321 !tolua_isnoobj(2)
01322 )
01323 goto error;
01324 else
01325 {
01326 const CL_Target* self = (const CL_Target*) tolua_getusertype(1,0);
01327 if (!self) tolua_error("invalid 'self' in function 'get_pitch'");
01328 {
01329 unsigned int toluaI_ret = self->get_pitch();
01330 tolua_pushnumber((double)toluaI_ret);
01331 }
01332 }
01333 return;
01334 error:
01335 tolua_error("#ferror in function 'get_pitch'.");
01336 }
01337
01338
01339 static void toluaI_CL_Target_get_depth0(void)
01340 {
01341 if (
01342 !tolua_istype(1,tolua_tag_CL_Target,0) ||
01343 !tolua_isnoobj(2)
01344 )
01345 goto error;
01346 else
01347 {
01348 CL_Target* self = (CL_Target*) tolua_getusertype(1,0);
01349 if (!self) tolua_error("invalid 'self' in function 'get_depth'");
01350 {
01351 unsigned int toluaI_ret = self->get_depth();
01352 tolua_pushnumber((double)toluaI_ret);
01353 }
01354 }
01355 return;
01356 error:
01357 tolua_error("#ferror in function 'get_depth'.");
01358 }
01359
01360
01361 static void toluaI_CL_Target_get_bytes_per_pixel0(void)
01362 {
01363 if (
01364 !tolua_istype(1,tolua_tag_CL_Target,0) ||
01365 !tolua_isnoobj(2)
01366 )
01367 goto error;
01368 else
01369 {
01370 CL_Target* self = (CL_Target*) tolua_getusertype(1,0);
01371 if (!self) tolua_error("invalid 'self' in function 'get_bytes_per_pixel'");
01372 {
01373 unsigned int toluaI_ret = self->get_bytes_per_pixel();
01374 tolua_pushnumber((double)toluaI_ret);
01375 }
01376 }
01377 return;
01378 error:
01379 tolua_error("#ferror in function 'get_bytes_per_pixel'.");
01380 }
01381
01382
01383 static void toluaI_CL_Target_is_indexed0(void)
01384 {
01385 if (
01386 !tolua_istype(1,tolua_tag_const_CL_Target,0) ||
01387 !tolua_isnoobj(2)
01388 )
01389 goto error;
01390 else
01391 {
01392 const CL_Target* self = (const CL_Target*) tolua_getusertype(1,0);
01393 if (!self) tolua_error("invalid 'self' in function 'is_indexed'");
01394 {
01395 int toluaI_ret = self->is_indexed();
01396 tolua_pushnumber((double)toluaI_ret);
01397 }
01398 }
01399 return;
01400 error:
01401 tolua_error("#ferror in function 'is_indexed'.");
01402 }
01403
01404
01405 static void toluaI_CL_Target_get_red_mask0(void)
01406 {
01407 if (
01408 !tolua_istype(1,tolua_tag_const_CL_Target,0) ||
01409 !tolua_isnoobj(2)
01410 )
01411 goto error;
01412 else
01413 {
01414 const CL_Target* self = (const CL_Target*) tolua_getusertype(1,0);
01415 if (!self) tolua_error("invalid 'self' in function 'get_red_mask'");
01416 {
01417 unsigned int toluaI_ret = self->get_red_mask();
01418 tolua_pushnumber((double)toluaI_ret);
01419 }
01420 }
01421 return;
01422 error:
01423 tolua_error("#ferror in function 'get_red_mask'.");
01424 }
01425
01426
01427 static void toluaI_CL_Target_get_green_mask0(void)
01428 {
01429 if (
01430 !tolua_istype(1,tolua_tag_const_CL_Target,0) ||
01431 !tolua_isnoobj(2)
01432 )
01433 goto error;
01434 else
01435 {
01436 const CL_Target* self = (const CL_Target*) tolua_getusertype(1,0);
01437 if (!self) tolua_error("invalid 'self' in function 'get_green_mask'");
01438 {
01439 unsigned int toluaI_ret = self->get_green_mask();
01440 tolua_pushnumber((double)toluaI_ret);
01441 }
01442 }
01443 return;
01444 error:
01445 tolua_error("#ferror in function 'get_green_mask'.");
01446 }
01447
01448
01449 static void toluaI_CL_Target_get_blue_mask0(void)
01450 {
01451 if (
01452 !tolua_istype(1,tolua_tag_const_CL_Target,0) ||
01453 !tolua_isnoobj(2)
01454 )
01455 goto error;
01456 else
01457 {
01458 const CL_Target* self = (const CL_Target*) tolua_getusertype(1,0);
01459 if (!self) tolua_error("invalid 'self' in function 'get_blue_mask'");
01460 {
01461 unsigned int toluaI_ret = self->get_blue_mask();
01462 tolua_pushnumber((double)toluaI_ret);
01463 }
01464 }
01465 return;
01466 error:
01467 tolua_error("#ferror in function 'get_blue_mask'.");
01468 }
01469
01470
01471 static void toluaI_CL_Target_get_alpha_mask0(void)
01472 {
01473 if (
01474 !tolua_istype(1,tolua_tag_const_CL_Target,0) ||
01475 !tolua_isnoobj(2)
01476 )
01477 goto error;
01478 else
01479 {
01480 const CL_Target* self = (const CL_Target*) tolua_getusertype(1,0);
01481 if (!self) tolua_error("invalid 'self' in function 'get_alpha_mask'");
01482 {
01483 unsigned int toluaI_ret = self->get_alpha_mask();
01484 tolua_pushnumber((double)toluaI_ret);
01485 }
01486 }
01487 return;
01488 error:
01489 tolua_error("#ferror in function 'get_alpha_mask'.");
01490 }
01491
01492
01493 static void toluaI_CL_Target_get_palette0(void)
01494 {
01495 if (
01496 !tolua_istype(1,tolua_tag_const_CL_Target,0) ||
01497 !tolua_isnoobj(2)
01498 )
01499 goto error;
01500 else
01501 {
01502 const CL_Target* self = (const CL_Target*) tolua_getusertype(1,0);
01503 if (!self) tolua_error("invalid 'self' in function 'get_palette'");
01504 {
01505 CL_Palette* toluaI_ret = self->get_palette();
01506 tolua_pushusertype((void*)toluaI_ret,tolua_tag_CL_Palette);
01507 }
01508 }
01509 return;
01510 error:
01511 tolua_error("#ferror in function 'get_palette'.");
01512 }
01513
01514
01515 static void toluaI_CL_Target_push_clip_rect0(void)
01516 {
01517 if (
01518 !tolua_istype(1,tolua_tag_CL_Target,0) ||
01519 !tolua_isnoobj(2)
01520 )
01521 goto error;
01522 else
01523 {
01524 CL_Target* self = (CL_Target*) tolua_getusertype(1,0);
01525 if (!self) tolua_error("invalid 'self' in function 'push_clip_rect'");
01526 {
01527 self->push_clip_rect();
01528 }
01529 }
01530 return;
01531 error:
01532 tolua_error("#ferror in function 'push_clip_rect'.");
01533 }
01534
01535
01536 static void toluaI_CL_Target_push_clip_rect1(void)
01537 {
01538 if (
01539 !tolua_istype(1,tolua_tag_CL_Target,0) ||
01540 !tolua_istype(2,tolua_tag_const_CL_ClipRect,0) ||
01541 !tolua_isnoobj(3)
01542 )
01543 goto error;
01544 else
01545 {
01546 CL_Target* self = (CL_Target*) tolua_getusertype(1,0);
01547 const CL_ClipRect* rect = ((const CL_ClipRect*) tolua_getusertype(2,0));
01548 if (!self) tolua_error("invalid 'self' in function 'push_clip_rect'");
01549 {
01550 self->push_clip_rect(*rect);
01551 }
01552 }
01553 return;
01554 error:
01555 toluaI_CL_Target_push_clip_rect0();
01556 }
01557
01558
01559 static void toluaI_CL_Target_get_clip_rect0(void)
01560 {
01561 if (
01562 !tolua_istype(1,tolua_tag_CL_Target,0) ||
01563 !tolua_isnoobj(2)
01564 )
01565 goto error;
01566 else
01567 {
01568 CL_Target* self = (CL_Target*) tolua_getusertype(1,0);
01569 if (!self) tolua_error("invalid 'self' in function 'get_clip_rect'");
01570 {
01571 CL_ClipRect toluaI_ret = self->get_clip_rect();
01572 {
01573 #ifdef __cplusplus
01574 void* toluaI_clone = new CL_ClipRect(toluaI_ret);
01575 #else
01576 void* toluaI_clone = tolua_copy((void*)&toluaI_ret,sizeof(CL_ClipRect));
01577 #endif
01578 tolua_pushusertype(tolua_doclone(toluaI_clone,tolua_tag_CL_ClipRect),tolua_tag_CL_ClipRect);
01579 }
01580 }
01581 }
01582 return;
01583 error:
01584 tolua_error("#ferror in function 'get_clip_rect'.");
01585 }
01586
01587
01588 static void toluaI_CL_Target_set_clip_rect0(void)
01589 {
01590 if (
01591 !tolua_istype(1,tolua_tag_CL_Target,0) ||
01592 !tolua_istype(2,tolua_tag_const_CL_ClipRect,0) ||
01593 !tolua_isnoobj(3)
01594 )
01595 goto error;
01596 else
01597 {
01598 CL_Target* self = (CL_Target*) tolua_getusertype(1,0);
01599 const CL_ClipRect* rect = ((const CL_ClipRect*) tolua_getusertype(2,0));
01600 if (!self) tolua_error("invalid 'self' in function 'set_clip_rect'");
01601 {
01602 self->set_clip_rect(*rect);
01603 }
01604 }
01605 return;
01606 error:
01607 tolua_error("#ferror in function 'set_clip_rect'.");
01608 }
01609
01610
01611 static void toluaI_CL_Target_pop_clip_rect0(void)
01612 {
01613 if (
01614 !tolua_istype(1,tolua_tag_CL_Target,0) ||
01615 !tolua_isnoobj(2)
01616 )
01617 goto error;
01618 else
01619 {
01620 CL_Target* self = (CL_Target*) tolua_getusertype(1,0);
01621 if (!self) tolua_error("invalid 'self' in function 'pop_clip_rect'");
01622 {
01623 self->pop_clip_rect();
01624 }
01625 }
01626 return;
01627 error:
01628 tolua_error("#ferror in function 'pop_clip_rect'.");
01629 }
01630
01631
01632 static void toluaI_CL_Target_fill_rect0(void)
01633 {
01634 if (
01635 !tolua_istype(1,tolua_tag_CL_Target,0) ||
01636 !tolua_istype(2,tolua_tag_number,0) ||
01637 !tolua_istype(3,tolua_tag_number,0) ||
01638 !tolua_istype(4,tolua_tag_number,0) ||
01639 !tolua_istype(5,tolua_tag_number,0) ||
01640 !tolua_istype(6,tolua_tag_number,0) ||
01641 !tolua_istype(7,tolua_tag_number,0) ||
01642 !tolua_istype(8,tolua_tag_number,0) ||
01643 !tolua_istype(9,tolua_tag_number,0) ||
01644 !tolua_isnoobj(10)
01645 )
01646 goto error;
01647 else
01648 {
01649 CL_Target* self = (CL_Target*) tolua_getusertype(1,0);
01650 int x1 = ((int) tolua_getnumber(2,0));
01651 int y1 = ((int) tolua_getnumber(3,0));
01652 int x2 = ((int) tolua_getnumber(4,0));
01653 int y2 = ((int) tolua_getnumber(5,0));
01654 float r = ((float) tolua_getnumber(6,0));
01655 float g = ((float) tolua_getnumber(7,0));
01656 float b = ((float) tolua_getnumber(8,0));
01657 float a = ((float) tolua_getnumber(9,0));
01658 if (!self) tolua_error("invalid 'self' in function 'fill_rect'");
01659 {
01660 self->fill_rect(x1,y1,x2,y2,r,g,b,a);
01661 }
01662 }
01663 return;
01664 error:
01665 tolua_error("#ferror in function 'fill_rect'.");
01666 }
01667
01668
01669 static void toluaI_CL_Target_draw_line0(void)
01670 {
01671 if (
01672 !tolua_istype(1,tolua_tag_CL_Target,0) ||
01673 !tolua_istype(2,tolua_tag_number,0) ||
01674 !tolua_istype(3,tolua_tag_number,0) ||
01675 !tolua_istype(4,tolua_tag_number,0) ||
01676 !tolua_istype(5,tolua_tag_number,0) ||
01677 !tolua_istype(6,tolua_tag_number,0) ||
01678 !tolua_istype(7,tolua_tag_number,0) ||
01679 !tolua_istype(8,tolua_tag_number,0) ||
01680 !tolua_istype(9,tolua_tag_number,0) ||
01681 !tolua_isnoobj(10)
01682 )
01683 goto error;
01684 else
01685 {
01686 CL_Target* self = (CL_Target*) tolua_getusertype(1,0);
01687 int x1 = ((int) tolua_getnumber(2,0));
01688 int y1 = ((int) tolua_getnumber(3,0));
01689 int x2 = ((int) tolua_getnumber(4,0));
01690 int y2 = ((int) tolua_getnumber(5,0));
01691 float r = ((float) tolua_getnumber(6,0));
01692 float g = ((float) tolua_getnumber(7,0));
01693 float b = ((float) tolua_getnumber(8,0));
01694 float a = ((float) tolua_getnumber(9,0));
01695 if (!self) tolua_error("invalid 'self' in function 'draw_line'");
01696 {
01697 self->draw_line(x1,y1,x2,y2,r,g,b,a);
01698 }
01699 }
01700 return;
01701 error:
01702 tolua_error("#ferror in function 'draw_line'.");
01703 }
01704
01705
01706 static void toluaI_CL_SurfaceProvider_delete0(void)
01707 {
01708 if (
01709 !tolua_istype(1,tolua_tag_CL_SurfaceProvider,0) ||
01710 !tolua_isnoobj(2)
01711 )
01712 goto error;
01713 else
01714 {
01715 CL_SurfaceProvider* self = (CL_SurfaceProvider*) tolua_getusertype(1,0);
01716 if (!self) tolua_error("invalid 'self' in function 'delete'");
01717 delete self;
01718 }
01719 return;
01720 error:
01721 tolua_error("#ferror in function 'delete'.");
01722 }
01723
01724
01725 static void toluaI_CL_SurfaceProvider_get_translate_x0(void)
01726 {
01727 if (
01728 !tolua_istype(1,tolua_tag_CL_SurfaceProvider,0) ||
01729 !tolua_isnoobj(2)
01730 )
01731 goto error;
01732 else
01733 {
01734 CL_SurfaceProvider* self = (CL_SurfaceProvider*) tolua_getusertype(1,0);
01735 if (!self) tolua_error("invalid 'self' in function 'get_translate_x'");
01736 {
01737 int toluaI_ret = self->get_translate_x();
01738 tolua_pushnumber((double)toluaI_ret);
01739 }
01740 }
01741 return;
01742 error:
01743 tolua_error("#ferror in function 'get_translate_x'.");
01744 }
01745
01746
01747 static void toluaI_CL_SurfaceProvider_get_translate_y0(void)
01748 {
01749 if (
01750 !tolua_istype(1,tolua_tag_CL_SurfaceProvider,0) ||
01751 !tolua_isnoobj(2)
01752 )
01753 goto error;
01754 else
01755 {
01756 CL_SurfaceProvider* self = (CL_SurfaceProvider*) tolua_getusertype(1,0);
01757 if (!self) tolua_error("invalid 'self' in function 'get_translate_y'");
01758 {
01759 int toluaI_ret = self->get_translate_y();
01760 tolua_pushnumber((double)toluaI_ret);
01761 }
01762 }
01763 return;
01764 error:
01765 tolua_error("#ferror in function 'get_translate_y'.");
01766 }
01767
01768
01769 static void toluaI_CL_SurfaceProvider_uses_src_colorkey0(void)
01770 {
01771 if (
01772 !tolua_istype(1,tolua_tag_CL_SurfaceProvider,0) ||
01773 !tolua_isnoobj(2)
01774 )
01775 goto error;
01776 else
01777 {
01778 CL_SurfaceProvider* self = (CL_SurfaceProvider*) tolua_getusertype(1,0);
01779 if (!self) tolua_error("invalid 'self' in function 'uses_src_colorkey'");
01780 {
01781 int toluaI_ret = self->uses_src_colorkey();
01782 tolua_pushnumber((double)toluaI_ret);
01783 }
01784 }
01785 return;
01786 error:
01787 tolua_error("#ferror in function 'uses_src_colorkey'.");
01788 }
01789
01790
01791 static void toluaI_CL_SurfaceProvider_get_src_colorkey0(void)
01792 {
01793 if (
01794 !tolua_istype(1,tolua_tag_CL_SurfaceProvider,0) ||
01795 !tolua_isnoobj(2)
01796 )
01797 goto error;
01798 else
01799 {
01800 CL_SurfaceProvider* self = (CL_SurfaceProvider*) tolua_getusertype(1,0);
01801 if (!self) tolua_error("invalid 'self' in function 'get_src_colorkey'");
01802 {
01803 unsigned int toluaI_ret = self->get_src_colorkey();
01804 tolua_pushnumber((double)toluaI_ret);
01805 }
01806 }
01807 return;
01808 error:
01809 tolua_error("#ferror in function 'get_src_colorkey'.");
01810 }
01811
01812
01813 static void toluaI_CL_Canvas_create0(void)
01814 {
01815 if (
01816 !tolua_istype(2,tolua_tag_number,0) ||
01817 !tolua_istype(3,tolua_tag_number,0) ||
01818 !tolua_istype(4,tolua_tag_number,1) ||
01819 !tolua_istype(5,tolua_tag_number,1) ||
01820 !tolua_istype(6,tolua_tag_number,1) ||
01821 !tolua_istype(7,tolua_tag_number,1) ||
01822 !tolua_istype(8,tolua_tag_number,1) ||
01823 !tolua_istype(9,tolua_tag_number,1) ||
01824 !tolua_istype(10,tolua_tag_number,1) ||
01825 !tolua_isnoobj(11)
01826 )
01827 goto error;
01828 else
01829 {
01830 int width = ((int) tolua_getnumber(2,0));
01831 int height = ((int) tolua_getnumber(3,0));
01832 int no_sprs = ((int) tolua_getnumber(4,1));
01833 int red_mask = ((int) tolua_getnumber(5,0xff000000));
01834 int green_mask = ((int) tolua_getnumber(6,0x00ff0000));
01835 int blue_mask = ((int) tolua_getnumber(7,0x0000ff00));
01836 int alpha_mask = ((int) tolua_getnumber(8,0x000000ff));
01837 int use_transcol = ((int) tolua_getnumber(9,false));
01838 unsigned int transcol = ((unsigned int) tolua_getnumber(10,0));
01839 {
01840 CL_Surface* toluaI_ret = CL_Canvas::create(width,height,no_sprs,red_mask,green_mask,blue_mask,alpha_mask,use_transcol,transcol);
01841 tolua_pushusertype((void*)toluaI_ret,tolua_tag_CL_Surface);
01842 }
01843 }
01844 return;
01845 error:
01846 tolua_error("#ferror in function 'create'.");
01847 }
01848
01849
01850 static void toluaI_CL_Canvas_new0(void)
01851 {
01852 if (
01853 !tolua_istype(2,tolua_tag_number,0) ||
01854 !tolua_istype(3,tolua_tag_number,0) ||
01855 !tolua_istype(4,tolua_tag_number,1) ||
01856 !tolua_istype(5,tolua_tag_number,1) ||
01857 !tolua_istype(6,tolua_tag_number,1) ||
01858 !tolua_istype(7,tolua_tag_number,1) ||
01859 !tolua_istype(8,tolua_tag_number,1) ||
01860 !tolua_istype(9,tolua_tag_number,1) ||
01861 !tolua_istype(10,tolua_tag_number,1) ||
01862 !tolua_isnoobj(11)
01863 )
01864 goto error;
01865 else
01866 {
01867 int width = ((int) tolua_getnumber(2,0));
01868 int height = ((int) tolua_getnumber(3,0));
01869 int no_sprs = ((int) tolua_getnumber(4,1));
01870 int red_mask = ((int) tolua_getnumber(5,0xff000000));
01871 int green_mask = ((int) tolua_getnumber(6,0x00ff0000));
01872 int blue_mask = ((int) tolua_getnumber(7,0x0000ff00));
01873 int alpha_mask = ((int) tolua_getnumber(8,0x000000ff));
01874 int use_transcol = ((int) tolua_getnumber(9,false));
01875 unsigned int transcol = ((unsigned int) tolua_getnumber(10,0));
01876 {
01877 CL_Canvas* toluaI_ret = new CL_Canvas(width,height,no_sprs,red_mask,green_mask,blue_mask,alpha_mask,use_transcol,transcol);
01878 tolua_pushusertype((void*)toluaI_ret,tolua_tag_CL_Canvas);
01879 }
01880 }
01881 return;
01882 error:
01883 tolua_error("#ferror in function 'new'.");
01884 }
01885
01886
01887 static void toluaI_CL_Canvas_delete0(void)
01888 {
01889 if (
01890 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
01891 !tolua_isnoobj(2)
01892 )
01893 goto error;
01894 else
01895 {
01896 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
01897 if (!self) tolua_error("invalid 'self' in function 'delete'");
01898 delete self;
01899 }
01900 return;
01901 error:
01902 tolua_error("#ferror in function 'delete'.");
01903 }
01904
01905
01906 static void toluaI_CL_Canvas_get_width0(void)
01907 {
01908 if (
01909 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
01910 !tolua_isnoobj(2)
01911 )
01912 goto error;
01913 else
01914 {
01915 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
01916 if (!self) tolua_error("invalid 'self' in function 'get_width'");
01917 {
01918 unsigned int toluaI_ret = self->get_width();
01919 tolua_pushnumber((double)toluaI_ret);
01920 }
01921 }
01922 return;
01923 error:
01924 tolua_error("#ferror in function 'get_width'.");
01925 }
01926
01927
01928 static void toluaI_CL_Canvas_get_height0(void)
01929 {
01930 if (
01931 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
01932 !tolua_isnoobj(2)
01933 )
01934 goto error;
01935 else
01936 {
01937 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
01938 if (!self) tolua_error("invalid 'self' in function 'get_height'");
01939 {
01940 unsigned int toluaI_ret = self->get_height();
01941 tolua_pushnumber((double)toluaI_ret);
01942 }
01943 }
01944 return;
01945 error:
01946 tolua_error("#ferror in function 'get_height'.");
01947 }
01948
01949
01950 static void toluaI_CL_Canvas_get_num_frames0(void)
01951 {
01952 if (
01953 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
01954 !tolua_isnoobj(2)
01955 )
01956 goto error;
01957 else
01958 {
01959 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
01960 if (!self) tolua_error("invalid 'self' in function 'get_num_frames'");
01961 {
01962 unsigned int toluaI_ret = self->get_num_frames();
01963 tolua_pushnumber((double)toluaI_ret);
01964 }
01965 }
01966 return;
01967 error:
01968 tolua_error("#ferror in function 'get_num_frames'.");
01969 }
01970
01971
01972 static void toluaI_CL_Canvas_get_red_mask0(void)
01973 {
01974 if (
01975 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
01976 !tolua_isnoobj(2)
01977 )
01978 goto error;
01979 else
01980 {
01981 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
01982 if (!self) tolua_error("invalid 'self' in function 'get_red_mask'");
01983 {
01984 unsigned int toluaI_ret = self->get_red_mask();
01985 tolua_pushnumber((double)toluaI_ret);
01986 }
01987 }
01988 return;
01989 error:
01990 tolua_error("#ferror in function 'get_red_mask'.");
01991 }
01992
01993
01994 static void toluaI_CL_Canvas_get_green_mask0(void)
01995 {
01996 if (
01997 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
01998 !tolua_isnoobj(2)
01999 )
02000 goto error;
02001 else
02002 {
02003 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
02004 if (!self) tolua_error("invalid 'self' in function 'get_green_mask'");
02005 {
02006 unsigned int toluaI_ret = self->get_green_mask();
02007 tolua_pushnumber((double)toluaI_ret);
02008 }
02009 }
02010 return;
02011 error:
02012 tolua_error("#ferror in function 'get_green_mask'.");
02013 }
02014
02015
02016 static void toluaI_CL_Canvas_get_blue_mask0(void)
02017 {
02018 if (
02019 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
02020 !tolua_isnoobj(2)
02021 )
02022 goto error;
02023 else
02024 {
02025 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
02026 if (!self) tolua_error("invalid 'self' in function 'get_blue_mask'");
02027 {
02028 unsigned int toluaI_ret = self->get_blue_mask();
02029 tolua_pushnumber((double)toluaI_ret);
02030 }
02031 }
02032 return;
02033 error:
02034 tolua_error("#ferror in function 'get_blue_mask'.");
02035 }
02036
02037
02038 static void toluaI_CL_Canvas_get_alpha_mask0(void)
02039 {
02040 if (
02041 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
02042 !tolua_isnoobj(2)
02043 )
02044 goto error;
02045 else
02046 {
02047 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
02048 if (!self) tolua_error("invalid 'self' in function 'get_alpha_mask'");
02049 {
02050 unsigned int toluaI_ret = self->get_alpha_mask();
02051 tolua_pushnumber((double)toluaI_ret);
02052 }
02053 }
02054 return;
02055 error:
02056 tolua_error("#ferror in function 'get_alpha_mask'.");
02057 }
02058
02059
02060 static void toluaI_CL_Canvas_get_pitch0(void)
02061 {
02062 if (
02063 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
02064 !tolua_isnoobj(2)
02065 )
02066 goto error;
02067 else
02068 {
02069 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
02070 if (!self) tolua_error("invalid 'self' in function 'get_pitch'");
02071 {
02072 unsigned int toluaI_ret = self->get_pitch();
02073 tolua_pushnumber((double)toluaI_ret);
02074 }
02075 }
02076 return;
02077 error:
02078 tolua_error("#ferror in function 'get_pitch'.");
02079 }
02080
02081
02082 static void toluaI_CL_Canvas_is_indexed0(void)
02083 {
02084 if (
02085 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
02086 !tolua_isnoobj(2)
02087 )
02088 goto error;
02089 else
02090 {
02091 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
02092 if (!self) tolua_error("invalid 'self' in function 'is_indexed'");
02093 {
02094 int toluaI_ret = self->is_indexed();
02095 tolua_pushnumber((double)toluaI_ret);
02096 }
02097 }
02098 return;
02099 error:
02100 tolua_error("#ferror in function 'is_indexed'.");
02101 }
02102
02103
02104 static void toluaI_CL_Canvas_set_palette0(void)
02105 {
02106 if (
02107 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
02108 !tolua_istype(2,tolua_tag_CL_Palette,0) ||
02109 !tolua_isnoobj(3)
02110 )
02111 goto error;
02112 else
02113 {
02114 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
02115 CL_Palette* palette = ((CL_Palette*) tolua_getusertype(2,0));
02116 if (!self) tolua_error("invalid 'self' in function 'set_palette'");
02117 {
02118 self->set_palette(palette);
02119 }
02120 }
02121 return;
02122 error:
02123 tolua_error("#ferror in function 'set_palette'.");
02124 }
02125
02126
02127 static void toluaI_CL_Canvas_get_palette0(void)
02128 {
02129 if (
02130 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
02131 !tolua_isnoobj(2)
02132 )
02133 goto error;
02134 else
02135 {
02136 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
02137 if (!self) tolua_error("invalid 'self' in function 'get_palette'");
02138 {
02139 CL_Palette* toluaI_ret = self->get_palette();
02140 tolua_pushusertype((void*)toluaI_ret,tolua_tag_CL_Palette);
02141 }
02142 }
02143 return;
02144 error:
02145 tolua_error("#ferror in function 'get_palette'.");
02146 }
02147
02148
02149 static void toluaI_CL_Canvas_set_src_colorkey0(void)
02150 {
02151 if (
02152 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
02153 !tolua_istype(2,tolua_tag_number,0) ||
02154 !tolua_isnoobj(3)
02155 )
02156 goto error;
02157 else
02158 {
02159 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
02160 unsigned int trans_col = ((unsigned int) tolua_getnumber(2,0));
02161 if (!self) tolua_error("invalid 'self' in function 'set_src_colorkey'");
02162 {
02163 self->set_src_colorkey(trans_col);
02164 }
02165 }
02166 return;
02167 error:
02168 tolua_error("#ferror in function 'set_src_colorkey'.");
02169 }
02170
02171
02172 static void toluaI_CL_Canvas_uses_src_colorkey0(void)
02173 {
02174 if (
02175 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
02176 !tolua_isnoobj(2)
02177 )
02178 goto error;
02179 else
02180 {
02181 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
02182 if (!self) tolua_error("invalid 'self' in function 'uses_src_colorkey'");
02183 {
02184 int toluaI_ret = self->uses_src_colorkey();
02185 tolua_pushnumber((double)toluaI_ret);
02186 }
02187 }
02188 return;
02189 error:
02190 tolua_error("#ferror in function 'uses_src_colorkey'.");
02191 }
02192
02193
02194 static void toluaI_CL_Canvas_get_src_colorkey0(void)
02195 {
02196 if (
02197 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
02198 !tolua_isnoobj(2)
02199 )
02200 goto error;
02201 else
02202 {
02203 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
02204 if (!self) tolua_error("invalid 'self' in function 'get_src_colorkey'");
02205 {
02206 unsigned int toluaI_ret = self->get_src_colorkey();
02207 tolua_pushnumber((double)toluaI_ret);
02208 }
02209 }
02210 return;
02211 error:
02212 tolua_error("#ferror in function 'get_src_colorkey'.");
02213 }
02214
02215
02216 static void toluaI_CL_Canvas_get_data0(void)
02217 {
02218 if (
02219 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
02220 !tolua_isnoobj(2)
02221 )
02222 goto error;
02223 else
02224 {
02225 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
02226 if (!self) tolua_error("invalid 'self' in function 'get_data'");
02227 {
02228 void* toluaI_ret = self->get_data();
02229 tolua_pushuserdata(toluaI_ret);
02230 }
02231 }
02232 return;
02233 error:
02234 tolua_error("#ferror in function 'get_data'.");
02235 }
02236
02237
02238 static void toluaI_CL_Canvas_lock0(void)
02239 {
02240 if (
02241 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
02242 !tolua_isnoobj(2)
02243 )
02244 goto error;
02245 else
02246 {
02247 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
02248 if (!self) tolua_error("invalid 'self' in function 'lock'");
02249 {
02250 self->lock();
02251 }
02252 }
02253 return;
02254 error:
02255 tolua_error("#ferror in function 'lock'.");
02256 }
02257
02258
02259 static void toluaI_CL_Canvas_unlock0(void)
02260 {
02261 if (
02262 !tolua_istype(1,tolua_tag_CL_Canvas,0) ||
02263 !tolua_isnoobj(2)
02264 )
02265 goto error;
02266 else
02267 {
02268 CL_Canvas* self = (CL_Canvas*) tolua_getusertype(1,0);
02269 if (!self) tolua_error("invalid 'self' in function 'unlock'");
02270 {
02271 self->unlock();
02272 }
02273 }
02274 return;
02275 error:
02276 tolua_error("#ferror in function 'unlock'.");
02277 }
02278
02279
02280 static void toluaI_get_CL_ClipRect_m_x1(void)
02281 {
02282 CL_ClipRect* self = (CL_ClipRect*) tolua_getusertype(1,0);
02283 if (!self) tolua_error("invalid 'self' in accessing variable 'm_x1'");
02284 tolua_pushnumber((double)self->m_x1);
02285 }
02286
02287
02288 static void toluaI_set_CL_ClipRect_m_x1(void)
02289 {
02290 CL_ClipRect* self = (CL_ClipRect*) tolua_getusertype(1,0);
02291 if (!self) tolua_error("invalid 'self' in accessing variable 'm_x1'");
02292 if (!tolua_istype(2,tolua_tag_number,0))
02293 tolua_error("#vinvalid type in variable assignment.");
02294 self->m_x1 = ((int) tolua_getnumber(2,0));
02295 }
02296
02297
02298 static void toluaI_get_CL_ClipRect_m_y1(void)
02299 {
02300 CL_ClipRect* self = (CL_ClipRect*) tolua_getusertype(1,0);
02301 if (!self) tolua_error("invalid 'self' in accessing variable 'm_y1'");
02302 tolua_pushnumber((double)self->m_y1);
02303 }
02304
02305
02306 static void toluaI_set_CL_ClipRect_m_y1(void)
02307 {
02308 CL_ClipRect* self = (CL_ClipRect*) tolua_getusertype(1,0);
02309 if (!self) tolua_error("invalid 'self' in accessing variable 'm_y1'");
02310 if (!tolua_istype(2,tolua_tag_number,0))
02311 tolua_error("#vinvalid type in variable assignment.");
02312 self->m_y1 = ((int) tolua_getnumber(2,0));
02313 }
02314
02315
02316 static void toluaI_get_CL_ClipRect_m_x2(void)
02317 {
02318 CL_ClipRect* self = (CL_ClipRect*) tolua_getusertype(1,0);
02319 if (!self) tolua_error("invalid 'self' in accessing variable 'm_x2'");
02320 tolua_pushnumber((double)self->m_x2);
02321 }
02322
02323
02324 static void toluaI_set_CL_ClipRect_m_x2(void)
02325 {
02326 CL_ClipRect* self = (CL_ClipRect*) tolua_getusertype(1,0);
02327 if (!self) tolua_error("invalid 'self' in accessing variable 'm_x2'");
02328 if (!tolua_istype(2,tolua_tag_number,0))
02329 tolua_error("#vinvalid type in variable assignment.");
02330 self->m_x2 = ((int) tolua_getnumber(2,0));
02331 }
02332
02333
02334 static void toluaI_get_CL_ClipRect_m_y2(void)
02335 {
02336 CL_ClipRect* self = (CL_ClipRect*) tolua_getusertype(1,0);
02337 if (!self) tolua_error("invalid 'self' in accessing variable 'm_y2'");
02338 tolua_pushnumber((double)self->m_y2);
02339 }
02340
02341
02342 static void toluaI_set_CL_ClipRect_m_y2(void)
02343 {
02344 CL_ClipRect* self = (CL_ClipRect*) tolua_getusertype(1,0);
02345 if (!self) tolua_error("invalid 'self' in accessing variable 'm_y2'");
02346 if (!tolua_istype(2,tolua_tag_number,0))
02347 tolua_error("#vinvalid type in variable assignment.");
02348 self->m_y2 = ((int) tolua_getnumber(2,0));
02349 }
02350
02351
02352 static void toluaI_CL_ClipRect_new0(void)
02353 {
02354 if (
02355 !tolua_isnoobj(2)
02356 )
02357 goto error;
02358 else
02359 {
02360 {
02361 CL_ClipRect* toluaI_ret = new CL_ClipRect();
02362 tolua_pushusertype((void*)toluaI_ret,tolua_tag_CL_ClipRect);
02363 }
02364 }
02365 return;
02366 error:
02367 tolua_error("#ferror in function 'new'.");
02368 }
02369
02370
02371 static void toluaI_CL_ClipRect_new1(void)
02372 {
02373 if (
02374 !tolua_istype(2,tolua_tag_const_CL_ClipRect,0) ||
02375 !tolua_isnoobj(3)
02376 )
02377 goto error;
02378 else
02379 {
02380 const CL_ClipRect* rect = ((const CL_ClipRect*) tolua_getusertype(2,0));
02381 {
02382 CL_ClipRect* toluaI_ret = new CL_ClipRect(*rect);
02383 tolua_pushusertype((void*)toluaI_ret,tolua_tag_CL_ClipRect);
02384 }
02385 }
02386 return;
02387 error:
02388 toluaI_CL_ClipRect_new0();
02389 }
02390
02391
02392 static void toluaI_CL_ClipRect_new2(void)
02393 {
02394 if (
02395 !tolua_istype(2,tolua_tag_number,0) ||
02396 !tolua_istype(3,tolua_tag_number,0) ||
02397 !tolua_istype(4,tolua_tag_number,0) ||
02398 !tolua_istype(5,tolua_tag_number,0) ||
02399 !tolua_isnoobj(6)
02400 )
02401 goto error;
02402 else
02403 {
02404 int x1 = ((int) tolua_getnumber(2,0));
02405 int y1 = ((int) tolua_getnumber(3,0));
02406 int x2 = ((int) tolua_getnumber(4,0));
02407 int y2 = ((int) tolua_getnumber(5,0));
02408 {
02409 CL_ClipRect* toluaI_ret = new CL_ClipRect(x1,y1,x2,y2);
02410 tolua_pushusertype((void*)toluaI_ret,tolua_tag_CL_ClipRect);
02411 }
02412 }
02413 return;
02414 error:
02415 toluaI_CL_ClipRect_new1();
02416 }
02417
02418
02419 static void toluaI_CL_ClipRect_delete0(void)
02420 {
02421 if (
02422 !tolua_istype(1,tolua_tag_CL_ClipRect,0) ||
02423 !tolua_isnoobj(2)
02424 )
02425 goto error;
02426 else
02427 {
02428 CL_ClipRect* self = (CL_ClipRect*) tolua_getusertype(1,0);
02429 if (!self) tolua_error("invalid 'self' in function 'delete'");
02430 delete self;
02431 }
02432 return;
02433 error:
02434 tolua_error("#ferror in function 'delete'.");
02435 }
02436
02437
02438 static void toluaI_CL_ClipRect_test_clipped0(void)
02439 {
02440 if (
02441 !tolua_istype(1,tolua_tag_CL_ClipRect,0) ||
02442 !tolua_istype(2,tolua_tag_const_CL_ClipRect,0) ||
02443 !tolua_isnoobj(3)
02444 )
02445 goto error;
02446 else
02447 {
02448 CL_ClipRect* self = (CL_ClipRect*) tolua_getusertype(1,0);
02449 const CL_ClipRect* rect = ((const CL_ClipRect*) tolua_getusertype(2,0));
02450 if (!self) tolua_error("invalid 'self' in function 'test_clipped'");
02451 {
02452 int toluaI_ret = self->test_clipped(*rect);
02453 tolua_pushnumber((double)toluaI_ret);
02454 }
02455 }
02456 return;
02457 error:
02458 tolua_error("#ferror in function 'test_clipped'.");
02459 }
02460
02461
02462 static void toluaI_CL_ClipRect_test_unclipped0(void)
02463 {
02464 if (
02465 !tolua_istype(1,tolua_tag_CL_ClipRect,0) ||
02466 !tolua_istype(2,tolua_tag_const_CL_ClipRect,0) ||
02467 !tolua_isnoobj(3)
02468 )
02469 goto error;
02470 else
02471 {
02472 CL_ClipRect* self = (CL_ClipRect*) tolua_getusertype(1,0);
02473 const CL_ClipRect* rect = ((const CL_ClipRect*) tolua_getusertype(2,0));
02474 if (!self) tolua_error("invalid 'self' in function 'test_unclipped'");
02475 {
02476 int toluaI_ret = self->test_unclipped(*rect);
02477 tolua_pushnumber((double)toluaI_ret);
02478 }
02479 }
02480 return;
02481 error:
02482 tolua_error("#ferror in function 'test_unclipped'.");
02483 }
02484
02485
02486 static void toluaI_CL_ClipRect_test_all_clipped0(void)
02487 {
02488 if (
02489 !tolua_istype(1,tolua_tag_CL_ClipRect,0) ||
02490 !tolua_istype(2,tolua_tag_const_CL_ClipRect,0) ||
02491 !tolua_isnoobj(3)
02492 )
02493 goto error;
02494 else
02495 {
02496 CL_ClipRect* self = (CL_ClipRect*) tolua_getusertype(1,0);
02497 const CL_ClipRect* rect = ((const CL_ClipRect*) tolua_getusertype(2,0));
02498 if (!self) tolua_error("invalid 'self' in function 'test_all_clipped'");
02499 {
02500 int toluaI_ret = self->test_all_clipped(*rect);
02501 tolua_pushnumber((double)toluaI_ret);
02502 }
02503 }
02504 return;
02505 error:
02506 tolua_error("#ferror in function 'test_all_clipped'.");
02507 }
02508
02509
02510 static void toluaI_CL_ClipRect_clip0(void)
02511 {
02512 if (
02513 !tolua_istype(1,tolua_tag_CL_ClipRect,0) ||
02514 !tolua_istype(2,tolua_tag_const_CL_ClipRect,0) ||
02515 !tolua_isnoobj(3)
02516 )
02517 goto error;
02518 else
02519 {
02520 CL_ClipRect* self = (CL_ClipRect*) tolua_getusertype(1,0);
02521 const CL_ClipRect* rect = ((const CL_ClipRect*) tolua_getusertype(2,0));
02522 if (!self) tolua_error("invalid 'self' in function 'clip'");
02523 {
02524 CL_ClipRect toluaI_ret = self->clip(*rect);
02525 {
02526 #ifdef __cplusplus
02527 void* toluaI_clone = new CL_ClipRect(toluaI_ret);
02528 #else
02529 void* toluaI_clone = tolua_copy((void*)&toluaI_ret,sizeof(CL_ClipRect));
02530 #endif
02531 tolua_pushusertype(tolua_doclone(toluaI_clone,tolua_tag_CL_ClipRect),tolua_tag_CL_ClipRect);
02532 }
02533 }
02534 }
02535 return;
02536 error:
02537 tolua_error("#ferror in function 'clip'.");
02538 }
02539
02540
02541 int tolua_clanLua_open (void)
02542 {
02543 tolua_open();
02544 lua_beginblock();
02545 toluaI_init_tag();
02546 tolua_constant(NULL,"TRUE",TRUE);
02547 tolua_constant(NULL,"FALSE",FALSE);
02548 tolua_cclass("CL_Display","");
02549 tolua_function("CL_Display","delete",toluaI_CL_Display_delete0);
02550 tolua_function("CL_Display","flip_display",toluaI_CL_Display_flip_display0);
02551 tolua_function("CL_Display","clear_display",toluaI_CL_Display_clear_display0);
02552 tolua_function("CL_Display","set_palette",toluaI_CL_Display_set_palette0);
02553 tolua_function("CL_Display","get_palette",toluaI_CL_Display_get_palette0);
02554 tolua_function("CL_Display","select_card",toluaI_CL_Display_select_card0);
02555 tolua_function("CL_Display","get_current_card",toluaI_CL_Display_get_current_card0);
02556 tolua_function("CL_Display","set_videomode",toluaI_CL_Display_set_videomode0);
02557 tolua_function("CL_Display","set_videomode",toluaI_CL_Display_set_videomode1);
02558 tolua_function("CL_Display","get_width",toluaI_CL_Display_get_width0);
02559 tolua_function("CL_Display","get_height",toluaI_CL_Display_get_height0);
02560 tolua_function("CL_Display","get_bpp",toluaI_CL_Display_get_bpp0);
02561 tolua_function("CL_Display","push_clip_rect",toluaI_CL_Display_push_clip_rect0);
02562 tolua_function("CL_Display","push_clip_rect",toluaI_CL_Display_push_clip_rect1);
02563 tolua_function("CL_Display","get_clip_rect",toluaI_CL_Display_get_clip_rect0);
02564 tolua_function("CL_Display","set_clip_rect",toluaI_CL_Display_set_clip_rect0);
02565 tolua_function("CL_Display","pop_clip_rect",toluaI_CL_Display_pop_clip_rect0);
02566 tolua_function("CL_Display","fill_rect",toluaI_CL_Display_fill_rect0);
02567 tolua_function("CL_Display","draw_line",toluaI_CL_Display_draw_line0);
02568 tolua_function("CL_Display","sync_buffers",toluaI_CL_Display_sync_buffers0);
02569 tolua_cclass("CL_System","");
02570 tolua_function("CL_System","keep_alive",toluaI_CL_System_keep_alive0);
02571 tolua_function("CL_System","sleep",toluaI_CL_System_sleep0);
02572 tolua_function("CL_System","get_time",toluaI_CL_System_get_time0);
02573 tolua_cclass("CL_Mouse","CL_InputDevice");
02574 tolua_function("CL_Mouse","delete",toluaI_CL_Mouse_delete0);
02575 tolua_function("CL_Mouse","get_x",toluaI_CL_Mouse_get_x0);
02576 tolua_function("CL_Mouse","get_y",toluaI_CL_Mouse_get_y0);
02577 tolua_function("CL_Mouse","left_pressed",toluaI_CL_Mouse_left_pressed0);
02578 tolua_function("CL_Mouse","middle_pressed",toluaI_CL_Mouse_middle_pressed0);
02579 tolua_function("CL_Mouse","right_pressed",toluaI_CL_Mouse_right_pressed0);
02580 tolua_cclass("CL_Keyboard","CL_InputDevice");
02581 tolua_function("CL_Keyboard","delete",toluaI_CL_Keyboard_delete0);
02582 tolua_function("CL_Keyboard","get_keycode",toluaI_CL_Keyboard_get_keycode0);
02583 tolua_constant(NULL,"CL_KEY_A",CL_KEY_A);
02584 tolua_constant(NULL,"CL_KEY_B",CL_KEY_B);
02585 tolua_constant(NULL,"CL_KEY_C",CL_KEY_C);
02586 tolua_constant(NULL,"CL_KEY_D",CL_KEY_D);
02587 tolua_constant(NULL,"CL_KEY_E",CL_KEY_E);
02588 tolua_constant(NULL,"CL_KEY_F",CL_KEY_F);
02589 tolua_constant(NULL,"CL_KEY_G",CL_KEY_G);
02590 tolua_constant(NULL,"CL_KEY_H",CL_KEY_H);
02591 tolua_constant(NULL,"CL_KEY_I",CL_KEY_I);
02592 tolua_constant(NULL,"CL_KEY_J",CL_KEY_J);
02593 tolua_constant(NULL,"CL_KEY_K",CL_KEY_K);
02594 tolua_constant(NULL,"CL_KEY_L",CL_KEY_L);
02595 tolua_constant(NULL,"CL_KEY_M",CL_KEY_M);
02596 tolua_constant(NULL,"CL_KEY_N",CL_KEY_N);
02597 tolua_constant(NULL,"CL_KEY_O",CL_KEY_O);
02598 tolua_constant(NULL,"CL_KEY_P",CL_KEY_P);
02599 tolua_constant(NULL,"CL_KEY_Q",CL_KEY_Q);
02600 tolua_constant(NULL,"CL_KEY_R",CL_KEY_R);
02601 tolua_constant(NULL,"CL_KEY_S",CL_KEY_S);
02602 tolua_constant(NULL,"CL_KEY_T",CL_KEY_T);
02603 tolua_constant(NULL,"CL_KEY_U",CL_KEY_U);
02604 tolua_constant(NULL,"CL_KEY_V",CL_KEY_V);
02605 tolua_constant(NULL,"CL_KEY_W",CL_KEY_W);
02606 tolua_constant(NULL,"CL_KEY_X",CL_KEY_X);
02607 tolua_constant(NULL,"CL_KEY_Y",CL_KEY_Y);
02608 tolua_constant(NULL,"CL_KEY_Z",CL_KEY_Z);
02609 tolua_constant(NULL,"CL_KEY_0",CL_KEY_0);
02610 tolua_constant(NULL,"CL_KEY_1",CL_KEY_1);
02611 tolua_constant(NULL,"CL_KEY_2",CL_KEY_2);
02612 tolua_constant(NULL,"CL_KEY_3",CL_KEY_3);
02613 tolua_constant(NULL,"CL_KEY_4",CL_KEY_4);
02614 tolua_constant(NULL,"CL_KEY_5",CL_KEY_5);
02615 tolua_constant(NULL,"CL_KEY_6",CL_KEY_6);
02616 tolua_constant(NULL,"CL_KEY_7",CL_KEY_7);
02617 tolua_constant(NULL,"CL_KEY_8",CL_KEY_8);
02618 tolua_constant(NULL,"CL_KEY_9",CL_KEY_9);
02619 tolua_constant(NULL,"CL_KEY_F1",CL_KEY_F1);
02620 tolua_constant(NULL,"CL_KEY_F2",CL_KEY_F2);
02621 tolua_constant(NULL,"CL_KEY_F3",CL_KEY_F3);
02622 tolua_constant(NULL,"CL_KEY_F4",CL_KEY_F4);
02623 tolua_constant(NULL,"CL_KEY_F5",CL_KEY_F5);
02624 tolua_constant(NULL,"CL_KEY_F6",CL_KEY_F6);
02625 tolua_constant(NULL,"CL_KEY_F7",CL_KEY_F7);
02626 tolua_constant(NULL,"CL_KEY_F8",CL_KEY_F8);
02627 tolua_constant(NULL,"CL_KEY_F9",CL_KEY_F9);
02628 tolua_constant(NULL,"CL_KEY_F10",CL_KEY_F10);
02629 tolua_constant(NULL,"CL_KEY_F11",CL_KEY_F11);
02630 tolua_constant(NULL,"CL_KEY_F12",CL_KEY_F12);
02631 tolua_constant(NULL,"CL_KEY_ESCAPE",CL_KEY_ESCAPE);
02632 tolua_constant(NULL,"CL_KEY_LEFT",CL_KEY_LEFT);
02633 tolua_constant(NULL,"CL_KEY_RIGHT",CL_KEY_RIGHT);
02634 tolua_constant(NULL,"CL_KEY_UP",CL_KEY_UP);
02635 tolua_constant(NULL,"CL_KEY_DOWN",CL_KEY_DOWN);
02636 tolua_constant(NULL,"CL_KEY_LCTRL",CL_KEY_LCTRL);
02637 tolua_constant(NULL,"CL_KEY_RCTRL",CL_KEY_RCTRL);
02638 tolua_constant(NULL,"CL_KEY_LSHIFT",CL_KEY_LSHIFT);
02639 tolua_constant(NULL,"CL_KEY_RSHIFT",CL_KEY_RSHIFT);
02640 tolua_constant(NULL,"CL_KEY_ALT",CL_KEY_ALT);
02641 tolua_constant(NULL,"CL_KEY_ALTGR",CL_KEY_ALTGR);
02642 tolua_constant(NULL,"CL_KEY_TAB",CL_KEY_TAB);
02643 tolua_constant(NULL,"CL_KEY_ENTER",CL_KEY_ENTER);
02644 tolua_constant(NULL,"CL_KEY_SPACE",CL_KEY_SPACE);
02645 tolua_constant(NULL,"CL_KEY_BACKSPACE",CL_KEY_BACKSPACE);
02646 tolua_constant(NULL,"CL_KEY_INSERT",CL_KEY_INSERT);
02647 tolua_constant(NULL,"CL_KEY_DELETE",CL_KEY_DELETE);
02648 tolua_constant(NULL,"CL_KEY_HOME",CL_KEY_HOME);
02649 tolua_constant(NULL,"CL_KEY_END",CL_KEY_END);
02650 tolua_constant(NULL,"CL_KEY_PAGEUP",CL_KEY_PAGEUP);
02651 tolua_constant(NULL,"CL_KEY_PAGEDOWN",CL_KEY_PAGEDOWN);
02652 tolua_constant(NULL,"CL_KEY_CAPSLOCK",CL_KEY_CAPSLOCK);
02653 tolua_constant(NULL,"CL_KEY_NUMLOCK",CL_KEY_NUMLOCK);
02654 tolua_constant(NULL,"CL_KEY_SCRLOCK",CL_KEY_SCRLOCK);
02655 tolua_constant(NULL,"CL_KEY_PRINT",CL_KEY_PRINT);
02656 tolua_constant(NULL,"CL_KEY_PAUSE",CL_KEY_PAUSE);
02657 tolua_constant(NULL,"CL_KEY_KP_DIV",CL_KEY_KP_DIV);
02658 tolua_constant(NULL,"CL_KEY_KP_MULT",CL_KEY_KP_MULT);
02659 tolua_constant(NULL,"CL_KEY_KP_MINUS",CL_KEY_KP_MINUS);
02660 tolua_constant(NULL,"CL_KEY_KP_PLUS",CL_KEY_KP_PLUS);
02661 tolua_constant(NULL,"CL_KEY_KP_ENTER",CL_KEY_KP_ENTER);
02662 tolua_constant(NULL,"CL_KEY_NONE_OF_THE_ABOVE",CL_KEY_NONE_OF_THE_ABOVE);
02663 tolua_constant(NULL,"CL_NUM_KEYS",CL_NUM_KEYS);
02664 tolua_cclass("CL_Surface","");
02665 tolua_function("CL_Surface","load",toluaI_CL_Surface_load0);
02666 tolua_function("CL_Surface","create",toluaI_CL_Surface_create0);
02667 tolua_function("CL_Surface","delete",toluaI_CL_Surface_delete0);
02668 tolua_function("CL_Surface","reload",toluaI_CL_Surface_reload0);
02669 tolua_function("CL_Surface","get_provider",toluaI_CL_Surface_get_provider0);
02670 tolua_function("CL_Surface","put_screen",toluaI_CL_Surface_put_screen0);
02671 tolua_function("CL_Surface","put_screen",toluaI_CL_Surface_put_screen1);
02672 tolua_function("CL_Surface","put_screen",toluaI_CL_Surface_put_screen2);
02673 tolua_function("CL_Surface","put_target",toluaI_CL_Surface_put_target0);
02674 tolua_function("CL_Surface","get_width",toluaI_CL_Surface_get_width0);
02675 tolua_function("CL_Surface","get_height",toluaI_CL_Surface_get_height0);
02676 tolua_function("CL_Surface","get_num_frames",toluaI_CL_Surface_get_num_frames0);
02677 tolua_function("CL_Surface","is_video",toluaI_CL_Surface_is_video0);
02678 tolua_function("CL_Surface","is_loaded",toluaI_CL_Surface_is_loaded0);
02679 tolua_function("CL_Surface","convert_video",toluaI_CL_Surface_convert_video0);
02680 tolua_function("CL_Surface","convert_system",toluaI_CL_Surface_convert_system0);
02681 tolua_function("CL_Surface","flush",toluaI_CL_Surface_flush0);
02682 tolua_cclass("CL_Target","");
02683 tolua_function("CL_Target","delete",toluaI_CL_Target_delete0);
02684 tolua_function("CL_Target","is_video",toluaI_CL_Target_is_video0);
02685 tolua_function("CL_Target","lock",toluaI_CL_Target_lock0);
02686 tolua_function("CL_Target","unlock",toluaI_CL_Target_unlock0);
02687 tolua_function("CL_Target","get_data",toluaI_CL_Target_get_data0);
02688 tolua_function("CL_Target","get_num_frames",toluaI_CL_Target_get_num_frames0);
02689 tolua_function("CL_Target","get_width",toluaI_CL_Target_get_width0);
02690 tolua_function("CL_Target","get_height",toluaI_CL_Target_get_height0);
02691 tolua_function("CL_Target","get_pitch",toluaI_CL_Target_get_pitch0);
02692 tolua_function("CL_Target","get_depth",toluaI_CL_Target_get_depth0);
02693 tolua_function("CL_Target","get_bytes_per_pixel",toluaI_CL_Target_get_bytes_per_pixel0);
02694 tolua_function("CL_Target","is_indexed",toluaI_CL_Target_is_indexed0);
02695 tolua_function("CL_Target","get_red_mask",toluaI_CL_Target_get_red_mask0);
02696 tolua_function("CL_Target","get_green_mask",toluaI_CL_Target_get_green_mask0);
02697 tolua_function("CL_Target","get_blue_mask",toluaI_CL_Target_get_blue_mask0);
02698 tolua_function("CL_Target","get_alpha_mask",toluaI_CL_Target_get_alpha_mask0);
02699 tolua_function("CL_Target","get_palette",toluaI_CL_Target_get_palette0);
02700 tolua_function("CL_Target","push_clip_rect",toluaI_CL_Target_push_clip_rect0);
02701 tolua_function("CL_Target","push_clip_rect",toluaI_CL_Target_push_clip_rect1);
02702 tolua_function("CL_Target","get_clip_rect",toluaI_CL_Target_get_clip_rect0);
02703 tolua_function("CL_Target","set_clip_rect",toluaI_CL_Target_set_clip_rect0);
02704 tolua_function("CL_Target","pop_clip_rect",toluaI_CL_Target_pop_clip_rect0);
02705 tolua_function("CL_Target","fill_rect",toluaI_CL_Target_fill_rect0);
02706 tolua_function("CL_Target","draw_line",toluaI_CL_Target_draw_line0);
02707 tolua_cclass("CL_SurfaceProvider","CL_Target");
02708 tolua_function("CL_SurfaceProvider","delete",toluaI_CL_SurfaceProvider_delete0);
02709 tolua_function("CL_SurfaceProvider","get_translate_x",toluaI_CL_SurfaceProvider_get_translate_x0);
02710 tolua_function("CL_SurfaceProvider","get_translate_y",toluaI_CL_SurfaceProvider_get_translate_y0);
02711 tolua_function("CL_SurfaceProvider","uses_src_colorkey",toluaI_CL_SurfaceProvider_uses_src_colorkey0);
02712 tolua_function("CL_SurfaceProvider","get_src_colorkey",toluaI_CL_SurfaceProvider_get_src_colorkey0);
02713 tolua_cclass("CL_Canvas","CL_SurfaceProvider");
02714 tolua_function("CL_Canvas","create",toluaI_CL_Canvas_create0);
02715 tolua_function("CL_Canvas","new",toluaI_CL_Canvas_new0);
02716 tolua_function("CL_Canvas","delete",toluaI_CL_Canvas_delete0);
02717 tolua_function("CL_Canvas","get_width",toluaI_CL_Canvas_get_width0);
02718 tolua_function("CL_Canvas","get_height",toluaI_CL_Canvas_get_height0);
02719 tolua_function("CL_Canvas","get_num_frames",toluaI_CL_Canvas_get_num_frames0);
02720 tolua_function("CL_Canvas","get_red_mask",toluaI_CL_Canvas_get_red_mask0);
02721 tolua_function("CL_Canvas","get_green_mask",toluaI_CL_Canvas_get_green_mask0);
02722 tolua_function("CL_Canvas","get_blue_mask",toluaI_CL_Canvas_get_blue_mask0);
02723 tolua_function("CL_Canvas","get_alpha_mask",toluaI_CL_Canvas_get_alpha_mask0);
02724 tolua_function("CL_Canvas","get_pitch",toluaI_CL_Canvas_get_pitch0);
02725 tolua_function("CL_Canvas","is_indexed",toluaI_CL_Canvas_is_indexed0);
02726 tolua_function("CL_Canvas","set_palette",toluaI_CL_Canvas_set_palette0);
02727 tolua_function("CL_Canvas","get_palette",toluaI_CL_Canvas_get_palette0);
02728 tolua_function("CL_Canvas","set_src_colorkey",toluaI_CL_Canvas_set_src_colorkey0);
02729 tolua_function("CL_Canvas","uses_src_colorkey",toluaI_CL_Canvas_uses_src_colorkey0);
02730 tolua_function("CL_Canvas","get_src_colorkey",toluaI_CL_Canvas_get_src_colorkey0);
02731 tolua_function("CL_Canvas","get_data",toluaI_CL_Canvas_get_data0);
02732 tolua_function("CL_Canvas","lock",toluaI_CL_Canvas_lock0);
02733 tolua_function("CL_Canvas","unlock",toluaI_CL_Canvas_unlock0);
02734 tolua_cclass("CL_ClipRect","");
02735 tolua_tablevar("CL_ClipRect","m_x1",toluaI_get_CL_ClipRect_m_x1,toluaI_set_CL_ClipRect_m_x1);
02736 tolua_tablevar("CL_ClipRect","m_y1",toluaI_get_CL_ClipRect_m_y1,toluaI_set_CL_ClipRect_m_y1);
02737 tolua_tablevar("CL_ClipRect","m_x2",toluaI_get_CL_ClipRect_m_x2,toluaI_set_CL_ClipRect_m_x2);
02738 tolua_tablevar("CL_ClipRect","m_y2",toluaI_get_CL_ClipRect_m_y2,toluaI_set_CL_ClipRect_m_y2);
02739 tolua_function("CL_ClipRect","new",toluaI_CL_ClipRect_new0);
02740 tolua_function("CL_ClipRect","new",toluaI_CL_ClipRect_new1);
02741 tolua_function("CL_ClipRect","new",toluaI_CL_ClipRect_new2);
02742 tolua_function("CL_ClipRect","delete",toluaI_CL_ClipRect_delete0);
02743 tolua_function("CL_ClipRect","test_clipped",toluaI_CL_ClipRect_test_clipped0);
02744 tolua_function("CL_ClipRect","test_unclipped",toluaI_CL_ClipRect_test_unclipped0);
02745 tolua_function("CL_ClipRect","test_all_clipped",toluaI_CL_ClipRect_test_all_clipped0);
02746 tolua_function("CL_ClipRect","clip",toluaI_CL_ClipRect_clip0);
02747 lua_endblock();
02748 return 1;
02749 }
02750
02751 void tolua_clanLua_close (void)
02752 {
02753 lua_pushnil(); lua_setglobal("TRUE");
02754 lua_pushnil(); lua_setglobal("FALSE");
02755 lua_pushnil(); lua_setglobal("CL_Display");
02756 lua_pushnil(); lua_setglobal("CL_System");
02757 lua_pushnil(); lua_setglobal("CL_Mouse");
02758 lua_pushnil(); lua_setglobal("CL_Keyboard");
02759 lua_pushnil(); lua_setglobal("CL_KEY_A");
02760 lua_pushnil(); lua_setglobal("CL_KEY_B");
02761 lua_pushnil(); lua_setglobal("CL_KEY_C");
02762 lua_pushnil(); lua_setglobal("CL_KEY_D");
02763 lua_pushnil(); lua_setglobal("CL_KEY_E");
02764 lua_pushnil(); lua_setglobal("CL_KEY_F");
02765 lua_pushnil(); lua_setglobal("CL_KEY_G");
02766 lua_pushnil(); lua_setglobal("CL_KEY_H");
02767 lua_pushnil(); lua_setglobal("CL_KEY_I");
02768 lua_pushnil(); lua_setglobal("CL_KEY_J");
02769 lua_pushnil(); lua_setglobal("CL_KEY_K");
02770 lua_pushnil(); lua_setglobal("CL_KEY_L");
02771 lua_pushnil(); lua_setglobal("CL_KEY_M");
02772 lua_pushnil(); lua_setglobal("CL_KEY_N");
02773 lua_pushnil(); lua_setglobal("CL_KEY_O");
02774 lua_pushnil(); lua_setglobal("CL_KEY_P");
02775 lua_pushnil(); lua_setglobal("CL_KEY_Q");
02776 lua_pushnil(); lua_setglobal("CL_KEY_R");
02777 lua_pushnil(); lua_setglobal("CL_KEY_S");
02778 lua_pushnil(); lua_setglobal("CL_KEY_T");
02779 lua_pushnil(); lua_setglobal("CL_KEY_U");
02780 lua_pushnil(); lua_setglobal("CL_KEY_V");
02781 lua_pushnil(); lua_setglobal("CL_KEY_W");
02782 lua_pushnil(); lua_setglobal("CL_KEY_X");
02783 lua_pushnil(); lua_setglobal("CL_KEY_Y");
02784 lua_pushnil(); lua_setglobal("CL_KEY_Z");
02785 lua_pushnil(); lua_setglobal("CL_KEY_0");
02786 lua_pushnil(); lua_setglobal("CL_KEY_1");
02787 lua_pushnil(); lua_setglobal("CL_KEY_2");
02788 lua_pushnil(); lua_setglobal("CL_KEY_3");
02789 lua_pushnil(); lua_setglobal("CL_KEY_4");
02790 lua_pushnil(); lua_setglobal("CL_KEY_5");
02791 lua_pushnil(); lua_setglobal("CL_KEY_6");
02792 lua_pushnil(); lua_setglobal("CL_KEY_7");
02793 lua_pushnil(); lua_setglobal("CL_KEY_8");
02794 lua_pushnil(); lua_setglobal("CL_KEY_9");
02795 lua_pushnil(); lua_setglobal("CL_KEY_F1");
02796 lua_pushnil(); lua_setglobal("CL_KEY_F2");
02797 lua_pushnil(); lua_setglobal("CL_KEY_F3");
02798 lua_pushnil(); lua_setglobal("CL_KEY_F4");
02799 lua_pushnil(); lua_setglobal("CL_KEY_F5");
02800 lua_pushnil(); lua_setglobal("CL_KEY_F6");
02801 lua_pushnil(); lua_setglobal("CL_KEY_F7");
02802 lua_pushnil(); lua_setglobal("CL_KEY_F8");
02803 lua_pushnil(); lua_setglobal("CL_KEY_F9");
02804 lua_pushnil(); lua_setglobal("CL_KEY_F10");
02805 lua_pushnil(); lua_setglobal("CL_KEY_F11");
02806 lua_pushnil(); lua_setglobal("CL_KEY_F12");
02807 lua_pushnil(); lua_setglobal("CL_KEY_ESCAPE");
02808 lua_pushnil(); lua_setglobal("CL_KEY_LEFT");
02809 lua_pushnil(); lua_setglobal("CL_KEY_RIGHT");
02810 lua_pushnil(); lua_setglobal("CL_KEY_UP");
02811 lua_pushnil(); lua_setglobal("CL_KEY_DOWN");
02812 lua_pushnil(); lua_setglobal("CL_KEY_LCTRL");
02813 lua_pushnil(); lua_setglobal("CL_KEY_RCTRL");
02814 lua_pushnil(); lua_setglobal("CL_KEY_LSHIFT");
02815 lua_pushnil(); lua_setglobal("CL_KEY_RSHIFT");
02816 lua_pushnil(); lua_setglobal("CL_KEY_ALT");
02817 lua_pushnil(); lua_setglobal("CL_KEY_ALTGR");
02818 lua_pushnil(); lua_setglobal("CL_KEY_TAB");
02819 lua_pushnil(); lua_setglobal("CL_KEY_ENTER");
02820 lua_pushnil(); lua_setglobal("CL_KEY_SPACE");
02821 lua_pushnil(); lua_setglobal("CL_KEY_BACKSPACE");
02822 lua_pushnil(); lua_setglobal("CL_KEY_INSERT");
02823 lua_pushnil(); lua_setglobal("CL_KEY_DELETE");
02824 lua_pushnil(); lua_setglobal("CL_KEY_HOME");
02825 lua_pushnil(); lua_setglobal("CL_KEY_END");
02826 lua_pushnil(); lua_setglobal("CL_KEY_PAGEUP");
02827 lua_pushnil(); lua_setglobal("CL_KEY_PAGEDOWN");
02828 lua_pushnil(); lua_setglobal("CL_KEY_CAPSLOCK");
02829 lua_pushnil(); lua_setglobal("CL_KEY_NUMLOCK");
02830 lua_pushnil(); lua_setglobal("CL_KEY_SCRLOCK");
02831 lua_pushnil(); lua_setglobal("CL_KEY_PRINT");
02832 lua_pushnil(); lua_setglobal("CL_KEY_PAUSE");
02833 lua_pushnil(); lua_setglobal("CL_KEY_KP_DIV");
02834 lua_pushnil(); lua_setglobal("CL_KEY_KP_MULT");
02835 lua_pushnil(); lua_setglobal("CL_KEY_KP_MINUS");
02836 lua_pushnil(); lua_setglobal("CL_KEY_KP_PLUS");
02837 lua_pushnil(); lua_setglobal("CL_KEY_KP_ENTER");
02838 lua_pushnil(); lua_setglobal("CL_KEY_NONE_OF_THE_ABOVE");
02839 lua_pushnil(); lua_setglobal("CL_NUM_KEYS");
02840 lua_pushnil(); lua_setglobal("CL_Surface");
02841 lua_pushnil(); lua_setglobal("CL_Target");
02842 lua_pushnil(); lua_setglobal("CL_SurfaceProvider");
02843 lua_pushnil(); lua_setglobal("CL_Canvas");
02844 lua_pushnil(); lua_setglobal("CL_ClipRect");
02845 }