public override void Setup () { canvas = (HTMLCanvasElement)Window.Self.Document.CreateElement ("canvas"); Window.Self.Document.Body.AppendChild (canvas); gl = (WebGLRenderingContext)canvas.GetContext ("webkit-3d"); }
public override void Setup () { canvas = (HTMLCanvasElement)Window.Self.Document.CreateElement ("canvas"); Window.Self.Document.Body.AppendChild (canvas); ctx = (CanvasRenderingContext2D)canvas.GetContext ("2d"); }