add "using" keyword when targeting c#

35 views
Skip to first unread message

oleg karasev

unread,
Nov 2, 2013, 3:18:46 AM11/2/13
to haxe...@googlegroups.com
It is possible to specify haxe compiller add "using" keyword when targeting c# ?

Now it generates code like this:
global::OpenTK.Graphics.OpenGL.GL.DrawElements(global::OpenTK.Graphics.OpenGL.BeginMode.Triangles, this.elementsLength, global::OpenTK.Graphics.OpenGL.DrawElementsType.UnsignedInt, 0);

it works ok, but it is dufficult to read. 

compare with:

using global::OpenTK.Graphics.OpenGL //(at begin of .cs file)
GL.DrawElements(BeginMode.Triangles, this.elementsLength, DrawElementsType.UnsignedInt, 0);
Reply all
Reply to author
Forward
0 new messages