Voxvision
1
Creating and manipulating voxel octrees
src
voxrnd
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
{
39
struct
vox_object_interface
*
iface
;
41
};
42
46
struct
vox_object_interface
{
47
VOX_OBJECT(
vox_object
);
48
};
49
50
#endif
vox_object_interface
Generic object interface structure.
Definition:
object.h:46
vox_object
Generic voxrnd object.
Definition:
object.h:38
vox_object::iface
struct vox_object_interface * iface
Generic interface implementation.
Definition:
object.h:39
Generated on Sun Jun 18 2023 19:31:10 for Voxvision by
1.9.1