Voxvision  1
Creating and manipulating voxel octrees
cd.h
Go to the documentation of this file.
1 
5 #ifndef __CD_H__
6 #define __CD_H__
7 
8 #include "renderer.h"
9 
17 struct vox_cd;
18 
25 VOX_EXPORT struct vox_cd* vox_make_cd ();
26 
32 VOX_EXPORT void vox_cd_attach_camera (struct vox_cd *cd, struct vox_camera *camera, float radius);
33 
39 VOX_EXPORT void vox_cd_attach_context (struct vox_cd *cd, struct vox_rnd_ctx *ctx);
40 
47 VOX_EXPORT void vox_cd_collide (struct vox_cd *cd);
48 
60 VOX_EXPORT void vox_cd_gravity (struct vox_cd *cd, const vox_dot gravity);
61 
62 #endif
VOX_EXPORT void vox_cd_collide(struct vox_cd *cd)
Perform collision detection.
VOX_EXPORT void vox_cd_attach_camera(struct vox_cd *cd, struct vox_camera *camera, float radius)
Attach a camera to collision detector.
VOX_EXPORT struct vox_cd * vox_make_cd()
Create collision detector.
VOX_EXPORT void vox_cd_gravity(struct vox_cd *cd, const vox_dot gravity)
Add gravity to the world.
VOX_EXPORT void vox_cd_attach_context(struct vox_cd *cd, struct vox_rnd_ctx *ctx)
Attach a renderer context to collision detector.
The renderer.
A generic camera class.
Definition: camera.h:135
Opaque structure for collision detector.
A renderer context.
Definition: renderer.h:45