Voxvision  1
Creating and manipulating voxel octrees
Data Structures | Macros
object.h File Reference

Common object definitions and dummy methods. More...

#include "../voxvision.h"

Go to the source code of this file.

Data Structures

struct  vox_object
 Generic voxrnd object. More...
 
struct  vox_object_interface
 Generic object interface structure. More...
 

Macros

#define VOX_OBJECT(type)
 Generic object interface. More...
 

Detailed Description

Common object definitions and dummy methods.

Macro Definition Documentation

◆ VOX_OBJECT

#define VOX_OBJECT (   type)
Value:
void (*set_property_number) (struct type *obj, const char *name, float value); \
void (*set_property_dot) (struct type *obj, const char *name, const vox_dot value); \

Generic object interface.

All objects in voxrnd have these two methods in their interface. With set_property_number you can set an object's property of type float and with set_property_dot you can set an object's property of type vox_dot.

See vox_camera_interface and vox_camera for examples.