GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
physics.h
Go to the documentation of this file.
1
7#ifndef __GF_TYPE_PHYSICS_H__
8#define __GF_TYPE_PHYSICS_H__
9
10#include <gf_pre.h>
11#include <gf_macro.h>
12
13#ifdef GF_EXPOSE_PHYSICS
14typedef struct gf_physics_t gf_physics_t;
15
16/* External library */
17#include <ode/ode.h>
18
19/* Engine */
20#include <gf_type/core.h>
21
22/* Standard */
23
35GF_DECLARE_TYPE(physics, {
37 dWorldID id;
38});
39#else
40typedef void gf_physics_t;
41#endif
42
43#endif
Type definitions related to core.
#define GF_DECLARE_TYPE(n, b)
Macro to define engine type shorter.
Definition gf_macro.h:180
Required headers before anything.
Engine instance.
Definition core.h:46
Physics interface.
Definition physics.h:38
gf_engine_t * engine
Engine instance.
Definition physics.h:38
dWorldID id
ODE's world ID.
Definition physics.h:38