demo.ChipmunkDemo

Undocumented in source.

Members

Aliases

ChipmunkDemoDestroyFunc
alias ChipmunkDemoDestroyFunc = void function(cpSpace* space)
Undocumented in source.
ChipmunkDemoDrawFunc
alias ChipmunkDemoDrawFunc = void function(cpSpace* space)
Undocumented in source.
ChipmunkDemoInitFunc
alias ChipmunkDemoInitFunc = cpSpace* function()
Undocumented in source.
ChipmunkDemoUpdateFunc
alias ChipmunkDemoUpdateFunc = void function(cpSpace* space, double dt)
Undocumented in source.
stderr
alias stderr = std.stdio.stderr
Undocumented in source.

Enums

WindowMode
enum WindowMode
Undocumented in source.

Functions

BodyFreeWrap
void BodyFreeWrap(cpSpace* space, cpBody* body_, void* unused)
Undocumented in source. Be warned that the author may not have intended to support it.
ChipmunkDemoDefaultDrawImpl
void ChipmunkDemoDefaultDrawImpl(cpSpace* space)
Undocumented in source.
ChipmunkDemoDefaultDrawImpl
void ChipmunkDemoDefaultDrawImpl(cpSpace* space)
Undocumented in source. Be warned that the author may not have intended to support it.
ChipmunkDemoFreeSpaceChildren
void ChipmunkDemoFreeSpaceChildren(cpSpace* space)
Undocumented in source.
ChipmunkDemoFreeSpaceChildren
void ChipmunkDemoFreeSpaceChildren(cpSpace* space)
Undocumented in source. Be warned that the author may not have intended to support it.
ChipmunkDemoPrintString
void ChipmunkDemoPrintString(string fmt, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
Click
void Click(GLFWwindow* window, int button, int state, int mods)
Undocumented in source. Be warned that the author may not have intended to support it.
ConstraintFreeWrap
void ConstraintFreeWrap(cpSpace* space, cpConstraint* constraint, void* unused)
Undocumented in source. Be warned that the author may not have intended to support it.
DemoTitle
char[] DemoTitle(size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
Display
void Display()
Undocumented in source. Be warned that the author may not have intended to support it.
DrawInfo
void DrawInfo()
Undocumented in source. Be warned that the author may not have intended to support it.
DrawInstructions
void DrawInstructions()
Undocumented in source. Be warned that the author may not have intended to support it.
Keyboard
void Keyboard(GLFWwindow* window, int key, int scancode, int state, int modifier)
Undocumented in source. Be warned that the author may not have intended to support it.
Mouse
void Mouse(GLFWwindow* window, double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
MouseToSpace
cpVect MouseToSpace(double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
PostBodyFree
void PostBodyFree(cpBody* body_, cpSpace* space)
Undocumented in source. Be warned that the author may not have intended to support it.
PostConstraintFree
void PostConstraintFree(cpConstraint* constraint, cpSpace* space)
Undocumented in source. Be warned that the author may not have intended to support it.
PostShapeFree
void PostShapeFree(cpShape* shape, cpSpace* space)
Undocumented in source. Be warned that the author may not have intended to support it.
Reshape
void Reshape(GLFWwindow* window, int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
RunDemo
void RunDemo(size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
SetupGL
void SetupGL()
Undocumented in source. Be warned that the author may not have intended to support it.
ShapeFreeWrap
void ShapeFreeWrap(cpSpace* space, cpShape* shape, void* unused)
Undocumented in source. Be warned that the author may not have intended to support it.
Tick
void Tick(double dt)
Undocumented in source. Be warned that the author may not have intended to support it.
TimeTrial
void TimeTrial(int index, int count)
Undocumented in source. Be warned that the author may not have intended to support it.
Update
void Update()
Undocumented in source. Be warned that the author may not have intended to support it.
WindowClose
void WindowClose(GLFWwindow* window)
Undocumented in source. Be warned that the author may not have intended to support it.
createWindow
Window createWindow(string windowName, WindowMode windowMode, int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
frand
cpFloat frand()
Undocumented in source. Be warned that the author may not have intended to support it.
frand_unit_circle
cpVect frand_unit_circle()
Undocumented in source. Be warned that the author may not have intended to support it.
main
int main(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
on_glfw_error
void on_glfw_error(int code, string msg)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

GRABABLE_MASK_BIT
enum GRABABLE_MASK_BIT;
Undocumented in source.
NOT_GRABABLE_MASK
enum NOT_GRABABLE_MASK;
Undocumented in source.

Static variables

window
GLFWwindow* window;
Undocumented in source.

Structs

ChipmunkDemo
struct ChipmunkDemo
Undocumented in source.

Variables

Accumulator
double Accumulator;
Undocumented in source.
ChipmunkDemoKeyboard
cpVect ChipmunkDemoKeyboard;
Undocumented in source.
ChipmunkDemoMessageString
char[] ChipmunkDemoMessageString;
Undocumented in source.
ChipmunkDemoMouse
cpVect ChipmunkDemoMouse;
Undocumented in source.
ChipmunkDemoRightClick
cpBool ChipmunkDemoRightClick;
Undocumented in source.
ChipmunkDemoRightDown
cpBool ChipmunkDemoRightDown;
Undocumented in source.
ChipmunkDemoTicks
int ChipmunkDemoTicks;
Undocumented in source.
ChipmunkDemoTime
double ChipmunkDemoTime;
Undocumented in source.
LastTime
double LastTime;
Undocumented in source.
PrintStringBuffer
char PrintStringBuffer;
Undocumented in source.
PrintStringCursor
size_t PrintStringCursor;
Undocumented in source.
demo_count
size_t demo_count;
Undocumented in source.
demo_index
size_t demo_index;
Undocumented in source.
demo_list
ChipmunkDemo[] demo_list;
Undocumented in source.
demos
ChipmunkDemo* demos;
Undocumented in source.
max_arbiters
int max_arbiters;
Undocumented in source.
max_constraints
int max_constraints;
Undocumented in source.
max_points
int max_points;
Undocumented in source.
mouse_body
cpBody* mouse_body;
Undocumented in source.
mouse_joint
cpConstraint* mouse_joint;
Undocumented in source.
paused
cpBool paused;
Undocumented in source.
scale
cpFloat scale;
Undocumented in source.
space
cpSpace* space;
Undocumented in source.
step
cpBool step;
Undocumented in source.
translate
cpVect translate;
Undocumented in source.

Meta