ZERO

Sign in to follow this  
Followers 0
  • entries
    20
  • comments
    78
  • views
    30,467

A C++/LUA bridge Class

Roland

48 views

I have made a small class for helping with reading and writing parameters between C++ and LUA and also calling LUA functions from C++. I'm sharing this little thing here.

 

blogentry-395-0-01293300-1488719654_thumb.png

 

Using the class is quite simple as shown below

 

LUA - part

blogentry-395-0-18534700-1488720057.png

 

C++ - part

blogentry-395-0-59572000-1488719924_thumb.png

 

I have included is a test project which looks like this in the editor

blogentry-395-0-25132300-1488720141_thumb.png

 

And like this when executed

blogentry-395-0-63899000-1488720151_thumb.png

 

Here is the LuaBridge class source

Luabrigde.h

Luabrigde.cpp

 

And the complete test project

LuaBridge.zip

 

Note: Its says 'Click for next test', should be 'Hit Spacebar for next test'


8
  Report Entry


2 Comments


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Create Your Account

Sign in

Already have an account? Sign in here.


Sign In Now