From: klaas.holwerda <kho...@xs...> - 2006-01-16 21:12:27
|
Hi, I made a sample to demo how to use wxLua in an application. It is a simple canvas + nested objects being a container for circle and rect object. It is rendered non flicker etc., and not optimized like wxArt2D. It has a commandprocessor, with undo and redo of moving objects, which can be easily extended if we want. There is also a wxlCanObjScript, which i have in mind to be draw by a lua script string. And that is not workling yet ;-) The idea is to make lua script to add object to the canvas and to define new objects being drawn by lua. The first i think i know how, the second not yet. For the rest it is all Cmake generated project files, which you need to generate using Cmake. Please build outside the wxLua tree itself, since that is what i do. http://www.xs4all.nl/~kholwerd/tmp/wxLua2.tgz Is anyone against if i add the sample to CVS + the Cmake files for building using Cmake? Next we can extend it to demo all ins and outs of wxLua integration into an App. Only tested with VC6 yet. Please let me know if there is any trouble with building it. regards, Klaas |