17#include "background.h"
19#include "nlua_colour.h"
89 double x,y, move, scale, angle;
97 x = luaL_checknumber(L,2);
98 y = luaL_checknumber(L,3);
99 move = luaL_optnumber(L,4,0.);
100 scale = luaL_optnumber(L,5,1.);
101 angle = luaL_optnumber(L,6,0.);
102 col = luaL_optcolour(L,7,&cWhite);
103 foreground = lua_toboolean(L,8);
107 lua_pushnumber(L,
id);
unsigned int background_addImage(glTexture *image, double x, double y, double move, double scale, double angle, const glColour *col, int foreground)
Adds a new background image.
void background_clear(void)
Cleans up the background stuff.
Header file with generic functions and naev-specifics.
static int bkgL_image(lua_State *L)
Adds a background image.
static const luaL_Reg bkgL_methods[]
static int bkgL_clear(lua_State *L)
Lua bindings to interact with the background.
int nlua_loadBackground(nlua_env env)
Loads the graphics library.
glTexture * luaL_checktex(lua_State *L, int ind)
Gets texture at index or raises error if there is no texture at index.
Abstraction for rendering sprite sheets.