ackb2d 0.9
3D Gamestudio Box 2d Wraper

b2DebugDraw.h File Reference

Go to the source code of this file.

Functions

b2DebugDrawb2DebugDraw_Create (void *drawPolygonFunc, void *drawSolidPolygonFunc, void *drawCircleFunc, void *drawSolidCircleFunc, void *drawSegmentFunc, void *drawTransformFunc)
void b2DebugDraw_Destroy (b2DebugDraw *draw)
 Destroy b2DebugDraw.
void b2DebugDraw_SetFlags (b2DebugDraw *draw, var flags)
 Set the drawing flags.
var b2DebugDraw_GetFlags (b2DebugDraw *draw)
 Get the drawing flags.
void b2DebugDraw_AppendFlags (b2DebugDraw *draw, var flags)
 Append flags to the current flags.
void b2DebugDraw_SetUserData (b2DebugDraw *draw, void *userData)
void * b2DebugDraw_GetUserData (b2DebugDraw *draw)
void b2DebugDraw_SetDrawPolygonFunc (b2DebugDraw *draw, void *drawPolygonFunc)
void * b2DebugDraw_GetDrawPolygonFunc (b2DebugDraw *draw)
void b2DebugDraw_SetDrawSolidPolygonFunc (b2DebugDraw *draw, void *drawSolidPolygonFunc)
void * b2DebugDraw_GetDrawSolidPolygonFunc (b2DebugDraw *draw)
void b2DebugDraw_SetDrawCircleFunc (b2DebugDraw *draw, void *drawCircleFunc)
void * b2DebugDraw_GetDrawCircleFunc (b2DebugDraw *draw)
void b2DebugDraw_SetDrawSolidCircleFunc (b2DebugDraw *draw, void *drawSolidCircleFunc)
void * b2DebugDraw_GetDrawSolidCircleFunc (b2DebugDraw *draw)
void b2DebugDraw_SetDrawSegmentFunc (b2DebugDraw *draw, void *drawSegmentFunc)
void * b2DebugDraw_GetDrawSegmentFunc (b2DebugDraw *draw)
void b2DebugDraw_SetDrawTransformFunc (b2DebugDraw *draw, void *drawTransformFunc)
void * b2DebugDraw_GetDrawTransformFunc (b2DebugDraw *draw)
void b2DebugDraw_SetCallback (b2DebugDraw *draw, void *drawPolygonFunc, void *drawSolidPolygonFunc, void *drawCircleFunc, void *drawSolidCircleFunc, void *drawSegmentFunc, void *drawTransformFunc)

Function Documentation

void b2DebugDraw_AppendFlags ( b2DebugDraw draw,
var  flags 
)

Append flags to the current flags.

b2DebugDraw* b2DebugDraw_Create ( void *  drawPolygonFunc,
void *  drawSolidPolygonFunc,
void *  drawCircleFunc,
void *  drawSolidCircleFunc,
void *  drawSegmentFunc,
void *  drawTransformFunc 
)

Create b2DebugDraw. Functions can be implemented. Callback signatures :

  • void drawPolygonFunc(const VECTOR *vertices, var vertexCount, const COLOR *color, void *userData);
  • void drawSolidPolygonFunc(const VECTOR* vertices, var vertexCount, const COLOR *color, void *userData);
  • void drawCircleFunc(const VECTOR *center, var radius, const COLOR *color, void *userData);
  • void drawSolidCircleFunc(const VECTOR *center, var radius, const VECTOR *axis, const COLOR *color, void *userData);
  • void drawSegmentFunc(const VECTOR *p1, const VECTOR *p2, const COLOR *color, void *userData);
  • void drawTransformFunc(const b2Transform *xf, void *userData);
void b2DebugDraw_Destroy ( b2DebugDraw draw)

Destroy b2DebugDraw.

void* b2DebugDraw_GetDrawCircleFunc ( b2DebugDraw draw)

Get DrawCircleFunc Functions are called by the engine when set

void* b2DebugDraw_GetDrawPolygonFunc ( b2DebugDraw draw)

Get DrawPolygon function Functions are called by the engine when set

void* b2DebugDraw_GetDrawSegmentFunc ( b2DebugDraw draw)

Get DrawSegmentFunc Functions are called by the engine when set

void* b2DebugDraw_GetDrawSolidCircleFunc ( b2DebugDraw draw)

Get DrawSolidCircleFunc Functions are called by the engine when set

void* b2DebugDraw_GetDrawSolidPolygonFunc ( b2DebugDraw draw)

Get DrawPolygon function Functions are called by the engine when set

void* b2DebugDraw_GetDrawTransformFunc ( b2DebugDraw draw)

Get DrawTransformFunc Functions are called by the engine when set

var b2DebugDraw_GetFlags ( b2DebugDraw draw)

Get the drawing flags.

void* b2DebugDraw_GetUserData ( b2DebugDraw draw)

Get userData user data is passed to the callback functions

void b2DebugDraw_SetCallback ( b2DebugDraw draw,
void *  drawPolygonFunc,
void *  drawSolidPolygonFunc,
void *  drawCircleFunc,
void *  drawSolidCircleFunc,
void *  drawSegmentFunc,
void *  drawTransformFunc 
)

Set Callbacks Functions are called by the engine when set

void b2DebugDraw_SetDrawCircleFunc ( b2DebugDraw draw,
void *  drawCircleFunc 
)

Set DrawCircleFunc Functions are called by the engine when set

void b2DebugDraw_SetDrawPolygonFunc ( b2DebugDraw draw,
void *  drawPolygonFunc 
)

Set DrawPolygonFunc Functions are called by the engine when set

void b2DebugDraw_SetDrawSegmentFunc ( b2DebugDraw draw,
void *  drawSegmentFunc 
)

Set DrawSegmentFunc Functions are called by the engine when set

void b2DebugDraw_SetDrawSolidCircleFunc ( b2DebugDraw draw,
void *  drawSolidCircleFunc 
)

Set DrawSolidCircleFunc Functions are called by the engine when set

void b2DebugDraw_SetDrawSolidPolygonFunc ( b2DebugDraw draw,
void *  drawSolidPolygonFunc 
)

Set DrawSolidPolgyonFunc Functions are called by the engine when set

void b2DebugDraw_SetDrawTransformFunc ( b2DebugDraw draw,
void *  drawTransformFunc 
)

Set DrawTransformFunc Functions are called by the engine when set

void b2DebugDraw_SetFlags ( b2DebugDraw draw,
var  flags 
)

Set the drawing flags.

void b2DebugDraw_SetUserData ( b2DebugDraw draw,
void *  userData 
)

Set userData user data is passed to the callback functions

 All Data Structures Files Functions Variables Typedefs Defines