forked from marmalade/OpenQuick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenquick_tolua.cpp
15777 lines (15094 loc) · 537 KB
/
openquick_tolua.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
** Lua binding: openquick_tolua
** Generated automatically by tolua++-1.0.92 on 02/09/13 18:20:15.
*/
#ifndef __cplusplus
#include "stdlib.h"
#endif
#include "string.h"
#include "tolua++.h"
/* Exported function */
TOLUA_API int tolua_openquick_tolua_open (lua_State* tolua_S);
#include "Include/QAnimation.h"
#include "Include/QAtlas.h"
#include "Include/QAudio.h"
#include "Include/QBase.h"
#include "Include/QCircle.h"
#include "Include/QColor.h"
#include "Include/QDirector.h"
#include "Include/QEvent.h"
#include "Include/QFont.h"
#include "Include/QLabel.h"
#include "Include/QLines.h"
#include "Include/QNode.h"
#include "Include/QMain.h"
#include "Include/QParticles.h"
#include "Include/QPhysics.h"
#include "Include/QPhysicsContact.h"
#include "Include/QPhysicsContactListener.h"
#include "Include/QPhysicsJoint.h"
#include "Include/QPhysicsJointDistance.h"
#include "Include/QPhysicsJointRevolute.h"
#include "Include/QPhysicsJointPrismatic.h"
#include "Include/QPhysicsJointFriction.h"
#include "Include/QPhysicsJointWheel.h"
#include "Include/QPhysicsJointWeld.h"
#include "Include/QPhysicsJointPulley.h"
#include "Include/QPhysicsJointTouch.h"
#include "Include/QPhysicsJointGear.h"
#include "Include/QPhysicsJointRope.h"
#include "Include/QPhysicsNodeProps.h"
#include "Include/QRectangle.h"
#include "Include/QScene.h"
#include "Include/QSprite.h"
#include "Include/QLsqlite3.h"
#include "Include/QSystem.h"
#include "Include/QTiledMap.h"
#include "Include/QTimer.h"
#include "Include/QTween.h"
#include "Include/QVector.h"
/* function to release collected object via destructor */
#ifdef __cplusplus
static int tolua_collect_quick__QAnimation (lua_State* tolua_S)
{
quick::QAnimation* self = (quick::QAnimation*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__physics__QJointDistance (lua_State* tolua_S)
{
quick::physics::QJointDistance* self = (quick::physics::QJointDistance*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QRectangle (lua_State* tolua_S)
{
quick::QRectangle* self = (quick::QRectangle*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__physics__QJointFriction (lua_State* tolua_S)
{
quick::physics::QJointFriction* self = (quick::physics::QJointFriction*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QScene (lua_State* tolua_S)
{
quick::QScene* self = (quick::QScene*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__physics__QJointPrismatic (lua_State* tolua_S)
{
quick::physics::QJointPrismatic* self = (quick::physics::QJointPrismatic*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QColor (lua_State* tolua_S)
{
quick::QColor* self = (quick::QColor*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QCircle (lua_State* tolua_S)
{
quick::QCircle* self = (quick::QCircle*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__physics__QJointRope (lua_State* tolua_S)
{
quick::physics::QJointRope* self = (quick::physics::QJointRope*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QSystem (lua_State* tolua_S)
{
quick::QSystem* self = (quick::QSystem*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QDirector (lua_State* tolua_S)
{
quick::QDirector* self = (quick::QDirector*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QVector (lua_State* tolua_S)
{
quick::QVector* self = (quick::QVector*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__physics__QSim (lua_State* tolua_S)
{
quick::physics::QSim* self = (quick::physics::QSim*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__physics__QJointWheel (lua_State* tolua_S)
{
quick::physics::QJointWheel* self = (quick::physics::QJointWheel*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__physics__QJointWeld (lua_State* tolua_S)
{
quick::physics::QJointWeld* self = (quick::physics::QJointWeld*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__physics__QJointPulley (lua_State* tolua_S)
{
quick::physics::QJointPulley* self = (quick::physics::QJointPulley*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QAtlas (lua_State* tolua_S)
{
quick::QAtlas* self = (quick::QAtlas*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QSprite (lua_State* tolua_S)
{
quick::QSprite* self = (quick::QSprite*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QFont (lua_State* tolua_S)
{
quick::QFont* self = (quick::QFont*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QAudio (lua_State* tolua_S)
{
quick::QAudio* self = (quick::QAudio*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__physics__QJointTouch (lua_State* tolua_S)
{
quick::physics::QJointTouch* self = (quick::physics::QJointTouch*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__physics__QJoint (lua_State* tolua_S)
{
quick::physics::QJoint* self = (quick::physics::QJoint*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QTween (lua_State* tolua_S)
{
quick::QTween* self = (quick::QTween*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QLabel (lua_State* tolua_S)
{
quick::QLabel* self = (quick::QLabel*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__physics__QJointRevolute (lua_State* tolua_S)
{
quick::physics::QJointRevolute* self = (quick::physics::QJointRevolute*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QTiledMap (lua_State* tolua_S)
{
quick::QTiledMap* self = (quick::QTiledMap*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QTimer (lua_State* tolua_S)
{
quick::QTimer* self = (quick::QTimer*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QBaseObject (lua_State* tolua_S)
{
quick::QBaseObject* self = (quick::QBaseObject*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QEventListener (lua_State* tolua_S)
{
quick::QEventListener* self = (quick::QEventListener*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QNode (lua_State* tolua_S)
{
quick::QNode* self = (quick::QNode*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_cocos2d__ccColor4F (lua_State* tolua_S)
{
cocos2d::ccColor4F* self = (cocos2d::ccColor4F*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QParticles (lua_State* tolua_S)
{
quick::QParticles* self = (quick::QParticles*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__QLines (lua_State* tolua_S)
{
quick::QLines* self = (quick::QLines*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__physics__QNodeProps (lua_State* tolua_S)
{
quick::physics::QNodeProps* self = (quick::physics::QNodeProps*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
static int tolua_collect_quick__physics__QJointGear (lua_State* tolua_S)
{
quick::physics::QJointGear* self = (quick::physics::QJointGear*) tolua_tousertype(tolua_S,1,0);
Mtolua_delete(self);
return 0;
}
#endif
/* function to register type */
static void tolua_reg_types (lua_State* tolua_S)
{
tolua_usertype(tolua_S,"float32");
tolua_usertype(tolua_S,"quick::QAnimation");
tolua_usertype(tolua_S,"quick::physics::QJointDistance");
tolua_usertype(tolua_S,"quick::QRectangle");
tolua_usertype(tolua_S,"quick::physics::QJointFriction");
tolua_usertype(tolua_S,"quick::QScene");
tolua_usertype(tolua_S,"quick::physics::QJointPrismatic");
tolua_usertype(tolua_S,"quick::QColor");
tolua_usertype(tolua_S,"quick::QCircle");
tolua_usertype(tolua_S,"quick::physics::QJointRope");
tolua_usertype(tolua_S,"quick::QSystem");
tolua_usertype(tolua_S,"quick::QDirector");
tolua_usertype(tolua_S,"quick::QVector");
tolua_usertype(tolua_S,"quick::QParticles::modeBStruct");
tolua_usertype(tolua_S,"quick::physics::QJointWheel");
tolua_usertype(tolua_S,"quick::physics::QJointWeld");
tolua_usertype(tolua_S,"quick::QParticles::xyStruct");
tolua_usertype(tolua_S,"quick::QAtlas");
tolua_usertype(tolua_S,"quick::QSprite");
tolua_usertype(tolua_S,"quick::QFont");
tolua_usertype(tolua_S,"quick::QTween");
tolua_usertype(tolua_S,"quick::QAudio");
tolua_usertype(tolua_S,"quick::QLines");
tolua_usertype(tolua_S,"quick::physics::QJoint");
tolua_usertype(tolua_S,"quick::QEventListener");
tolua_usertype(tolua_S,"private cocos2d::CCSpriteFrameCache");
tolua_usertype(tolua_S,"quick::QTiledMap");
tolua_usertype(tolua_S,"quick::physics::QNodeProps");
tolua_usertype(tolua_S,"quick::physics::QContact");
tolua_usertype(tolua_S,"quick::physics::QJointGear");
tolua_usertype(tolua_S,"quick::QLabel");
tolua_usertype(tolua_S,"quick::physics::QJointRevolute");
tolua_usertype(tolua_S,"quick::QParticles::modeAStruct");
tolua_usertype(tolua_S,"quick::QTimer");
tolua_usertype(tolua_S,"quick::QBaseObject");
tolua_usertype(tolua_S,"quick::QNode");
tolua_usertype(tolua_S,"cocos2d::ccColor4F");
tolua_usertype(tolua_S,"quick::physics::QJointTouch");
tolua_usertype(tolua_S,"quick::QParticles");
tolua_usertype(tolua_S,"b2Body");
tolua_usertype(tolua_S,"quick::physics::QJointPulley");
tolua_usertype(tolua_S,"quick::physics::QSim");
}
/* method: new of class quick::QAnimation */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAnimation_new00
static int tolua_openquick_tolua_quick_QAnimation_new00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertable(tolua_S,1,"quick::QAnimation",0,&tolua_err) ||
!tolua_isnoobj(tolua_S,2,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
{
quick::QAnimation* tolua_ret = (quick::QAnimation*) Mtolua_new((quick::QAnimation)());
tolua_pushusertype(tolua_S,(void*)tolua_ret,"quick::QAnimation");
}
}
return 1;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: new_local of class quick::QAnimation */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAnimation_new00_local
static int tolua_openquick_tolua_quick_QAnimation_new00_local(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertable(tolua_S,1,"quick::QAnimation",0,&tolua_err) ||
!tolua_isnoobj(tolua_S,2,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
{
quick::QAnimation* tolua_ret = (quick::QAnimation*) Mtolua_new((quick::QAnimation)());
tolua_pushusertype(tolua_S,(void*)tolua_ret,"quick::QAnimation");
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
}
}
return 1;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: delete of class quick::QAnimation */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAnimation_delete00
static int tolua_openquick_tolua_quick_QAnimation_delete00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertype(tolua_S,1,"quick::QAnimation",0,&tolua_err) ||
!tolua_isnoobj(tolua_S,2,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
quick::QAnimation* self = (quick::QAnimation*) tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
#endif
Mtolua_delete(self);
}
return 0;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: addFrame of class quick::QAnimation */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAnimation_addFrame00
static int tolua_openquick_tolua_quick_QAnimation_addFrame00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertype(tolua_S,1,"quick::QAnimation",0,&tolua_err) ||
!tolua_isnumber(tolua_S,2,0,&tolua_err) ||
!tolua_isusertype(tolua_S,3,"const quick::QAtlas",0,&tolua_err) ||
!tolua_isnoobj(tolua_S,4,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
quick::QAnimation* self = (quick::QAnimation*) tolua_tousertype(tolua_S,1,0);
int frame = ((int) tolua_tonumber(tolua_S,2,0));
const quick::QAtlas* atlas = ((const quick::QAtlas*) tolua_tousertype(tolua_S,3,0));
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addFrame'", NULL);
#endif
{
self->addFrame(frame,atlas);
}
}
return 0;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'addFrame'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: addFrameByName of class quick::QAnimation */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAnimation_addFrameByName00
static int tolua_openquick_tolua_quick_QAnimation_addFrameByName00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertype(tolua_S,1,"quick::QAnimation",0,&tolua_err) ||
!tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
!tolua_isusertype(tolua_S,3,"const quick::QAtlas",0,&tolua_err) ||
!tolua_isnoobj(tolua_S,4,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
quick::QAnimation* self = (quick::QAnimation*) tolua_tousertype(tolua_S,1,0);
std::string frame_name = ((std::string) tolua_tocppstring(tolua_S,2,0));
const quick::QAtlas* atlas = ((const quick::QAtlas*) tolua_tousertype(tolua_S,3,0));
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addFrameByName'", NULL);
#endif
{
self->addFrameByName(frame_name,atlas);
}
}
return 0;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'addFrameByName'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: setDelay of class quick::QAnimation */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAnimation_setDelay00
static int tolua_openquick_tolua_quick_QAnimation_setDelay00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertype(tolua_S,1,"quick::QAnimation",0,&tolua_err) ||
!tolua_isnumber(tolua_S,2,0,&tolua_err) ||
!tolua_isnoobj(tolua_S,3,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
quick::QAnimation* self = (quick::QAnimation*) tolua_tousertype(tolua_S,1,0);
float delay = ((float) tolua_tonumber(tolua_S,2,0));
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setDelay'", NULL);
#endif
{
self->setDelay(delay);
}
}
return 0;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'setDelay'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: getDuration of class quick::QAnimation */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAnimation_getDuration00
static int tolua_openquick_tolua_quick_QAnimation_getDuration00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertype(tolua_S,1,"const quick::QAnimation",0,&tolua_err) ||
!tolua_isnoobj(tolua_S,2,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
const quick::QAnimation* self = (const quick::QAnimation*) tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDuration'", NULL);
#endif
{
float tolua_ret = (float) self->getDuration();
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
}
}
return 1;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'getDuration'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: new of class quick::QAtlas */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAtlas_new00
static int tolua_openquick_tolua_quick_QAtlas_new00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertable(tolua_S,1,"quick::QAtlas",0,&tolua_err) ||
!tolua_isnoobj(tolua_S,2,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
{
quick::QAtlas* tolua_ret = (quick::QAtlas*) Mtolua_new((quick::QAtlas)());
tolua_pushusertype(tolua_S,(void*)tolua_ret,"quick::QAtlas");
}
}
return 1;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: new_local of class quick::QAtlas */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAtlas_new00_local
static int tolua_openquick_tolua_quick_QAtlas_new00_local(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertable(tolua_S,1,"quick::QAtlas",0,&tolua_err) ||
!tolua_isnoobj(tolua_S,2,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
{
quick::QAtlas* tolua_ret = (quick::QAtlas*) Mtolua_new((quick::QAtlas)());
tolua_pushusertype(tolua_S,(void*)tolua_ret,"quick::QAtlas");
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
}
}
return 1;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: delete of class quick::QAtlas */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAtlas_delete00
static int tolua_openquick_tolua_quick_QAtlas_delete00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertype(tolua_S,1,"quick::QAtlas",0,&tolua_err) ||
!tolua_isnoobj(tolua_S,2,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
quick::QAtlas* self = (quick::QAtlas*) tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
#endif
Mtolua_delete(self);
}
return 0;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: initFromFile of class quick::QAtlas */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAtlas_initFromFile00
static int tolua_openquick_tolua_quick_QAtlas_initFromFile00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertype(tolua_S,1,"quick::QAtlas",0,&tolua_err) ||
!tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
!tolua_isnoobj(tolua_S,3,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
quick::QAtlas* self = (quick::QAtlas*) tolua_tousertype(tolua_S,1,0);
std::string filename = ((std::string) tolua_tocppstring(tolua_S,2,0));
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'initFromFile'", NULL);
#endif
{
bool tolua_ret = (bool) self->initFromFile(filename);
tolua_pushboolean(tolua_S,(bool)tolua_ret);
}
}
return 1;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'initFromFile'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: initTexture of class quick::QAtlas */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAtlas_initTexture00
static int tolua_openquick_tolua_quick_QAtlas_initTexture00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertype(tolua_S,1,"quick::QAtlas",0,&tolua_err) ||
!tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
!tolua_isnoobj(tolua_S,3,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
quick::QAtlas* self = (quick::QAtlas*) tolua_tousertype(tolua_S,1,0);
std::string filename = ((std::string) tolua_tocppstring(tolua_S,2,0));
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'initTexture'", NULL);
#endif
{
bool tolua_ret = (bool) self->initTexture(filename);
tolua_pushboolean(tolua_S,(bool)tolua_ret);
}
}
return 1;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'initTexture'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: addSpriteFrame of class quick::QAtlas */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAtlas_addSpriteFrame00
static int tolua_openquick_tolua_quick_QAtlas_addSpriteFrame00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertype(tolua_S,1,"quick::QAtlas",0,&tolua_err) ||
!tolua_isnumber(tolua_S,2,0,&tolua_err) ||
!tolua_isnumber(tolua_S,3,0,&tolua_err) ||
!tolua_isnumber(tolua_S,4,0,&tolua_err) ||
!tolua_isnumber(tolua_S,5,0,&tolua_err) ||
!tolua_isboolean(tolua_S,6,0,&tolua_err) ||
!tolua_isnumber(tolua_S,7,0,&tolua_err) ||
!tolua_isnumber(tolua_S,8,0,&tolua_err) ||
!tolua_isnumber(tolua_S,9,0,&tolua_err) ||
!tolua_isnumber(tolua_S,10,0,&tolua_err) ||
!tolua_isnoobj(tolua_S,11,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
quick::QAtlas* self = (quick::QAtlas*) tolua_tousertype(tolua_S,1,0);
float x = ((float) tolua_tonumber(tolua_S,2,0));
float y = ((float) tolua_tonumber(tolua_S,3,0));
float w = ((float) tolua_tonumber(tolua_S,4,0));
float h = ((float) tolua_tonumber(tolua_S,5,0));
bool rotated = ((bool) tolua_toboolean(tolua_S,6,0));
float ox = ((float) tolua_tonumber(tolua_S,7,0));
float oy = ((float) tolua_tonumber(tolua_S,8,0));
float sw = ((float) tolua_tonumber(tolua_S,9,0));
float sh = ((float) tolua_tonumber(tolua_S,10,0));
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addSpriteFrame'", NULL);
#endif
{
self->addSpriteFrame(x,y,w,h,rotated,ox,oy,sw,sh);
}
}
return 0;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'addSpriteFrame'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: getTextureSize of class quick::QAtlas */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAtlas_getTextureSize00
static int tolua_openquick_tolua_quick_QAtlas_getTextureSize00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertype(tolua_S,1,"quick::QAtlas",0,&tolua_err) ||
!tolua_isnumber(tolua_S,2,1,&tolua_err) ||
!tolua_isnumber(tolua_S,3,1,&tolua_err) ||
!tolua_isnoobj(tolua_S,4,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
quick::QAtlas* self = (quick::QAtlas*) tolua_tousertype(tolua_S,1,0);
float x = ((float) tolua_tonumber(tolua_S,2,0));
float y = ((float) tolua_tonumber(tolua_S,3,0));
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getTextureSize'", NULL);
#endif
{
self->getTextureSize(&x,&y);
tolua_pushnumber(tolua_S,(lua_Number)x);
tolua_pushnumber(tolua_S,(lua_Number)y);
}
}
return 2;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'getTextureSize'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: setTextureParams of class quick::QAtlas */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAtlas_setTextureParams00
static int tolua_openquick_tolua_quick_QAtlas_setTextureParams00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertype(tolua_S,1,"quick::QAtlas",0,&tolua_err) ||
!tolua_isstring(tolua_S,2,0,&tolua_err) ||
!tolua_isstring(tolua_S,3,0,&tolua_err) ||
!tolua_isstring(tolua_S,4,1,&tolua_err) ||
!tolua_isstring(tolua_S,5,1,&tolua_err) ||
!tolua_isnoobj(tolua_S,6,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
quick::QAtlas* self = (quick::QAtlas*) tolua_tousertype(tolua_S,1,0);
const char* minFilter = ((const char*) tolua_tostring(tolua_S,2,0));
const char* magFilter = ((const char*) tolua_tostring(tolua_S,3,0));
const char* wrapS = ((const char*) tolua_tostring(tolua_S,4,0));
const char* wrapT = ((const char*) tolua_tostring(tolua_S,5,0));
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setTextureParams'", NULL);
#endif
{
self->setTextureParams(minFilter,magFilter,wrapS,wrapT);
}
}
return 0;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'setTextureParams'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: setBlendFunc of class quick::QAtlas */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAtlas_setBlendFunc00
static int tolua_openquick_tolua_quick_QAtlas_setBlendFunc00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertype(tolua_S,1,"quick::QAtlas",0,&tolua_err) ||
!tolua_isstring(tolua_S,2,0,&tolua_err) ||
!tolua_isstring(tolua_S,3,0,&tolua_err) ||
!tolua_isnoobj(tolua_S,4,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
quick::QAtlas* self = (quick::QAtlas*) tolua_tousertype(tolua_S,1,0);
const char* blendSrc = ((const char*) tolua_tostring(tolua_S,2,0));
const char* blendDst = ((const char*) tolua_tostring(tolua_S,3,0));
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setBlendFunc'", NULL);
#endif
{
self->setBlendFunc(blendSrc,blendDst);
}
}
return 0;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'setBlendFunc'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* get function: _blendSrc of class quick::QAtlas */
#ifndef TOLUA_DISABLE_tolua_get_quick__QAtlas__blendSrc
static int tolua_get_quick__QAtlas__blendSrc(lua_State* tolua_S)
{
quick::QAtlas* self = (quick::QAtlas*) tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable '_blendSrc'",NULL);
#endif
tolua_pushnumber(tolua_S,(lua_Number)self->_blendSrc);
return 1;
}
#endif //#ifndef TOLUA_DISABLE
/* set function: _blendSrc of class quick::QAtlas */
#ifndef TOLUA_DISABLE_tolua_set_quick__QAtlas__blendSrc
static int tolua_set_quick__QAtlas__blendSrc(lua_State* tolua_S)
{
quick::QAtlas* self = (quick::QAtlas*) tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable '_blendSrc'",NULL);
if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
self->_blendSrc = ((int) tolua_tonumber(tolua_S,2,0))
;
return 0;
}
#endif //#ifndef TOLUA_DISABLE
/* get function: _blendDst of class quick::QAtlas */
#ifndef TOLUA_DISABLE_tolua_get_quick__QAtlas__blendDst
static int tolua_get_quick__QAtlas__blendDst(lua_State* tolua_S)
{
quick::QAtlas* self = (quick::QAtlas*) tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable '_blendDst'",NULL);
#endif
tolua_pushnumber(tolua_S,(lua_Number)self->_blendDst);
return 1;
}
#endif //#ifndef TOLUA_DISABLE
/* set function: _blendDst of class quick::QAtlas */
#ifndef TOLUA_DISABLE_tolua_set_quick__QAtlas__blendDst
static int tolua_set_quick__QAtlas__blendDst(lua_State* tolua_S)
{
quick::QAtlas* self = (quick::QAtlas*) tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable '_blendDst'",NULL);
if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
self->_blendDst = ((int) tolua_tonumber(tolua_S,2,0))
;
return 0;
}
#endif //#ifndef TOLUA_DISABLE
/* method: new of class quick::QAudio */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAudio_new00
static int tolua_openquick_tolua_quick_QAudio_new00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertable(tolua_S,1,"quick::QAudio",0,&tolua_err) ||
!tolua_isnoobj(tolua_S,2,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
{
quick::QAudio* tolua_ret = (quick::QAudio*) Mtolua_new((quick::QAudio)());
tolua_pushusertype(tolua_S,(void*)tolua_ret,"quick::QAudio");
}
}
return 1;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE
/* method: new_local of class quick::QAudio */
#ifndef TOLUA_DISABLE_tolua_openquick_tolua_quick_QAudio_new00_local
static int tolua_openquick_tolua_quick_QAudio_new00_local(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
!tolua_isusertable(tolua_S,1,"quick::QAudio",0,&tolua_err) ||
!tolua_isnoobj(tolua_S,2,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
{
quick::QAudio* tolua_ret = (quick::QAudio*) Mtolua_new((quick::QAudio)());
tolua_pushusertype(tolua_S,(void*)tolua_ret,"quick::QAudio");
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
}
}
return 1;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
return 0;
#endif