Removed global physics. Changed "angle" to "heading".
[luagame.git] / funcs.h
blob2940a8f75f4ae463c6b48b49285160d25551b6be
1 /*
2 Copyright (c)2006-2007 - Brett Lajzer
4 See LICENSE for license information.
5 */
7 #ifndef _FUNCS_H_
8 #define _FUNCS_H_
10 #include "SDL/SDL.h"
11 #include "SDL/SDL_rotozoom.h"
12 #include "SDL/SDL_image.h"
13 #include "lua.hpp"
14 #include "globals.h"
15 #include <iostream>
17 //function for loading the configuration data
18 //returns the screen
19 SDL_Surface *load_config(lua_State *L, std::string pname);
21 //prints the usage info to STDERR
22 void print_usage(std::string progname);
24 //function for clearing out the image store
25 void clear_images();
27 //delay function...
28 static int l_delay(lua_State *L){
29 int time = (int)lua_tonumber(L, 1);
30 SDL_Delay(time);
31 return 0;
34 static int l_getticks(lua_State *L){
35 lua_pushinteger(L, SDL_GetTicks());
36 return 1;
40 #endif