[Pas2js] pas2js Webgl unit committed

Michael Van Canneyt michael at freepascal.org
Wed May 9 16:49:08 CEST 2018



On Wed, 9 May 2018, Ryan Joseph wrote:

>
>
>> On May 9, 2018, at 7:59 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
>> 
>> You can fetch files from a server using XMLHTTPRequest, and then make them available in a buffer.
>
> As a side note how does it work when I encounter a class like XMLHTTPRequest? Do I assume all JS classes just exist or do I need to see if you translated them? There are constructors and the “new” keyword I’m not sure how to translate by default. From the previous email it sounded like you wanted to add this but I still don’t understand how they should work.
>
> For example how does this translate?
>
> var xhr = new XMLHttpRequest();

xhr:=TJSXMLHttpRequest.New()

There are examples that show how to do this.

Michael.


More information about the Pas2js mailing list