Fixed some little errors with the drawing functions.
[luagame.git] / funcs_video.h
blob23c98fd0ebf0b309c1a7070d78cf02d5d4745997
1 /*
2 Copyright (c)2006-2007 - Brett Lajzer
4 See LICENSE for license information.
5 */
7 #include <GL/gl.h>
8 #include <SDL/SDL.h>
9 #include <lua.hpp>
11 //loads an SDL_Surface into a texture and returns the handle
12 GLuint surfaceToTexture(lua_State *L, SDL_Surface *s);
14 //function for loading a surface from many different formats (except TIFF)
15 int l_getimage(lua_State *L);
17 //forces an image to be unloaded from memory
18 int l_releaseimage(lua_State *L);
20 //function for updating the display surface
21 int l_flip(lua_State *L);
23 //function for simple drawing (non-animated)
24 int l_display(lua_State *L);
26 //function for blitting a frame of an animation
27 //frames are laid out horizontally
28 //frames start at 0
29 int l_displayframe(lua_State *L);
31 //cursor toggler
32 int l_show_cursor(lua_State *L);
34 //fills screen with a color
35 int l_fill_screen(lua_State *L);
37 //free surface interface
38 int l_delete_image(lua_State *L);