LuaTest: Difference between revisions

From RpWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 1: Line 1:
[[Image:Luatest.png|200px|thumb|right|luaTest]]
This is a small test application using c++, qt and the lua scripting language.
This is a small test application using c++, qt and the lua scripting language.
[[Image:Luatest.png|200px|right]]
 
You can input lua commands in the edit control, currently there are 3 commands you can use to paint in the control above:
 
  clear()
  drawLine( startx, starty, endx, endy)
  drawText( string, posx, posy)
 


== Building ==
== Building ==

Latest revision as of 14:34, 19 August 2008

luaTest

This is a small test application using c++, qt and the lua scripting language.

You can input lua commands in the edit control, currently there are 3 commands you can use to paint in the control above:

 clear()
 drawLine( startx, starty, endx, endy)
 drawText( string, posx, posy)


Building

Linux

On a debian based system try this to solve building dependencies (tested on kubuntu):

 apt-get install build-essential libqt4-dev liblua5.1-0-dev

to build use these commands:

 qmake-qt4 luaTest.pro
 make

Source Code

git http viewer: luaTest

 git-clone http://git.oldsch00l.com/luaTest.git