Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added missing function declarations (WIP).

git-svn-id: https://opentk.svn.sourceforge.net/svnroot/opentk/trunk@3092 ebc5dd9b-fb1d-0410-b6f8-d24c324e9604
  • Loading branch information...
commit ec7f8ba697033d20cead062c0b957a8809b721a3 1 parent 1bcbcbb
the_fiddler authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 Source/Bind/JavaSpecWriter.cs
View
12 Source/Bind/JavaSpecWriter.cs
@@ -104,7 +104,9 @@ void Move(string file, string dest)
static void WriteWrapper(Function f, BindStreamWriter sw)
{
var parameters = f.WrappedDelegate.Parameters.ToString()
- .Replace("[OutAttribute]", String.Empty);
+ .Replace("[OutAttribute]", String.Empty);
+ sw.WriteLine("{0} {1}{2}", f.WrappedDelegate.ReturnType,
+ f.TrimmedName, parameters);
sw.WriteLine("{");
sw.Indent();
WriteMethodBody(sw, f);
@@ -163,7 +165,8 @@ static string GetNamespace(string ext)
if (ext == "Core")
return Settings.GLClass;
else
- return String.Format("{0}::{1}", Settings.GLClass, Char.IsDigit(ext[0]) ? DigitPrefix + ext : ext);
+ return String.Format("{1}{0}{2}", Settings.NamespaceSeparator,
+ Settings.GLClass, Char.IsDigit(ext[0]) ? DigitPrefix + ext : ext);
}
#region WriteEnums
@@ -228,12 +231,11 @@ static void WriteDelegate(BindStreamWriter sw, Delegate d, ref Delegate last_del
static void WriteMethodBody(BindStreamWriter sw, Function f)
{
-
var callstring = f.Parameters.CallString();
if (f.ReturnType != null && !f.ReturnType.ToString().ToLower().Contains("void"))
- sw.WriteLine("return GLES20::{0}(){1};", f.WrappedDelegate.Name, callstring);
+ sw.WriteLine("return GLES20.{0}(){1};", f.WrappedDelegate.Name, callstring);
else
- sw.WriteLine("GLES20::{0}(){1};", f.WrappedDelegate.Name, callstring);
+ sw.WriteLine("GLES20.{0}(){1};", f.WrappedDelegate.Name, callstring);
}
static DocProcessor processor = new DocProcessor(Path.Combine(Settings.DocPath, Settings.DocFile));
Please sign in to comment.
Something went wrong with that request. Please try again.