Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

demo-script.h File Reference

Go to the source code of this file.

Functions

int script_demo_display (lua_State *L) throw ()
 void demo_display(picture, x, y)


Function Documentation

int script_demo_display lua_State *  L  )  throw ()
 

void demo_display(picture, x, y)

Definition at line 29 of file demo-script.cpp.

00030 {
00031     BEGIN_NOEXCEPTION;
00032     const char *filename = luaL_checkstring(L, 1);
00033     int x = luaL_checkint(L, 2);
00034     int y = luaL_checkint(L, 3);
00035 
00036     Picture *picture = new Picture(Path::dataReadPath(filename), V2(x, y));
00037     getDemo(L)->action_display(picture);
00038     END_NOEXCEPTION;
00039     return 0;
00040 }


Generated on Wed Jun 1 09:54:32 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2