Re: [fpc-pascal] pas2js Webgl unit committed

2018-05-02 Thread Michael Van Canneyt
On Thu, 3 May 2018, Ryan Joseph wrote: On May 3, 2018, at 12:53 PM, Sven Barth via fpc-pascal wrote: A "make all" in the top level directory should suffice (yes, that will build all of FPC, but that is at least more or less guaranteed to work). You can then pick the pas2js binary from th

Re: [fpc-pascal] pas2js Webgl unit committed

2018-05-02 Thread Ryan Joseph
> On May 3, 2018, at 12:53 PM, Sven Barth via fpc-pascal > wrote: > > A "make all" in the top level directory should suffice (yes, that will build > all of FPC, but that is at least more or less guaranteed to work). You can > then pick the pas2js binary from the utils/pas2js/bin directory.

Re: [fpc-pascal] pas2js Webgl unit committed

2018-05-02 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am Do., 3. Mai 2018, 04:54: > Can someone put a simple guide to building on the wiki? I tried to build > from my existing FPC sources and got this error. I never got UNIX down well > so I don’t know what else I’m supposed to do besides cd to the directory > and use the “make”

Re: [fpc-pascal] pas2js Webgl unit committed

2018-05-02 Thread Ryan Joseph
Can someone put a simple guide to building on the wiki? I tried to build from my existing FPC sources and got this error. I never got UNIX down well so I don’t know what else I’m supposed to do besides cd to the directory and use the “make” command. Uploading a stable binary would be nice also b

Re: [fpc-pascal] pas2js Webgl unit committed

2018-05-02 Thread Ryan Joseph
> On May 2, 2018, at 11:36 PM, Sven Barth via fpc-pascal > wrote: > > It's "Typename = class external name 'foobar' (Basetype)", not "class > Typename = external name 'foobar' (Basetype)". We're not in C++ after all :P > > public > const READ_BUFFER: nativeint; > const UNPACK_ROW_L

Re: [fpc-pascal] pas2js Webgl unit committed

2018-05-02 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am Mi., 2. Mai 2018, 15:57: > > class TJSWebGL2RenderingContextBase = external name > 'WebGL2RenderingContextBase' (TJSObject) > It's "Typename = class external name 'foobar' (Basetype)", not "class Typename = external name 'foobar' (Basetype)". We're not in C++ after all :

Re: [fpc-pascal] pas2js Webgl unit committed

2018-05-02 Thread Ryan Joseph
> On May 2, 2018, at 6:20 PM, Michael Van Canneyt > wrote: > > Yes: You posted the link to 1.0. I think it’s actually an extension to the original so nothing was lost. The original didn’t have vertex array objects so it’s best to have both. https://www.khronos.org/registry/webgl/specs/lates

Re: [fpc-pascal] pas2js Webgl unit committed

2018-05-02 Thread Michael Van Canneyt
On Wed, 2 May 2018, Ryan Joseph wrote: On May 2, 2018, at 5:28 PM, Mattias Gaertner wrote: What is the difference to the existing webgl.pas? It’s missing a couple types and missing comments. :) I can fix that of course and works for other .idl’s also I presume (if you have any other ex

Re: [fpc-pascal] pas2js Webgl unit committed

2018-05-02 Thread Ryan Joseph
> On May 2, 2018, at 5:28 PM, Mattias Gaertner > wrote: > > What is the difference to the existing webgl.pas? It’s missing a couple types and missing comments. :) I can fix that of course and works for other .idl’s also I presume (if you have any other examples send them and I’ll try). The

Re: [fpc-pascal] pas2js Webgl unit committed

2018-05-02 Thread Mattias Gaertner
On Wed, 2 May 2018 16:28:10 +0700 Ryan Joseph wrote: > > On May 2, 2018, at 2:08 PM, Michael Van Canneyt > > wrote: > > > > Yes. the fpmkunit needs to be the latest version, for the AddLibrary call. > > I will see if I can work around it. > > So I need to build the entire compiler and I ge

Re: [fpc-pascal] pas2js Webgl unit committed

2018-05-02 Thread Ryan Joseph
> On May 2, 2018, at 2:08 PM, Michael Van Canneyt > wrote: > > Yes. the fpmkunit needs to be the latest version, for the AddLibrary call. I > will see if I can work around it. So I need to build the entire compiler and I get pas2js in the end? I didn’t realize it was built on the entire FPC

Re: [fpc-pascal] pas2js Webgl unit committed

2018-05-02 Thread Michael Van Canneyt
On Wed, 2 May 2018, Ryan Joseph wrote: On May 2, 2018, at 1:24 PM, Michael Van Canneyt wrote: It will only work with trunk. trunk of what? Do mean the entire fpc sources? Yes. the fpmkunit needs to be the latest version, for the AddLibrary call. I will see if I can work around it.