value expression from editbox

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
krom
Posts: 17
Joined: Sun May 17, 2009 5:27 pm

value expression from editbox

Post by krom »

Hi all
would it be possible to write an expression into a editbox and then pass it to a variable?.
something like 2+5*2 or valueA*3 or acin(valueA*3) and then grab the result..

krom
teto
Posts: 159
Joined: Thu Dec 03, 2009 9:37 pm
Location: /home
Contact:

Re: value expression from editbox

Post by teto »

you would need to write either your own parser or use a scripting system.
I use Lua & luabind to debug from a console.
"setCameraPos(0,5,10)" for example.
Using trunk with mingw/gcc 4.6, Windows 7 64 bits driver opengl
Post Reply