Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (26 sloc) 0.709 kb
/*
* See Licensing and Copyright notice in naev.h
*/
#ifndef NLUA_COL_H
# define NLUA_COL_H
#include <lua.h>
#include "colour.h"
#define COL_METATABLE "colour" /**< COL metatable identifier. */
/**
* @brief Lua texture wrapper.
*/
typedef struct LuaColour_s {
glColour col; /**< Colour wrapped around. */
} LuaColour; /**< Wrapper for a texture. */
/*
* Library loading
*/
int nlua_loadCol( lua_State *L, int readonly );
/*
* Colour operations
*/
LuaColour* lua_tocolour( lua_State *L, int ind );
LuaColour* luaL_checkcolour( lua_State *L, int ind );
LuaColour* lua_pushcolour( lua_State *L, LuaColour col );
int lua_iscolour( lua_State *L, int ind );
#endif /* NLUA_COL_H */
Jump to Line
Something went wrong with that request. Please try again.