Code Monkey home page Code Monkey logo

luail's Introduction

LuaDevIL v1.1
Binding to the Devil [2] library for the Lua [1] language

LuaDevIL is Lua 5.x compatible module providing imaging capabilities
based on the DevIL library. The module interface follows strictly the
DevIL architecture and is very easy to use if the programmer has
already experience with DevIL.

-- Install instructions:
There is no build scripts intentionally. You should create one
yourself depending on your building environment. It is most easy
if you have a unix shell, lua and devil libraries installed and
PKG_CONFIG_PATH properly set

$gcc -shared -o luadevil.so `pkg-config --cflags lua IL ILU ILUT` \
 `pkg-config --libs lua IL ILU ILUT` luail.c  luailu.c  luailut.c 

Then copy the result luadevil.so to where your LUA_CPATH points.

-- Test:

example.lua/example1.lua is a quick and durty example.

$lua example.lua/example1.lua <image.ext>

The result should be 3 new files image_wave.ext, image_scale.ext and
image_buzz.ext which represents the original image with applied some
transofrmations and filtering.

example.lua/example2.lua demonstrate LuaDevIL usage in combination
with LuaGL. Unfortunately it will not work with the original LuaGL
binding [3] as it doesn't support GLUT (at least at the time of
writing this)

-- Thanks:
to Lua community for all nice stuff around and to you for your
interest to LuaDevIL.

-- References:
1. Lua   - http://www.lua.org
2. DevIL - http://openil.sourceforge.net
3. LuaGL - http://luagl.luaforge.net

-- PS:
Don't hesitate to contact me for bugs and requests.
Author:       Alexander Marinov ([email protected])

luail's People

Contributors

alekmarinov avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.