summaryrefslogtreecommitdiff
path: root/iup/srclua5/iuplua_imglib.c
blob: f7b2755de2b9c136724687df2fa7da9f6ad94a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/** \file
 * \brief Iup Image Library Lua 5 Binding
 *
 * See Copyright Notice in cd.h
 */

#include <stdlib.h>
#include <stdio.h>

#include <lua.h>
#include <lauxlib.h>

#include "iup.h"
#include "iuplua.h"
#include "iupcontrols.h"
#include "il.h"


static int imagelibopen(lua_State *L)
{
  (void)L;
  IupImageLibOpen();
  return 0;
}

static int iupluaimglib_open (lua_State *L)
{
  IupImageLibOpen();
  
  iuplua_get_env(L);
  iuplua_register(L, imagelibopen, "ImageLibOpen");
  return 0; /* nothing in stack */
}

int luaopen_iupluaimglib(lua_State* L)
{
  return iupluaimglib_open(L);
}