Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions

rayobject_internal.h File Reference

Go to the source code of this file.

Classes

struct  RayObjectControl
struct  RayObject
struct  RayObjectAPI

Defines

#define RE_rayobject_isAligned(o)   ((((intptr_t)o)&3) == 0)
#define RE_rayobject_isRayFace(o)   ((((intptr_t)o)&3) == 1)
#define RE_rayobject_isRayAPI(o)   ((((intptr_t)o)&3) == 2)
#define RE_rayobject_isVlakPrimitive(o)   ((((intptr_t)o)&3) == 3)
#define RE_rayobject_align(o)   ((RayObject*)(((intptr_t)o)&(~3)))
#define RE_rayobject_unalignRayFace(o)   ((RayObject*)(((intptr_t)o)|1))
#define RE_rayobject_unalignRayAPI(o)   ((RayObject*)(((intptr_t)o)|2))
#define RE_rayobject_unalignVlakPrimitive(o)   ((RayObject*)(((intptr_t)o)|3))

Typedefs

typedef int(* RE_rayobjectcontrol_test_break_callback )(void *data)
typedef struct RayObjectControl RayObjectControl
typedef int(* RE_rayobject_raycast_callback )(RayObject *, struct Isect *)
typedef void(* RE_rayobject_add_callback )(RayObject *raytree, RayObject *rayobject)
typedef void(* RE_rayobject_done_callback )(RayObject *)
typedef void(* RE_rayobject_free_callback )(RayObject *)
typedef void(* RE_rayobject_merge_bb_callback )(RayObject *, float *min, float *max)
typedef float(* RE_rayobject_cost_callback )(RayObject *)
typedef void(* RE_rayobject_hint_bb_callback )(RayObject *, struct RayHint *, float *, float *)
typedef struct RayObjectAPI RayObjectAPI

Functions

int RE_rayobjectcontrol_test_break (RayObjectControl *c)
float RE_rayobject_cost (RayObject *r)
int RE_rayobject_intersect (RayObject *r, struct Isect *i)

Detailed Description

Definition in file rayobject_internal.h.


Define Documentation

#define RE_rayobject_align (   o)    ((RayObject*)(((intptr_t)o)&(~3)))
#define RE_rayobject_isAligned (   o)    ((((intptr_t)o)&3) == 0)
#define RE_rayobject_isRayAPI (   o)    ((((intptr_t)o)&3) == 2)
#define RE_rayobject_isRayFace (   o)    ((((intptr_t)o)&3) == 1)
#define RE_rayobject_isVlakPrimitive (   o)    ((((intptr_t)o)&3) == 3)
#define RE_rayobject_unalignRayAPI (   o)    ((RayObject*)(((intptr_t)o)|2))
#define RE_rayobject_unalignRayFace (   o)    ((RayObject*)(((intptr_t)o)|1))
#define RE_rayobject_unalignVlakPrimitive (   o)    ((RayObject*)(((intptr_t)o)|3))

Definition at line 84 of file rayobject_internal.h.

Referenced by RE_vlakprimitive_from_vlak().


Typedef Documentation

typedef struct RayObjectAPI RayObjectAPI
typedef void(* RE_rayobject_add_callback)(RayObject *raytree, RayObject *rayobject)

Definition at line 97 of file rayobject_internal.h.

Definition at line 101 of file rayobject_internal.h.

Definition at line 98 of file rayobject_internal.h.

Definition at line 99 of file rayobject_internal.h.

typedef void(* RE_rayobject_hint_bb_callback)(RayObject *, struct RayHint *, float *, float *)

Definition at line 102 of file rayobject_internal.h.

typedef void(* RE_rayobject_merge_bb_callback)(RayObject *, float *min, float *max)

Definition at line 100 of file rayobject_internal.h.

typedef int(* RE_rayobject_raycast_callback)(RayObject *, struct Isect *)

Definition at line 96 of file rayobject_internal.h.

Definition at line 22 of file rayobject_internal.h.


Function Documentation

float RE_rayobject_cost ( RayObject r)
int RE_rayobject_intersect ( RayObject r,
struct Isect i 
)
int RE_rayobjectcontrol_test_break ( RayObjectControl c)