Skip to content

Instantly share code, notes, and snippets.

View geoffreymcgill's full-sized avatar

Geoffrey McGill geoffreymcgill

View GitHub Profile
/* global Bridge */
/** @namespace Demo */
/**
* This class performs an important function.
*
* @public
* @class Demo.App
*/
namespace Demo
{
/// <summary>
/// This class performs an important function.
/// </summary>
public class App
{
}
}
{
"output": "Bridge/output",
"outputFormatting": "Minified"
}
<body>
<canvas id="canvas" width="320" height="240"></canvas>
</body>
using Bridge;
using Bridge.Html5;
using Bridge.WebGL;
using System;
namespace Demo
{
public class App
{
public static void Main()
mcs /nostdlib \
/warn:0 \
/reference:"build/Bridge.dll;build/Bridge.Html5.dll" \
/out:build/Demo.dll \
/recurse:*.cs
mono build/Bridge.Builder.exe -lib build/Demo.dll
start /wait C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe ^
/nostdlib ^
/warn:0 ^
/reference:build\Bridge.dll;build\Bridge.Html5.dll ^
/out:build\Demo.dll ^
/recurse:*.cs
start /b build\Bridge.Builder.exe -lib build\Demo.dll
{
"version": "0.1.0",
"command": "build/bridge.sh",
"windows": {
"command": "build\\bridge.bat"
},
"showOutput": "silent"
}
{
"output": "Bridge/output"
}
<body>
<canvas id="canvas" width="320" height="240">
Your browser doesn’t appear to support the HTML5 <canvas> element.
</canvas>
</body>