[fpc-pascal] pas2js Webgl unit committed
Ryan Joseph
ryan at thealchemistguild.com
Tue May 1 14:53:11 CEST 2018
> On May 1, 2018, at 7:49 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
>
> I didn't. Some Regexps in an editor did the job handsomely...
By hand. Hardcore. ;)
Because I don’t see it on the wiki can post a minimal example/template of how to get a canvas started?
Basically I want that but it references an HTML file, do we need to make that in addition to the Pascal?
var canvas = document.getElementById('canvas1');
var gl = canvas.getContext('webgl');
canvas.width = newWidth;
canvas.height = newHeight;
gl.viewport(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight);
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list