Gama C Library
Gama C API Documentation
Loading...
Searching...
No Matches
system.h File Reference
#include "body.h"
#include "body_list.h"
#include "position.h"

Go to the source code of this file.

Data Structures

struct  gmCollision
 Structure representing a collision between two bodies. More...
struct  gm_system
 Structure representing a physics system containing bodies and collision information. More...

Typedefs

typedef struct gm_system gmSystem
 Structure representing a physics system containing bodies and collision information.

Functions

gmSystem gm_system_create ()
 Creates a new physics system with default values.
void gm_system_destroy (gmSystem *sys)
 Destroy the system and free memory.

Typedef Documentation

◆ gmSystem

typedef struct gm_system gmSystem

Structure representing a physics system containing bodies and collision information.

Function Documentation

◆ gm_system_create()

gmSystem gm_system_create ( )

Creates a new physics system with default values.

Returns
A new gmSystem instance.

◆ gm_system_destroy()

void gm_system_destroy ( gmSystem * sys)

Destroy the system and free memory.

Parameters
sysPointer to the system to destroy.