l_los.cc File Reference

#include "AppHdr.h"
#include "l_libs.h"
#include "cluautil.h"
#include "coord.h"
#include "libutil.h"
#include "los.h"
#include "ray.h"

Include dependency graph for l_los.cc:


Defines

#define RAY_METATABLE   "dgn.ray"
#define VECT(v, p1, p2)
#define RAY(ls, n, var)   ray_def *var = *(ray_def **) luaL_checkudata(ls, n, RAY_METATABLE)

Functions

void lua_push_ray (lua_State *ls, ray_def *ray)
 LUAFN (los_find_ray)
 LUAFN (los_make_ray)
 LUAFN (los_cell_see_cell)
 LUAFN (ray_start)
 LUAFN (ray_dir)
 LUAFN (ray_advance)
 LUAFN (ray_pos)
void luaopen_ray (lua_State *ls)

Variables

struct luaL_reg los_dlib []

Define Documentation

#define RAY ( ls,
n,
var   )     ray_def *var = *(ray_def **) luaL_checkudata(ls, n, RAY_METATABLE)

#define RAY_METATABLE   "dgn.ray"

#define VECT ( v,
p1,
p2   ) 

Value:

geom::vector v; \
    v.x = luaL_checknumber(ls, p1); \
    v.y = luaL_checknumber(ls, p2);


Function Documentation

void lua_push_ray ( lua_State *  ls,
ray_def ray 
)

LUAFN ( ray_pos   ) 

LUAFN ( ray_advance   ) 

LUAFN ( ray_dir   ) 

LUAFN ( ray_start   ) 

LUAFN ( los_cell_see_cell   ) 

Here is the call graph for this function:

LUAFN ( los_make_ray   ) 

Here is the call graph for this function:

LUAFN ( los_find_ray   ) 

Here is the call graph for this function:

void luaopen_ray ( lua_State *  ls  ) 

Here is the call graph for this function:


Variable Documentation

struct luaL_reg los_dlib[]

Initial value:

{
    { "findray", los_find_ray },
    { "make_ray", los_make_ray },
    { "cell_see_cell", los_cell_see_cell },
    { NULL, NULL }
}


Generated on Thu Jan 13 13:08:11 2011 by  doxygen 1.5.6