libmove3d
3.13.0
|
Classes | |
struct | collision_pair_env |
Structure to store the data of each environment. More... | |
Defines | |
#define | COL_PAIR_STACK_MIN_SIZE 10 |
Default stack size. | |
Typedefs | |
typedef struct collision_pair_env | p3d_collision_pair_env |
Structure to store the data of each environment. | |
Functions | |
p3d_collision_pair * | p3d_col_pair_get_cur (void) |
Get the current collision pair. | |
void | p3d_col_pair_copy_current_into (p3d_collision_pair *pair) |
Copy the current collision pair into pair. | |
p3d_collision_pair * | p3d_col_pair_copy_current (void) |
Create a new collision pair. | |
void | p3d_col_pair_put (p3d_collision_pair *pair) |
Put the pair in the current pair. | |
void | p3d_col_pair_push (void) |
Push the current collision pair in the stack ::current_collision_pair_stack. | |
void | p3d_col_pair_push_and_put (p3d_collision_pair *pair) |
Push the current collision pair in the stack ::current_collision_pair_stack, and put pair as the new current collision pair. | |
void | p3d_col_pair_pop (void) |
Restore a collision pair in the stack ::current_collision_pair_stack as the new current collision pair. | |
void | p3d_col_pair_flush (void) |
Clear the stack ::current_collision_pair_stack. | |
void | p3d_col_pair_clear (void) |
Release the memory used to manage current collision pair. | |
void | p3d_col_pair_start (void) |
Initialize collision pair to start a new environment. | |
void | p3d_col_pair_stop (void) |
Release the memory for collision pair in all environment. |
void p3d_col_pair_clear | ( | void | ) |
Release the memory used to manage current collision pair.
This release the memory for ::current_collision_pair_stack and ::default_current_collision_pair.
p3d_collision_pair* p3d_col_pair_copy_current | ( | void | ) |
Create a new collision pair.
In this new pair, there is the same test of collisions than in the current pair.
void p3d_col_pair_copy_current_into | ( | p3d_collision_pair * | pair | ) |
Copy the current collision pair into pair.
pair,: | The collision pair in which the current collision pair is copied. |
void p3d_col_pair_flush | ( | void | ) |
Clear the stack ::current_collision_pair_stack.
p3d_collision_pair* p3d_col_pair_get_cur | ( | void | ) |
Get the current collision pair.
void p3d_col_pair_pop | ( | void | ) |
Restore a collision pair in the stack ::current_collision_pair_stack as the new current collision pair.
void p3d_col_pair_push | ( | void | ) |
Push the current collision pair in the stack ::current_collision_pair_stack.
Note: After being push their is no valid current collision pair. Any function that calls the current collision pair before a p3d_col_pair_put() or a p3d_col_pair_push() will get ::default_current_collision_pair.
void p3d_col_pair_push_and_put | ( | p3d_collision_pair * | pair | ) |
Push the current collision pair in the stack ::current_collision_pair_stack, and put pair as the new current collision pair.
pair,: | the collision pair that becomes current |
void p3d_col_pair_put | ( | p3d_collision_pair * | pair | ) |
Put the pair in the current pair.
pair,: | the collision pair that become current |
The pair becomes the new current pair. The old current pair is not destroy. If we want to destroy it, it is necessary to use p3d_col_pair_destroy().