Fixed some little errors with the drawing functions.
[luagame.git] / funcs.h
blob9ba79b7d94abe938429c9732cfde331a3f2cc835
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 <lua.hpp>
12 #include "globals.h"
14 //function for loading the configuration data
15 //returns the screen
16 SDL_Surface *load_config(lua_State *L, std::string pname);
18 //prints the usage info to STDERR
19 void print_usage(std::string progname);
21 //function for clearing out the image store
22 void clear_images();
24 //delay function...
25 static int l_delay(lua_State *L){
26 int time = (int)lua_tonumber(L, 1);
27 SDL_Delay(time);
28 return 0;
31 static int l_getticks(lua_State *L){
32 lua_pushinteger(L, SDL_GetTicks());
33 return 1;
37 #endif