[Pas2js] pas2js Webgl unit committed
Michael Van Canneyt
michael at freepascal.org
Wed May 9 14:59:40 CEST 2018
On Wed, 9 May 2018, Ryan Joseph wrote:
>
>
>> On May 9, 2018, at 5:21 PM, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
>>
>> What do you mean with long strings? Multi line texts?
>
> Multi line texts but probably files are what I want since I want to load
> shaders. Should I be looking at FPC RTL for loading text files or is
> there a JavaScript RTL that has these kinds of utilities? Sorry I’m
> really foggy with JavaScript and what it can do besides manipulate the
> DOM.
There is no concept of loading files in Javascript in the browser.
You can fetch files from a server using XMLHTTPRequest,
and then make them available in a buffer.
Michael.
More information about the Pas2js
mailing list