Debian Codegraph @

demo/ChipmunkDebugDraw.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 static inline cpSpaceDebugColorcxx . . $ cpSpaceDebugColor# RGBAColorcxx . . $ RGBAColor(54765961e0537a31).(float r, float g, float b, float a){
23 cpSpaceDebugColorcxx . . $ cpSpaceDebugColor# color = {r, g, b, a};
24 return color;
25 }
26
27 static inline cpSpaceDebugColorcxx . . $ cpSpaceDebugColor# LAColorcxx . . $ LAColor(197b9b65f197505a).(float l, float a){
28 cpSpaceDebugColorcxx . . $ cpSpaceDebugColor# color = {l, l, l, a};
29 return color;
30 }
31
32 void ChipmunkDebugDrawInitcxx . . $ ChipmunkDebugDrawInit(49f6e7a06ebc5aa8).(void);
33
34 extern cpTransformcxx . . $ cpTransform# ChipmunkDebugDrawVPMatrixcxx . . $ ChipmunkDebugDrawVPMatrix.;
35 extern float ChipmunkDebugDrawPointLineScalecxx . . $ ChipmunkDebugDrawPointLineScale.;
36
37 void ChipmunkDebugDrawCirclecxx . . $ ChipmunkDebugDrawCircle(14e7ba4e04136dff).(cpVectcxx . . $ cpVect# pos, cpFloatcxx . . $ cpFloat# angle, cpFloatcxx . . $ cpFloat# radius, cpSpaceDebugColorcxx . . $ cpSpaceDebugColor# outlineColor, cpSpaceDebugColorcxx . . $ cpSpaceDebugColor# fillColor);
38 void ChipmunkDebugDrawSegmentcxx . . $ ChipmunkDebugDrawSegment(307cf2b0f0a496c2).(cpVectcxx . . $ cpVect# a, cpVectcxx . . $ cpVect# b, cpSpaceDebugColorcxx . . $ cpSpaceDebugColor# color);
39 void ChipmunkDebugDrawFatSegmentcxx . . $ ChipmunkDebugDrawFatSegment(972494e4e0a31225).(cpVectcxx . . $ cpVect# a, cpVectcxx . . $ cpVect# b, cpFloatcxx . . $ cpFloat# radius, cpSpaceDebugColorcxx . . $ cpSpaceDebugColor# outlineColor, cpSpaceDebugColorcxx . . $ cpSpaceDebugColor# fillColor);
40 void ChipmunkDebugDrawPolygoncxx . . $ ChipmunkDebugDrawPolygon(6db671fc658f3d5c).(int count, const cpVectcxx . . $ cpVect# *verts, cpFloatcxx . . $ cpFloat# radius, cpSpaceDebugColorcxx . . $ cpSpaceDebugColor# outlineColor, cpSpaceDebugColorcxx . . $ cpSpaceDebugColor# fillColor);
41 void ChipmunkDebugDrawDotcxx . . $ ChipmunkDebugDrawDot(227e9b49eafe2913).(cpFloatcxx . . $ cpFloat# size, cpVectcxx . . $ cpVect# pos, cpSpaceDebugColorcxx . . $ cpSpaceDebugColor# fillColor);
42 void ChipmunkDebugDrawBBcxx . . $ ChipmunkDebugDrawBB(a084cc6f3de926d8).(cpBBcxx . . $ cpBB# bb, cpSpaceDebugColorcxx . . $ cpSpaceDebugColor# outlineColor);
43
44 // Call this at the beginning of the frame to clear out any ChipmunkDebugDraw*() commands.
45 void ChipmunkDebugDrawClearRenderercxx . . $ ChipmunkDebugDrawClearRenderer(49f6e7a06ebc5aa8).(void);
46 // Call this at the end of the frame to draw the ChipmunkDebugDraw*() commands to the screen.
47 void ChipmunkDebugDrawFlushRenderercxx . . $ ChipmunkDebugDrawFlushRenderer(49f6e7a06ebc5aa8).(void);
48
49 // Save the current contents of the renderer.
50 void ChipmunkDebugDrawPushRenderercxx . . $ ChipmunkDebugDrawPushRenderer(49f6e7a06ebc5aa8).(void);
51 // Reset the renderer back to it's last pushed state.
52 void ChipmunkDebugDrawPopRenderercxx . . $ ChipmunkDebugDrawPopRenderer(49f6e7a06ebc5aa8).(void);