HikariLua library v0.1
Mark Manyen
Users of Hikari can use this library to integrate the Lua scripting language into
their projects and control Flash panels using Lua.
The syntax of the Hikari library has been mostly preserved by using
Lua's object oriented features. The exceptions are noted below.
The bind function takes the name of the Lua function to bind (a string)
to the event instead of a FlashDelegate.
There is no direct access to the HikariManager singleton (I may change this later),
so to create a FlashControl you instantiate it like any other Lua object
and then call the init member function. See example.
The init function takes a string to designate the screen position of the
FlashControl instead of the enum. (Again this may change in the future).
Building:
You will need a recent version of Lua (http://www.lua.org) to build the library.
I use environment variables to control the locations of include and library files.
The following environment variables are required to build the library with my solution files.
LUA_HOME (ex. C:\code\Open Source\Lua\source\lua-5.1.2)
HIKARI_HOME (ex. C:\code\Open Source\Hikari\Hikari)
OGRE_HOME (set to the Ogre SDK directory, if you build Ogre from source you can figure it out)
Extras:
I have included release and debug Lua libraries and DLLs and the Boot.lua file
I use for the demo project in the extras folder.
HikariLuaDemo:
I have recreated the original HikariDemo to show off the library.
The HikariLuaDemo project requires that the Boot.lua file from the extras folder be
placed in the Hikari bin folder and the an appropriate Lua DLL is available.
It should be the same as the Hikari demo, except the FPS isn't updated. I'll leave that
as an exercise for the user (Hint: Timers!).
License:
While the LGPL licence is very good, I don't think this code needs to be in a separate DLL,
so I choose to use the less restrictive MIT license, pasted below.
Copyright (c) 2008 Mark Manyen and The Johnson Simulation Center
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Hikari Source - v0.3.zip (55个子文件)
HikariLua
include
updatable.h 335B
HikariLua.h 148B
source
HikariLua.vcproj 4KB
stdafx.h 556B
luna.h 4KB
HikariLua.sln 1KB
stdafx.cpp 296B
updatable.cpp 691B
HikariLua.cpp 13KB
HikariLuaDemo
OgreMin.cpp 8KB
LuaGlue.cpp 736B
HikariLuaDemo.vcproj 5KB
Readme.txt 3KB
extras
Lua.dll 160KB
Lua.lib 24KB
Lua_d.dll 264KB
Boot.lua 474B
Lua_d.lib 24KB
lib
cleanup_msvc8.bat 689B
HikariDemo
bin
build-common
release
Plugins.cfg 142B
resources.cfg 32B
debug
Plugins.cfg 146B
resources.cfg 32B
media
fps.swf 7KB
fps.fla 42KB
controls.fla 1.04MB
controls.swf 29KB
include
InputManager.h 3KB
HikariDemo.h 1KB
source
main.cpp 337B
HikariDemo.cpp 4KB
InputManager.cpp 12KB
objects
HikariDemo.vcproj 6KB
CHANGELOG.txt 2KB
LICENSE.txt 24KB
Hikari
include
Delegate.h 16KB
Hikari.h 8KB
FlashControl.h 13KB
HikariPlatform.h 1KB
impl
flashhandler.h 8KB
ViewportOverlay.h 2KB
KeyboardHook.h 1KB
FlashSite.h 7KB
RenderBuffer.h 1KB
Position.h 2KB
FlashValue.h 5KB
source
FlashControl.cpp 17KB
KeyboardHook.cpp 2KB
FlashValue.cpp 4KB
Hikari.cpp 9KB
ViewportOverlay.cpp 5KB
Position.cpp 1KB
RenderBuffer.cpp 2KB
objects
lib
Hikari.vcproj 5KB
Hikari.sln 1KB
共 55 条
- 1
资源评论
- jossnse2013-02-21不错,折腾了一下,不过成功在ogre1.7.1上跑起来了。
- 小白的20152013-07-24没打开 压缩包错误
tigerjdh
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 使用ASP.NET Core和Entity Framework Core来构建一个基本的进销存系统.rar
- 深度学习经典数据集+FER2013面部表情识别+附带使用方法的python代码
- Python中,要实现连接多个相机并识别多个二维码.rar
- 使用FFT算法对一个信号进行分析.rar
- 171cms游戏应用下载系统源码.zip
- 基于jsp+servlet+mysql蛋糕甜品店购物网站源码+数据库(期末大作业).zip
- Java项目:在线蛋糕商城系统(java+jsp+mysql)源码+数据库+期末大作业.zip
- ZapyaClient10_7-1.apk
- 织梦cms站长导航网站源码.zip
- 基于SSM+MySQL的网络投票调查问卷系统源码+数据库(java期末大作业).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功