[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Help needed :How to Avoid the use of namespace inside lua
- From: "Gokul N" <gokul.n@...>
- Date: Thu, 21 Sep 2006 11:26:38 +0530
Hi all,
How to Avoid the use of namespace inside lua
My code:
%module Plum
%{
#include "vec3.h"
#include "color.h"
%}
To use it in lua
The normal syntax would be Plum.vec3.
Ex:
obj = Rngr:func( Plum.vec3 )
Instead I want the syntax to be like
obj = Rngr:func( vec3 ); //avoided the use of namespace
That is vec3 itself is like a dataType (Ex:int)
Question:
How do I wrap it in SWIG ,so that I can avoid the use of namespace while
using it inside lua
Best regards
-Gokul
_________________________________________________________________
One and only Ash. Find out all about her. Only on MSN Search
http://server1.msn.co.in/profile/aishwarya.asp