Voxvision  1
Creating and manipulating voxel octrees
object.h
Go to the documentation of this file.
1 
5 #ifndef _OBJECT_H_
6 #define _OBJECT_H_
7 
8 #include "../voxvision.h"
9 
10 #ifdef VOXRND_SOURCE
11 void vox_method_void_dummy (void *obj, ...);
12 float vox_method_float_dummy (void *obj, ...);
13 void vox_method_dot_dummy (void *obj, vox_dot dot, ...);
14 
15 
16 #define VOX_OBJECT_METHODS .set_property_number = (void*)vox_method_void_dummy, \
17  .set_property_dot = (void*)vox_method_void_dummy,
18 #endif
19 
29 #define VOX_OBJECT(type) void (*set_property_number) (struct type *obj, const char *name, float value); \
30  void (*set_property_dot) (struct type *obj, const char *name, const vox_dot value); \
31 
37 struct vox_object
38 {
41 };
42 
47  VOX_OBJECT(vox_object);
48 };
49 
50 #endif
Generic object interface structure.
Definition: object.h:46
Generic voxrnd object.
Definition: object.h:38
struct vox_object_interface * iface
Generic interface implementation.
Definition: object.h:39