Chipmunk++
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Pages
src
chipmunkpp
types.hpp
1
#pragma once
2
3
#include <chipmunk.h>
4
5
#pragma GCC visibility push(default)
6
namespace
cp {
7
typedef
cpFloat Float;
8
typedef
cpCollisionType CollisionType;
9
typedef
cpDataPointer DataPointer;
10
11
class
Layers
{
12
public
:
13
Layers
();
// no layers
14
Layers
(
unsigned
int
layerNr);
// one layer
15
Layers
operator~()
const
;
16
Layers
operator|(
Layers
rhs)
const
;
17
#ifdef _MSC_VER
18
operator
cpLayers()
const
;
19
#else
20
explicit
operator
cpLayers()
const
;
21
#endif
22
private
:
23
cpLayers l;
24
};
25
const
static
Layers
ALL_LAYERS(~(
Layers
()));
26
27
class
Group
{
28
public
:
29
Group
(cpGroup);
30
#ifdef _MSC_VER
31
operator
cpGroup()
const
;
32
#else
33
explicit
operator
cpGroup()
const
;
34
#endif
35
private
:
36
cpGroup g;
37
};
38
const
static
Group
NO_GROUP(CP_NO_GROUP);
39
}
40
#pragma GCC visibility pop