Initial Commit.
[luagame.git] / funcs.h
blob111c64d950fa1f0916344fa23b420ca55967e4c7
1 #ifndef _FUNCS_H_
2 #define _FUNCS_H_
4 #include "SDL/SDL.h"
5 #include "SDL/SDL_rotozoom.h"
6 #include "SDL/SDL_image.h"
7 #include "lua.hpp"
8 #include "globals.h"
9 #include <iostream>
11 //function for loading the configuration data
12 //returns the screen
13 SDL_Surface *load_config(lua_State *L);
15 //function for clearing out the image store
16 void clear_images();
18 //delay function...
19 static int l_delay(lua_State *L){
20 int time = (int)lua_tonumber(L, 1);
21 SDL_Delay(time);
22 return 0;
25 static int l_getticks(lua_State *L){
26 lua_pushinteger(L, SDL_GetTicks());
27 return 1;
31 #endif