Cant write wrapper class for light effect

17 views
Skip to first unread message

Arivu

unread,
May 26, 2012, 12:13:49 PM5/26/12
to visag...@googlegroups.com
i am working on visage for more than a month. now i am struck with light effect. Actually there r three  sub-classes. i.e.,Light.Distant,Light.Point,Light.Spot. so how can i write inner class in visage? visage compiler wont recognize normal java sub class. pls help me out guy's.. Thanks in advance.

Alain Béarez

unread,
Jun 6, 2012, 12:48:04 PM6/6/12
to visag...@googlegroups.com
Declaring an inner class in Visage is as simple as declaring a class in the same Visage source code file where the enclosing class is defined. However, the inner class has to be declared _outside_ the declaration block of its enclosing class, which might seem counter-intuitive to Java developers. In fact the "Visage compiler compiles Visage modules into Java classes and Visage classes in a module into nested Java classes", as stated in the VisageLanguageGuide.doc, in the note preceding the "Invoking Instance and Script Functions" section.
Reply all
Reply to author
Forward
0 new messages