Debian Codegraph @

demo/ChipmunkDemo.h

raw symbols SCIP
1 /* Copyright (c) 2007 Scott Lembcke
2 *
3 * Permission is hereby granted, free of charge, to any person obtaining a copy
4 * of this software and associated documentation files (the "Software"), to deal
5 * in the Software without restriction, including without limitation the rights
6 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 * copies of the Software, and to permit persons to whom the Software is
8 * furnished to do so, subject to the following conditions:
9 *
10 * The above copyright notice and this permission notice shall be included in
11 * all copies or substantial portions of the Software.
12 *
13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 * SOFTWARE.
20 */
21
22 #include "ChipmunkDebugDraw.h"cxx . . $ `<file>/demo/ChipmunkDebugDraw.h`/
23
24 typedef struct ChipmunkDemocxx . . $ ChipmunkDemo# ChipmunkDemocxx . . $ ChipmunkDemo#;
25
26 typedef cpSpacecxx . . $ cpSpace# *(*ChipmunkDemoInitFunccxx . . $ ChipmunkDemoInitFunc#)(void);
27 typedef void (*ChipmunkDemoUpdateFunccxx . . $ ChipmunkDemoUpdateFunc#)(cpSpacecxx . . $ cpSpace# *space, double dt);
28 typedef void (*ChipmunkDemoDrawFunccxx . . $ ChipmunkDemoDrawFunc#)(cpSpacecxx . . $ cpSpace# *space);
29 typedef void (*ChipmunkDemoDestroyFunccxx . . $ ChipmunkDemoDestroyFunc#)(cpSpacecxx . . $ cpSpace# *space);
30
31 struct ChipmunkDemocxx . . $ ChipmunkDemo# {
32 const char *namecxx . . $ ChipmunkDemo#name.;
33 double timestepcxx . . $ ChipmunkDemo#timestep.;
34
35 ChipmunkDemoInitFunccxx . . $ ChipmunkDemoInitFunc# initFunccxx . . $ ChipmunkDemo#initFunc.;
36 ChipmunkDemoUpdateFunccxx . . $ ChipmunkDemoUpdateFunc# updateFunccxx . . $ ChipmunkDemo#updateFunc.;
37 ChipmunkDemoDrawFunccxx . . $ ChipmunkDemoDrawFunc# drawFunccxx . . $ ChipmunkDemo#drawFunc.;
38
39 ChipmunkDemoDestroyFunccxx . . $ ChipmunkDemoDestroyFunc# destroyFunccxx . . $ ChipmunkDemo#destroyFunc.;
40 };
41
42 static inline cpFloatcxx . . $ cpFloat#
43 frandcxx . . $ frand(31fa7155c10fdd13).(void)
44 {
45 return (cpFloatcxx . . $ cpFloat#)randcxx . . $ rand(b126dc7c1de90089).()/(cpFloatcxx . . $ cpFloat#)RAND_MAXcxx . . $ `<external>/10696550936717951914/stdlib.h:91:9`!;
46 }
47
48 static inline cpVectcxx . . $ cpVect#
49 frand_unit_circlecxx . . $ frand_unit_circle(e9d6ca74f4b5df53).(){
50 cpVectcxx . . $ cpVect# v = cpvcxx . . $ cpv(3142d57d978b2176).(frandcxx . . $ frand(31fa7155c10fdd13).()*2.0f - 1.0f, frandcxx . . $ frand(31fa7155c10fdd13).()*2.0f - 1.0f);
51 return (cpvlengthsqcxx . . $ cpvlengthsq(c4ef53c170268e01).(v) < 1.0f ? v : frand_unit_circlecxx . . $ frand_unit_circle(e9d6ca74f4b5df53).());
52 }
53
54 extern int ChipmunkDemoTickscxx . . $ ChipmunkDemoTicks.;
55 extern double ChipmunkDemoTimecxx . . $ ChipmunkDemoTime.;
56 extern cpVectcxx . . $ cpVect# ChipmunkDemoKeyboardcxx . . $ ChipmunkDemoKeyboard.;
57 extern cpVectcxx . . $ cpVect# ChipmunkDemoMousecxx . . $ ChipmunkDemoMouse.;
58 extern cpBoolcxx . . $ cpBool# ChipmunkDemoRightClickcxx . . $ ChipmunkDemoRightClick.;
59 extern cpBoolcxx . . $ cpBool# ChipmunkDemoRightDowncxx . . $ ChipmunkDemoRightDown.;
60
61 extern char const *ChipmunkDemoMessageStringcxx . . $ ChipmunkDemoMessageString.;
62 void ChipmunkDemoPrintStringcxx . . $ ChipmunkDemoPrintString(326aeb464d16410c).(char const *fmt, ...);
63
64 extern cpShapeFiltercxx . . $ cpShapeFilter# GRAB_FILTERcxx . . $ GRAB_FILTER.;
65 extern cpShapeFiltercxx . . $ cpShapeFilter# NOT_GRABBABLE_FILTERcxx . . $ NOT_GRABBABLE_FILTER.;
66
67 void ChipmunkDemoDefaultDrawImplcxx . . $ ChipmunkDemoDefaultDrawImpl(728b9c9a69722ef8).(cpSpacecxx . . $ cpSpace# *space);
68 void ChipmunkDemoFreeSpaceChildrencxx . . $ ChipmunkDemoFreeSpaceChildren(728b9c9a69722ef8).(cpSpacecxx . . $ cpSpace# *space);