-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPortable_Ghidra_Libcoscos_Headers.h
2670 lines (2242 loc) · 55.3 KB
/
Portable_Ghidra_Libcoscos_Headers.h
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
/* PORTABLE GHIDRA LIBCOSCOS HEADERS (c) 2024
* NOTE: THIS IS NOT READY FOR PRODUCTION YET!!!
* Still is under heavy bugfixing!
* AUTHOR: Calloc
* Used for Resolving missing libcoscos fields inside of ghidra
* If you borrow this header for your project be sure you give credit back to the author
* He spent many days figuring this out for you
* NOTE: C++ Fields are currently commented out and not all 100% of the libcoscos
* class object fields are avalibe for use as of yet...
* However these ones should be the most commonly used in geometry dash.
*
* This File can be used to resolve Robtop's libcoscos Object fields
*
* How to use -> Open your project and go to File -> Parse C Source -> Select this Header File
*
* I will work on a file for class fields belonging to Geometry dash 2.204's or later versions with those class Objects soon - Calloc
*
*/
typedef unsigned char undefined;
typedef unsigned char bool;
typedef unsigned char byte;
typedef unsigned int dword;
typedef long double longdouble;
typedef long long longlong;
typedef unsigned char uchar;
typedef unsigned int uint;
typedef unsigned long ulong;
typedef unsigned long long ulonglong;
typedef unsigned char undefined1;
typedef unsigned short undefined2;
typedef unsigned int undefined4;
typedef unsigned long long undefined7;
typedef unsigned long long undefined8;
typedef unsigned short ushort;
typedef int wchar_t;
typedef unsigned short word;
/* OPENGL DEFINITIONS */
typedef unsigned int GLenum;
typedef unsigned int GLbitfield;
typedef unsigned int GLuint;
typedef int GLint;
typedef int GLsizei;
typedef unsigned char GLboolean;
typedef signed char GLbyte;
typedef short GLshort;
typedef unsigned char GLubyte;
typedef unsigned short GLushort;
typedef float GLfloat;
typedef float GLclampf;
typedef double GLdouble;
typedef double GLclampd;
typedef void GLvoid;
typedef unsigned char GLubyte;
typedef float GLfloat;
typedef unsigned int GLuint;
/* ENUMS */
typedef enum LanguageType
{
kLanguageEnglish = 0,
kLanguageChinese,
kLanguageFrench,
kLanguageItalian,
kLanguageGerman,
kLanguageSpanish,
kLanguageDutch,
kLanguageRussian,
kLanguageKorean,
kLanguageJapanese,
kLanguageHungarian,
kLanguagePortuguese,
kLanguageArabic
} ccLanguageType;
typedef enum {
kCCObjectTypePlayLayer = 5,
kCCObjectTypeLevelEditorLayer = 6,
kCCObjectTypeMenuLayer = 15,
} CCObjectType;
typedef enum {
// #line 63 "cocos2d/cocos-headers/cocos2dx/shaders/ccGLStateCache.h"
CC_GL_ALL = 0,
} ccGLServerState;
enum ccScriptType {
kScriptTypeNone = 0,
kScriptTypeLua,
kScriptTypeJavascript
};
enum ConfigType
{
NONE,
COCOSTUDIO,
};
typedef enum
{
kCCVerticalTextAlignmentTop,
kCCVerticalTextAlignmentCenter,
kCCVerticalTextAlignmentBottom,
} CCVerticalTextAlignment;
enum CCDictType
{
kCCDictUnknown = 0,
kCCDictStr,
kCCDictInt
};
typedef enum {
kCCTexture2DPixelFormat_RGBA8888,
kCCTexture2DPixelFormat_RGB888,
kCCTexture2DPixelFormat_RGB565,
kCCTexture2DPixelFormat_A8,
kCCTexture2DPixelFormat_I8,
kCCTexture2DPixelFormat_AI88,
kCCTexture2DPixelFormat_RGBA4444,
kCCTexture2DPixelFormat_RGB5A1,
kCCTexture2DPixelFormat_PVRTC4,
kCCTexture2DPixelFormat_PVRTC2,
kCCTexture2DPixelFormat_Default = kCCTexture2DPixelFormat_RGBA8888,
kTexture2DPixelFormat_RGBA8888 = kCCTexture2DPixelFormat_RGBA8888,
kTexture2DPixelFormat_RGB888 = kCCTexture2DPixelFormat_RGB888,
kTexture2DPixelFormat_RGB565 = kCCTexture2DPixelFormat_RGB565,
kTexture2DPixelFormat_A8 = kCCTexture2DPixelFormat_A8,
kTexture2DPixelFormat_RGBA4444 = kCCTexture2DPixelFormat_RGBA4444,
kTexture2DPixelFormat_RGB5A1 = kCCTexture2DPixelFormat_RGB5A1,
kTexture2DPixelFormat_Default = kCCTexture2DPixelFormat_Default
} CCTexture2DPixelFormat;
typedef enum _ccConfigurationType {
ConfigurationError,
ConfigurationString,
ConfigurationInt,
ConfigurationDouble,
ConfigurationBoolean
} ccConfigurationType;
typedef enum {
kCCDirectorProjection2D,
kCCDirectorProjection3D,
kCCDirectorProjectionCustom,
kCCDirectorProjectionDefault = kCCDirectorProjection3D,
} ccDirectorProjection;
typedef enum {
kTextureQualityLow = 1,
kTextureQualityMedium,
kTextureQualityHigh
} TextureQuality;
typedef enum {
kPopTransitionFade,
kPopTransitionMoveInT
} PopTransition;
typedef enum POINT_CLASSIFICATION {
POINT_INFRONT_OF_PLANE = 0,
POINT_BEHIND_PLANE,
POINT_ON_PLANE,
} POINT_CLASSIFICATION;
typedef enum {
kTypeBackClicked = 1,
kTypeMenuClicked,
} ccKeypadMSGType;
typedef enum {
kCCTouchesAllAtOnce,
kCCTouchesOneByOne,
} ccTouchesMode;
typedef enum {
kCCTransitionOrientationLeftOver = 0,
kCCTransitionOrientationRightOver = 1,
kCCTransitionOrientationUpOver = 0,
kCCTransitionOrientationDownOver = 1,
// #line 76 "cocos2d/cocos-headers/cocos2dx/layers_scenes_transitions_nodes/CCTransition.h"
} tOrientation;
typedef enum
{
kCCMenuStateWaiting,
kCCMenuStateTrackingTouch
} tCCMenuState;
typedef enum {
kCCProgressTimerTypeRadial,
kCCProgressTimerTypeBar,
} CCProgressTimerType;
typedef enum eImageFormat
{
kCCImageFormatJPEG = 0,
kCCImageFormatPNG = 1,
} tCCImageFormat;
enum TargetPlatform
{
kTargetWindows,
kTargetLinux,
kTargetMacOS,
kTargetAndroid,
kTargetIphone,
kTargetIpad,
kTargetBlackBerry,
kTargetNaCl,
kTargetEmscripten,
kTargetTizen,
kTargetWinRT,
kTargetWP8
};
enum ResolutionPolicy
{
kResolutionExactFit,
kResolutionNoBorder,
kResolutionShowAll,
kResolutionFixedHeight,
kResolutionFixedWidth,
kResolutionUnKnown,
};
enum XMLError {
XML_NO_ERROR = 0,
XML_SUCCESS = 0,
XML_NO_ATTRIBUTE,
XML_WRONG_ATTRIBUTE_TYPE,
XML_ERROR_FILE_NOT_FOUND,
XML_ERROR_FILE_COULD_NOT_BE_OPENED,
XML_ERROR_FILE_READ_ERROR,
XML_ERROR_ELEMENT_MISMATCH,
XML_ERROR_PARSING_ELEMENT,
XML_ERROR_PARSING_ATTRIBUTE,
XML_ERROR_IDENTIFYING_TAG,
XML_ERROR_PARSING_TEXT,
XML_ERROR_PARSING_CDATA,
XML_ERROR_PARSING_COMMENT,
XML_ERROR_PARSING_DECLARATION,
XML_ERROR_PARSING_UNKNOWN,
XML_ERROR_EMPTY_DOCUMENT,
XML_ERROR_MISMATCHED_ELEMENT,
XML_ERROR_PARSING,
XML_CAN_NOT_CONVERT_TEXT,
XML_NO_TEXT_NODE
};
enum Whitespace {
PRESERVE_WHITESPACE,
COLLAPSE_WHITESPACE
};
typedef enum ccTMXTileFlags_ {
kCCTMXTileHorizontalFlag = 0x80000000,
kCCTMXTileVerticalFlag = 0x40000000,
kCCTMXTileDiagonalFlag = 0x20000000,
kCCFlipedAll = (kCCTMXTileHorizontalFlag|kCCTMXTileVerticalFlag|kCCTMXTileDiagonalFlag),
kCCFlippedMask = ~(kCCFlipedAll)
} ccTMXTileFlags;
typedef enum
{
ccTouchSelectorBeganBit = 1 << 0,
ccTouchSelectorMovedBit = 1 << 1,
ccTouchSelectorEndedBit = 1 << 2,
ccTouchSelectorCancelledBit = 1 << 3,
ccTouchSelectorAllBits = ( ccTouchSelectorBeganBit | ccTouchSelectorMovedBit | ccTouchSelectorEndedBit | ccTouchSelectorCancelledBit),
} ccTouchSelectorFlag;
typedef struct CCObject CCObject;
/* EXTERNAL FUNCTION METHODS */
typedef void (*SEL_MenuHandler)(CCObject*);
typedef struct CCDataVisitor CCDataVisitor;
typedef struct CCPrettyPrinter CCPrettyPrinter;
typedef struct CCCopying CCCopying;
typedef struct CCObject CCObject;
typedef struct CCPoint CCPoint;
typedef struct CCSize CCSize;
typedef struct CCRect CCRect;
typedef struct CCAction CCAction;
typedef struct CCFiniteTimeAction CCFiniteTimeAction;
typedef struct CCSpeed CCSpeed;
typedef struct CCFollow CCFollow;
typedef struct CCAffineTransform CCAffineTransform;
typedef struct _ccArray _ccArray;
typedef struct _ccCArray _ccCArray;
typedef struct CCArray CCArray;
typedef struct CCGLProgram CCGLProgram;
typedef struct CCTouch CCTouch;
typedef struct CCEvent CCEvent;
typedef struct CCSet CCSet;
typedef struct CCScriptHandlerEntry CCScriptHandlerEntry;
typedef struct CCSchedulerScriptHandlerEntry CCSchedulerScriptHandlerEntry;
typedef struct CCTouchScriptHandlerEntry CCTouchScriptHandlerEntry;
typedef struct CCScriptEngineProtocol CCScriptEngineProtocol;
typedef struct CCScriptEngineManager CCScriptEngineManager;
typedef struct _ccColor3B _ccColor3B;
typedef struct _ccHSVValue _ccHSVValue;
typedef struct _ccColor4B _ccColor4B;
typedef struct _ccColor4F _ccColor4F;
typedef struct _ccVertex2F _ccVertex2F;
typedef struct _ccVertex3F _ccVertex3F;
typedef struct _ccTex2F _ccTex2F;
typedef struct _ccPointSprite _ccPointSprite;
typedef struct _ccQuad2 _ccQuad2;
typedef struct _ccQuad3 _ccQuad3;
typedef struct _ccV2F_C4B_T2F _ccV2F_C4B_T2F;
typedef struct _ccV2F_C4F_T2F _ccV2F_C4F_T2F;
typedef struct _ccV3F_C4B_T2F _ccV3F_C4B_T2F;
typedef struct _ccV2F_C4B_T2F_Triangle _ccV2F_C4B_T2F_Triangle;
typedef struct _ccV2F_C4B_T2F_Quad _ccV2F_C4B_T2F_Quad;
typedef struct _ccV3F_C4B_T2F_Quad _ccV3F_C4B_T2F_Quad;
typedef struct _ccV2F_C4F_T2F_Quad _ccV2F_C4F_T2F_Quad;
typedef struct _ccBlendFunc _ccBlendFunc;
typedef struct _ccT2F_Quad _ccT2F_Quad;
typedef struct _ccFontShadow _ccFontShadow;
typedef struct _ccFontStroke _ccFontStroke;
typedef struct _ccFontDefinition _ccFontDefinition;
typedef struct _ccTexParams _ccTexParams;
typedef struct CCTexture2D CCTexture2D;
typedef struct CCRGBAProtocol CCRGBAProtocol;
typedef struct CCBlendProtocol CCBlendProtocol;
typedef struct CCTextureProtocol CCTextureProtocol;
typedef struct CCLabelProtocol CCLabelProtocol;
typedef struct CCDirectorDelegate CCDirectorDelegate;
typedef struct CCNode CCNode;
typedef struct CCNodeRGBA CCNodeRGBA;
typedef struct CCSpriteFrame CCSpriteFrame;
typedef struct UT_hash_bucket UT_hash_bucket;
typedef struct UT_hash_table UT_hash_table;
typedef struct UT_hash_handle UT_hash_handle;
typedef struct CCString CCString;
typedef struct CCDictElement CCDictElement;
typedef struct CCDictionary CCDictionary;
typedef struct CCAnimationFrame CCAnimationFrame;
typedef struct CCAnimation CCAnimation;
typedef struct CCActionInterval CCActionInterval;
typedef struct CCSequence CCSequence;
typedef struct CCRepeat CCRepeat;
typedef struct CCRepeatForever CCRepeatForever;
typedef struct CCSpawn CCSpawn;
typedef struct CCRotateTo CCRotateTo;
typedef struct CCRotateBy CCRotateBy;
typedef struct CCMoveBy CCMoveBy;
typedef struct CCMoveTo CCMoveTo;
typedef struct CCSkewTo CCSkewTo;
typedef struct CCSkewBy CCSkewBy;
typedef struct CCJumpBy CCJumpBy;
typedef struct CCJumpTo CCJumpTo;
typedef struct _ccBezierConfig _ccBezierConfig;
typedef struct CCBezierBy CCBezierBy;
typedef struct CCBezierTo CCBezierTo;
typedef struct CCScaleTo CCScaleTo;
typedef struct CCScaleBy CCScaleBy;
typedef struct CCBlink CCBlink;
typedef struct CCFadeIn CCFadeIn;
typedef struct CCFadeOut CCFadeOut;
typedef struct CCFadeTo CCFadeTo;
typedef struct CCTintTo CCTintTo;
typedef struct CCTintBy CCTintBy;
typedef struct CCDelayTime CCDelayTime;
typedef struct CCReverseTime CCReverseTime;
typedef struct CCAnimate CCAnimate;
typedef struct CCTargetedAction CCTargetedAction;
typedef struct CCActionCamera CCActionCamera;
typedef struct CCOrbitCamera CCOrbitCamera;
typedef struct CCActionManager CCActionManager;
typedef struct CCActionEase CCActionEase;
typedef struct CCEaseRateAction CCEaseRateAction;
typedef struct CCEaseIn CCEaseIn;
typedef struct CCEaseOut CCEaseOut;
typedef struct CCEaseInOut CCEaseInOut;
typedef struct CCEaseExponentialIn CCEaseExponentialIn;
typedef struct CCEaseExponentialOut CCEaseExponentialOut;
typedef struct CCEaseExponentialInOut CCEaseExponentialInOut;
typedef struct CCEaseSineIn CCEaseSineIn;
typedef struct CCEaseSineOut CCEaseSineOut;
typedef struct CCEaseSineInOut CCEaseSineInOut;
typedef struct CCEaseElastic CCEaseElastic;
typedef struct CCEaseElasticIn CCEaseElasticIn;
typedef struct CCEaseElasticOut CCEaseElasticOut;
typedef struct CCEaseElasticInOut CCEaseElasticInOut;
typedef struct CCEaseBounce CCEaseBounce;
typedef struct CCEaseBounceIn CCEaseBounceIn;
typedef struct CCEaseBounceOut CCEaseBounceOut;
typedef struct CCEaseBounceInOut CCEaseBounceInOut;
typedef struct CCEaseBackIn CCEaseBackIn;
typedef struct CCEaseBackOut CCEaseBackOut;
typedef struct CCEaseBackInOut CCEaseBackInOut;
typedef struct TypeInfo TypeInfo;
typedef struct CCActionInstant CCActionInstant;
typedef struct CCShow CCShow;
typedef struct CCHide CCHide;
typedef struct CCToggleVisibility CCToggleVisibility;
typedef struct CCRemoveSelf CCRemoveSelf;
typedef struct CCFlipX CCFlipX;
typedef struct CCFlipY CCFlipY;
typedef struct CCPlace CCPlace;
typedef struct CCCallFunc CCCallFunc;
typedef struct CCCallFuncN CCCallFuncN;
typedef struct CCCallFuncND CCCallFuncND;
typedef struct CCCallFuncO CCCallFuncO;
typedef struct CCGridAction CCGridAction;
typedef struct CCGrid3DAction CCGrid3DAction;
typedef struct CCTiledGrid3DAction CCTiledGrid3DAction;
typedef struct CCAccelDeccelAmplitude CCAccelDeccelAmplitude;
typedef struct CCAccelAmplitude CCAccelAmplitude;
typedef struct CCDeccelAmplitude CCDeccelAmplitude;
typedef struct CCStopGrid CCStopGrid;
typedef struct CCReuseGrid CCReuseGrid;
typedef struct CCWaves3D CCWaves3D;
typedef struct CCFlipX3D CCFlipX3D;
typedef struct CCFlipY3D CCFlipY3D;
typedef struct CCLens3D CCLens3D;
typedef struct CCRipple3D CCRipple3D;
typedef struct CCShaky3D CCShaky3D;
typedef struct CCLiquid CCLiquid;
typedef struct CCWaves CCWaves;
typedef struct CCTwirl CCTwirl;
typedef struct CCPageTurn3D CCPageTurn3D;
typedef struct CCProgressTo CCProgressTo;
typedef struct CCProgressFromTo CCProgressFromTo;
typedef struct CCShakyTiles3D CCShakyTiles3D;
typedef struct CCShatteredTiles3D CCShatteredTiles3D;
typedef struct CCShuffleTiles CCShuffleTiles;
typedef struct CCFadeOutTRTiles CCFadeOutTRTiles;
typedef struct CCFadeOutBLTiles CCFadeOutBLTiles;
typedef struct CCFadeOutUpTiles CCFadeOutUpTiles;
typedef struct CCFadeOutDownTiles CCFadeOutDownTiles;
typedef struct CCTurnOffTiles CCTurnOffTiles;
typedef struct CCWavesTiles3D CCWavesTiles3D;
typedef struct CCJumpTiles3D CCJumpTiles3D;
typedef struct CCSplitRows CCSplitRows;
typedef struct CCSplitCols CCSplitCols;
typedef struct CCActionTweenDelegate CCActionTweenDelegate;
typedef struct CCActionTween CCActionTween;
typedef struct CCPointArray CCPointArray;
typedef struct CCCardinalSplineTo CCCardinalSplineTo;
typedef struct CCCardinalSplineBy CCCardinalSplineBy;
typedef struct CCCatmullRomTo CCCatmullRomTo;
typedef struct CCCatmullRomBy CCCatmullRomBy;
typedef struct CCAtlasNode CCAtlasNode;
typedef struct CCAutoreleasePool CCAutoreleasePool;
typedef struct CCPoolManager CCPoolManager;
typedef struct CCInteger CCInteger;
typedef struct CCFloat CCFloat;
typedef struct CCDouble CCDouble;
typedef struct CCBool CCBool;
typedef struct CCZone CCZone;
typedef struct CCDrawNode CCDrawNode;
typedef struct CCConfiguration CCConfiguration;
typedef struct CCGrabber CCGrabber;
typedef struct CCCamera CCCamera;
typedef struct CCLabelAtlas CCLabelAtlas;
typedef struct CCDirector CCDirector;
typedef struct CCDisplayLinkDirector CCDisplayLinkDirector;
typedef struct CCGridBase CCGridBase;
typedef struct CCGrid3D CCGrid3D;
typedef struct CCTiledGrid3D CCTiledGrid3D;
typedef struct kmVec2 kmVec2;
typedef struct kmVec3 kmVec3;
typedef struct kmMat3 kmMat3;
typedef struct kmMat4 kmMat4;
typedef struct kmQuaternion kmQuaternion;
typedef struct kmPlane kmPlane;
typedef struct kmAABB kmAABB;
typedef struct kmRay2 kmRay2;
typedef struct CCKeypadDelegate CCKeypadDelegate;
typedef struct CCKeypadHandler CCKeypadHandler;
typedef struct CCKeypadDispatcher CCKeypadDispatcher;
typedef struct CCTextureAtlas CCTextureAtlas;
typedef struct CCSprite CCSprite;
typedef struct CCLabelTTF CCLabelTTF;
typedef struct CCSpriteBatchNode CCSpriteBatchNode;
typedef struct _BMFontDef _BMFontDef;
typedef struct _BMFontPadding _BMFontPadding;
typedef struct _FontDefHashElement _FontDefHashElement;
typedef struct _KerningHashElement _KerningHashElement;
typedef struct CCBMFontConfiguration CCBMFontConfiguration;
typedef struct CCLabelBMFont CCLabelBMFont;
typedef struct CCTouchDelegate CCTouchDelegate;
typedef struct CCTargetedTouchDelegate CCTargetedTouchDelegate;
typedef struct CCStandardTouchDelegate CCStandardTouchDelegate;
typedef struct CCAcceleration CCAcceleration;
typedef struct CCAccelerometerDelegate CCAccelerometerDelegate;
typedef struct CCKeyboardDelegate CCKeyboardDelegate;
typedef struct CCKeyboardHandler CCKeyboardHandler;
typedef struct CCMouseDelegate CCMouseDelegate;
typedef struct CCMouseHandler CCMouseHandler;
typedef struct CCLayer CCLayer;
typedef struct CCLayerRGBA CCLayerRGBA;
typedef struct CCLayerColor CCLayerColor;
typedef struct CCLayerGradient CCLayerGradient;
typedef struct CCLayerMultiplex CCLayerMultiplex;
typedef struct CCScene CCScene;
typedef struct CCTransitionEaseScene CCTransitionEaseScene;
typedef struct CCTransitionScene CCTransitionScene;
typedef struct CCTransitionSceneOriented CCTransitionSceneOriented;
typedef struct CCTransitionRotoZoom CCTransitionRotoZoom;
typedef struct CCTransitionJumpZoom CCTransitionJumpZoom;
typedef struct CCTransitionMoveInL CCTransitionMoveInL;
typedef struct CCTransitionMoveInR CCTransitionMoveInR;
typedef struct CCTransitionMoveInT CCTransitionMoveInT;
typedef struct CCTransitionMoveInB CCTransitionMoveInB;
typedef struct CCTransitionSlideInL CCTransitionSlideInL;
typedef struct CCTransitionSlideInR CCTransitionSlideInR;
typedef struct CCTransitionSlideInB CCTransitionSlideInB;
typedef struct CCTransitionSlideInT CCTransitionSlideInT;
typedef struct CCTransitionShrinkGrow CCTransitionShrinkGrow;
typedef struct CCTransitionFlipX CCTransitionFlipX;
typedef struct CCTransitionFlipY CCTransitionFlipY;
typedef struct CCTransitionFlipAngular CCTransitionFlipAngular;
typedef struct CCTransitionZoomFlipX CCTransitionZoomFlipX;
typedef struct CCTransitionZoomFlipY CCTransitionZoomFlipY;
typedef struct CCTransitionZoomFlipAngular CCTransitionZoomFlipAngular;
typedef struct CCTransitionFade CCTransitionFade;
typedef struct CCTransitionCrossFade CCTransitionCrossFade;
typedef struct CCTransitionTurnOffTiles CCTransitionTurnOffTiles;
typedef struct CCTransitionSplitCols CCTransitionSplitCols;
typedef struct CCTransitionSplitRows CCTransitionSplitRows;
typedef struct CCTransitionFadeTR CCTransitionFadeTR;
typedef struct CCTransitionFadeBL CCTransitionFadeBL;
typedef struct CCTransitionFadeUp CCTransitionFadeUp;
typedef struct CCTransitionFadeDown CCTransitionFadeDown;
typedef struct CCTransitionPageTurn CCTransitionPageTurn;
typedef struct CCTransitionProgress CCTransitionProgress;
typedef struct CCTransitionProgressRadialCCW CCTransitionProgressRadialCCW;
typedef struct CCTransitionProgressRadialCW CCTransitionProgressRadialCW;
typedef struct CCTransitionProgressHorizontal CCTransitionProgressHorizontal;
typedef struct CCTransitionProgressVertical CCTransitionProgressVertical;
typedef struct CCTransitionProgressInOut CCTransitionProgressInOut;
typedef struct CCTransitionProgressOutIn CCTransitionProgressOutIn;
typedef struct CCMenuItem CCMenuItem;
typedef struct CCMenuItemLabel CCMenuItemLabel;
typedef struct CCMenuItemAtlasFont CCMenuItemAtlasFont;
typedef struct CCMenuItemFont CCMenuItemFont;
typedef struct CCMenuItemSprite CCMenuItemSprite;
typedef struct CCMenuItemImage CCMenuItemImage;
typedef struct CCMenuItemToggle CCMenuItemToggle;
typedef struct CCMenu CCMenu;
typedef struct CCClippingNode CCClippingNode;
typedef struct CCMotionStreak CCMotionStreak;
typedef struct CCProgressTimer CCProgressTimer;
typedef struct CCRenderTexture CCRenderTexture;
typedef struct CCDevice CCDevice;
typedef struct CCFileUtils CCFileUtils;
typedef struct CCImage CCImage;
typedef struct CCThread CCThread;
typedef struct cc_timeval cc_timeval;
typedef struct CCTime CCTime;
typedef struct CCAccelerometer CCAccelerometer;
typedef struct timezone timezone;
typedef struct CCApplicationProtocol CCApplicationProtocol;
typedef struct CCApplication CCApplication;
typedef struct CCEGLViewProtocol CCEGLViewProtocol;
typedef struct GLFWvidmode GLFWvidmode;
typedef struct GLFWgammaramp GLFWgammaramp;
typedef struct CCEGLView CCEGLView;
typedef struct CCShaderCache CCShaderCache;
typedef struct CCAnimationCache CCAnimationCache;
typedef struct CCSpriteFrameCache CCSpriteFrameCache;
typedef struct CCNotificationCenter CCNotificationCenter;
typedef struct CCNotificationObserver CCNotificationObserver;
typedef struct CCProfiler CCProfiler;
typedef struct CCProfilingTimer CCProfilingTimer;
typedef struct CCUserDefault CCUserDefault;
typedef struct CCIMEDelegate CCIMEDelegate;
typedef struct CCIMEDispatcher CCIMEDispatcher;
typedef struct CCTextFieldDelegate CCTextFieldDelegate;
typedef struct CCTextFieldTTF CCTextFieldTTF;
typedef struct CCTextureCache CCTextureCache;
typedef struct CCPVRMipmap CCPVRMipmap;
typedef struct _ccPVRTexturePixelFormatInfo _ccPVRTexturePixelFormatInfo;
typedef struct CCTexturePVR CCTexturePVR;
typedef struct CCParallaxNode CCParallaxNode;
typedef struct CCTMXObjectGroup CCTMXObjectGroup;
typedef struct CCTMXLayerInfo CCTMXLayerInfo;
typedef struct CCTMXTilesetInfo CCTMXTilesetInfo;
typedef struct CCTMXMapInfo CCTMXMapInfo;
typedef struct CCTMXLayer CCTMXLayer;
typedef struct CCTMXTiledMap CCTMXTiledMap;
typedef struct CCTileMapAtlas CCTileMapAtlas;
typedef struct ccTouchHandlerHelperData ccTouchHandlerHelperData;
typedef struct EGLTouchDelegate EGLTouchDelegate;
typedef struct CCTouchDispatcher CCTouchDispatcher;
typedef struct CCTouchHandler CCTouchHandler;
typedef struct CCStandardTouchHandler CCStandardTouchHandler;
typedef struct CCTargetedTouchHandler CCTargetedTouchHandler;
typedef struct CCTimer CCTimer;
typedef struct CCScheduler CCScheduler;
typedef struct CCComponent CCComponent;
typedef struct CCComponentContainer CCComponentContainer;
typedef struct CCKeyboardDispatcher CCKeyboardDispatcher;
typedef struct CCMouseDispatcher CCMouseDispatcher;
typedef struct CCSceneTransitionDelegate CCSceneTransitionDelegate;
typedef struct DS_Dictionary DS_Dictionary;
struct CCDataVisitor{
};
typedef dword string;
struct CCPrettyPrinter{
int _indentLevel;
string _indentStr;
string _result;
};
struct CCCopying{
};
struct CCObject{
unsigned int m_uID;
int m_nLuaID;
int m_nTag;
unsigned int m_uReference;
unsigned int m_uAutoReleaseCount;
int m_eObjType;
unsigned int m_uObjectIdxInArray;
};
struct CCPoint{
float x;
float y;
};
struct CCSize{
float width;
float height;
};
struct CCRect{
CCPoint origin;
CCSize size;
};
struct CCAction{
CCNode* m_pOriginalTarget;
CCNode* m_pTarget;
int m_nTag;
float m_fSpeedMod;
};
struct CCFiniteTimeAction{
float m_fDuration;
};
struct CCSpeed{
float m_fSpeed;
CCActionInterval* m_pInnerAction;
};
struct CCFollow{
CCNode* m_pobFollowedNode;
bool m_bBoundarySet;
bool m_bBoundaryFullyCovered;
CCPoint m_obHalfScreenSize;
CCPoint m_obFullScreenSize;
float m_fLeftBoundary;
float m_fRightBoundary;
float m_fTopBoundary;
float m_fBottomBoundary;
};
struct CCAffineTransform{
float a;
float b;
float c;
float d;
float tx;
float ty;
};
typedef struct _ccArray{
unsigned int num;
unsigned int max;
CCObject** arr;
} ccArray;
struct CCArray{
ccArray* data;
};
// "Currently has definition problems free free to send a pull request if you've managed to fix this" - Calloc
struct CCGLProgram{
// GLuint m_uProgram;
// GLuint m_uVertShader;
// GLuint m_uFragShader;
// GLint[kCCUniform_MAX] m_uUniforms;
// struct _hashUniformEntry* m_pHashForUniforms;
// bool m_bUsesTime;
// bool m_hasShaderCompiler;
};
struct CCTouch{
int m_nId;
bool m_startPointCaptured;
CCPoint m_startPoint;
CCPoint m_point;
CCPoint m_prevPoint;
};
struct CCEvent{
};
struct CCSet{
// std::set<CCObject*>* m_pSet;
};
struct CCScriptHandlerEntry{
int m_nHandler;
int m_nEntryId;
};
struct CCSchedulerScriptHandlerEntry{
CCTimer* m_pTimer;
bool m_bPaused;
bool m_bMarkedForDeletion;
};
struct CCTouchScriptHandlerEntry{
bool m_bIsMultiTouches;
int m_nPriority;
bool m_bSwallowsTouches;
};
struct CCScriptEngineProtocol{
};
struct CCScriptEngineManager{
CCScriptEngineProtocol* m_pScriptEngine;
};
typedef struct _ccColor3B{
GLubyte r;
GLubyte g;
GLubyte b;
} ccColor3B;
typedef struct _ccHSVValue{
float h;
float s;
float v;
GLubyte absoluteSaturation;
GLubyte absoluteBrightness;
unsigned char __pad[2];
} ccHSVValue;
typedef struct _ccColor4B{
GLubyte r;
GLubyte g;
GLubyte b;
GLubyte a;
} ccColor4B;
typedef struct _ccColor4F{
GLfloat r;
GLfloat g;
GLfloat b;
GLfloat a;
} ccColor4F;
typedef struct _ccVertex2F{
GLfloat x;
GLfloat y;
} ccVertex2F;
typedef struct _ccVertex3F{
GLfloat x;
GLfloat y;
GLfloat z;
} ccVertex3F;
typedef struct _ccTex2F{
GLfloat u;
GLfloat v;
} ccTex2F;
typedef struct _ccPointSprite{
ccVertex2F pos;
ccColor4B color;
GLfloat size;
} ccPointSprite;
typedef struct _ccQuad2{
ccVertex2F tl;
ccVertex2F tr;
ccVertex2F bl;
ccVertex2F br;
} ccQuad2;
typedef struct _ccQuad3{
ccVertex3F bl;
ccVertex3F br;
ccVertex3F tl;
ccVertex3F tr;
} ccQuad3;
typedef struct _ccV2F_C4B_T2F{
ccVertex2F vertices;
ccColor4B colors;
ccTex2F texCoords;
} ccV2F_C4B_T2F;
typedef struct _ccV2F_C4F_T2F{
ccVertex2F vertices;
ccColor4F colors;
ccTex2F texCoords;
} ccV2F_C4F_T2F;
typedef struct _ccV3F_C4B_T2F{
ccVertex3F vertices;
ccColor4B colors;
ccTex2F texCoords;
} ccV3F_C4B_T2F;
typedef struct _ccV2F_C4B_T2F_Triangle{
ccV2F_C4B_T2F a;
ccV2F_C4B_T2F b;
ccV2F_C4B_T2F c;
} ccV2F_C4B_T2F_Triangle;
typedef struct _ccV2F_C4B_T2F_Quad{
ccV2F_C4B_T2F bl;
ccV2F_C4B_T2F br;
ccV2F_C4B_T2F tl;
ccV2F_C4B_T2F tr;
} ccV2F_C4B_T2F_Quad;
typedef struct _ccV3F_C4B_T2F_Quad{
ccV3F_C4B_T2F tl;
ccV3F_C4B_T2F bl;
ccV3F_C4B_T2F tr;
ccV3F_C4B_T2F br;
} ccV3F_C4B_T2F_Quad;
typedef struct _ccV2F_C4F_T2F_Quad{
ccV2F_C4F_T2F bl;
ccV2F_C4F_T2F br;
ccV2F_C4F_T2F tl;
ccV2F_C4F_T2F tr;
} ccV2F_C4F_T2F_Quad;
typedef struct _ccBlendFunc{
GLenum src;
GLenum dst;
} ccBlendFunc;
typedef struct _ccT2F_Quad{
ccTex2F bl;
ccTex2F br;
ccTex2F tl;
ccTex2F tr;
} ccT2F_Quad;
typedef struct _ccFontShadow{
bool m_shadowEnabled;
CCSize m_shadowOffset;
float m_shadowBlur;
float m_shadowOpacity;
} ccFontShadow;
typedef struct _ccFontStroke {
bool m_strokeEnabled;
ccColor3B m_strokeColor;
float m_strokeSize;
} ccFontStroke;
typedef struct _ccFontDefinition{
/* 2 Fields are Currenlty Broken Needs fixing! */
// std::string m_fontName;
int m_fontSize;
// CCTextAlignment m_alignment;
CCVerticalTextAlignment m_vertAlignment;
CCSize m_dimensions;
ccColor3B m_fontFillColor;
ccFontShadow m_shadow;
ccFontStroke m_stroke;
} ccFontDefinition;
typedef struct _ccTexParams{
GLuint minFilter;
GLuint magFilter;
GLuint wrapS;
GLuint wrapT;
} ccTextParams;
struct CCTexture2D{
bool m_bPVRHaveAlphaPremultiplied;
CCTexture2DPixelFormat m_ePixelFormat;
unsigned int m_uPixelsWide;
unsigned int m_uPixelsHigh;
GLuint m_uName;
GLfloat m_fMaxS;
GLfloat m_fMaxT;
CCSize m_tContentSize;
bool m_bHasPremultipliedAlpha;
bool m_bHasMipmaps;
CCGLProgram* m_pShaderProgram;
};
struct CCRGBAProtocol{
};
struct CCBlendProtocol{
};
struct CCTextureProtocol{
};
struct CCLabelProtocol{
};
struct CCDirectorDelegate{
};
struct CCNode{
float m_fRotationX;
float m_fRotationY;
float m_fScaleX;
float m_fScaleY;
float m_fVertexZ;
CCPoint m_obPosition;
float m_fSkewX;
float m_fSkewY;
CCPoint m_obAnchorPointInPoints;