<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body>
<div>I created a new branch called GL-version. Accepting pull requests! 😉 </div><div><br></div><div><br></div><div><br></div><div id="composer_signature"><div style="font-size:88%;color:#364f67" dir="auto">Verzonden vanaf mijn Samsung-apparaat</div></div><br><br>-------- Oorspronkelijk bericht --------<br>Van: Ryan Joseph <ryan@thealchemistguild.com> <br>Datum: 10-10-18 05:23 (GMT+01:00) <br>Aan: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org> <br>Onderwerp: Re: [fpc-pascal] GLPT v0.1.1 released <br><br><br><br>> On Oct 9, 2018, at 12:19 PM, Ingemar Ragnemalm <ingemar@ragnemalm.se> wrote:<br>> <br>> All your demos are old-style. I can't even see a single shader anywhere. I think you should use modern OpenGL more. For instance, I have made a modern version of the dear old Gears demo:<br><br>There’s not even a way to switch the OpenGL version yet so the project is effectively not ready for use (it’s stuck on 2.1 on OS X for example).<br><br>I suggest he just adds a record to the parameters when creating a window for the simplest solution. SDL uses a constants and setter/getter functions but a simple record is better.<br><br>type<br> GLPT_Context = record<br> doubleBuffer: boolean;<br> colorSize: byte;<br> depthSize: byte;<br> stencilSize: byte;<br> profile: byte;<br> minorVersion: byte;<br> majorVersion: byte;<br> end;<br><br><br>Regards,<br> Ryan Joseph<br><br>_______________________________________________<br>fpc-pascal maillist - fpc-pascal@lists.freepascal.org<br>http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</body></html>