15 #ifndef ODEHEIGHTFIELDGEOM_H
16 #define ODEHEIGHTFIELDGEOM_H
18 #include "pandabase.h"
19 #include "typedObject.h"
22 #include "ode_includes.h"
39 INLINE dHeightfieldDataID heightfield_data_create();
40 INLINE
void heightfield_data_destroy(dHeightfieldDataID d);
41 INLINE
void heightfield_data_build_callback(dHeightfieldDataID d,
43 dHeightfieldGetHeight* p_callback,
52 INLINE
void heightfield_data_build_byte(dHeightfieldDataID d,
53 const unsigned char* p_height_data,
54 int b_copy_height_data,
63 INLINE
void heightfield_data_build_short(dHeightfieldDataID d,
64 const short* p_height_data,
65 int b_copy_height_data,
74 INLINE
void heightfield_data_build_single(dHeightfieldDataID d,
75 const float* p_height_data,
76 int b_copy_height_data,
85 INLINE
void heightfield_data_build_double(dHeightfieldDataID d,
86 const double* p_height_data,
87 int b_copy_height_data,
96 INLINE
void heightfield_data_set_bounds(dHeightfieldDataID d,
99 INLINE
void heightfield_set_heightfield_data(dHeightfieldDataID d);
105 static void init_type() {
106 OdeGeom::init_type();
107 register_type(_type_handle,
"OdeHeightfieldGeom",
108 OdeGeom::get_class_type());
111 return get_class_type();
113 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
119 #include "odeHeightfieldGeom.I"
TypeHandle is the identifier used to differentiate C++ class types.