Re: [fpc-pascal] Announcement GLPT

2018-09-27 Thread Ryan Joseph
> On Sep 23, 2018, at 10:47 PM, Darius Blaszyk wrote: > > The toolkit is quite workable for Windows and Linux. Mac is missing but I'm > hoping to receive pull requests now it's published. > I support you in this so I’ll try to make a Mac implementation since I already have Cocoa/Objective P

Re: [fpc-pascal] Announcement GLPT

2018-09-26 Thread Darius Blaszyk
> > > > There is a unit called uglyfont.pas included in Lazarus. I ported it > I Dennis, I ported the Lazarus imgui example to GLPT today and committed it to GitHub. You will also find the font library in the examples folder. Rgds, Darius ___ fpc-pascal

Re: [fpc-pascal] Announcement GLPT

2018-09-26 Thread Dennis Poon
Darius Blaszyk wrote: On Tue, Sep 25, 2018 at 5:21 PM Dennis > wrote: I tried it but found that drawing text in OpenGL seems to be problematic. Is there anyway to draw text using windows' existing font? Or is there a library for nicer vector ba

Re: [fpc-pascal] Announcement GLPT

2018-09-25 Thread Darius Blaszyk
On Tue, Sep 25, 2018 at 5:21 PM Dennis wrote: > I tried it but found that drawing text in OpenGL seems to be problematic. > Is there anyway to draw text using windows' existing font? Or is there a > library for nicer vector based font? > There is a unit called uglyfont.pas included in Lazarus. I

Re: [fpc-pascal] Announcement GLPT

2018-09-25 Thread Darius Blaszyk
On Tue, Sep 25, 2018 at 11:52 AM R0b0t1 wrote: > Are multiplexing synchronization primitives available? E.g. select(2) > but for keyboard/mouse/window events. > Multithreading is not available, however I'm open for suggestions and pull requests. > This seems to be the obvious usecase. Can some

Re: [fpc-pascal] Announcement GLPT

2018-09-25 Thread Dennis
Anthony Walter wrote: Dennis, If you want to embed OpenGL in your window, then there is already TOpenGLControl. It's included with Lazarus and is in the components folder. More here: Thanks a lot. I tried it but found that drawing text in OpenGL seems to be problematic. Is there anyway t

Re: [fpc-pascal] Announcement GLPT

2018-09-25 Thread Anthony Walter
Dennis, If you want to embed OpenGL in your window, then there is already TOpenGLControl. It's included with Lazarus and is in the components folder. More here: http://wiki.freepascal.org/OpenGL_Tutorial This library is not meant for embedding, it is meant as a native toolkit to create a window

Re: [fpc-pascal] Announcement GLPT

2018-09-25 Thread R0b0t1
On Sun, Sep 23, 2018 at 5:47 PM, Darius Blaszyk wrote: > Hi all, > > I committed GLPT or the OpenGL Pascal Toolkit just now on GitHub. This > toolkit is a (free) pascal replacement for GLUT and other similar toolkits > that depend on third party dynamic libraries. I have been using this library >

Re: [fpc-pascal] Announcement GLPT

2018-09-25 Thread Dennis
Thanks for your contribution. Just tried out your sample, they are nice. How can I use opengl within my lazarus UI program? I want to embed such an opengl window inside a TPanel, and in its Paint method, do the opengl rendering. Is that possible?  How? Dennis __

Re: [fpc-pascal] Announcement GLPT

2018-09-24 Thread Darius Blaszyk
Indeed, it resembles GLFW more, but also GHOST and fpGui to some extent. Even better, GLPT is still in development and it's 100% pascal. As far as I'm concerned it still malleable and should result in a mature alternative to any other library. On Tue, Sep 25, 2018 at 5:27 AM leledumbo via fpc-pasc

Re: [fpc-pascal] Announcement GLPT

2018-09-24 Thread leledumbo via fpc-pascal
> https://github.com/daar/GLPT This is more GLFW rather than GLUT. Good, I prefer it this way as I have much greater control with regards to the event handling. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist -

Re: [fpc-pascal] Announcement GLPT

2018-09-24 Thread Anthony Walter
Darius, Well the big main thing about glut, or sdl, or whatever bare bones framework used to create an OpenGL window are the following things: 1) Abstracting creating a window 2) Abstracting associating of a GL context with the widow 3) Abstracting the event loop 4) Abstracting reading mouse, key

Re: [fpc-pascal] Announcement GLPT

2018-09-24 Thread Darius Blaszyk
Hi Anthony, Thanks for your tip! I just committed some code that removes the Classes, SysUtils and GL units from GLPT. This is indeed better and cleaner. As for your questions about supporting different GL versions. GLPT only creates a native GL context and hides some of the platform specific cod

Re: [fpc-pascal] Announcement GLPT

2018-09-24 Thread Anthony Walter
Darius, I read you message and checked the git repository. I didn't find the answers to a few questions I had by browsing you source, so I'll ask them here. Also, I have some comments. First questions: Do you support requesting context types, such as OpenGL ES 2.0 versus OpenGL 3.1? Do you suppo

Re: [fpc-pascal] Announcement GLPT

2018-09-23 Thread Darius Blaszyk
> Sounds awesome. Thanks for sharing the code. I'll definitely be taking a > look at. You will notice in that case that some inspiration came from fpGui as well :). Cheers... Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://li

Re: [fpc-pascal] Announcement GLPT

2018-09-23 Thread Graeme Geldenhuys
On 23/09/18 16:47, Darius Blaszyk wrote: > I committed GLPT or the OpenGL Pascal Toolkit just now on GitHub. This > toolkit is a (free) pascal replacement for GLUT and other similar toolkits > that depend on third party dynamic libraries. Sounds awesome. Thanks for sharing the code. I'll definite

[fpc-pascal] Announcement GLPT

2018-09-23 Thread Darius Blaszyk
Hi all, I committed GLPT or the OpenGL Pascal Toolkit just now on GitHub. This toolkit is a (free) pascal replacement for GLUT and other similar toolkits that depend on third party dynamic libraries. I have been using this library in a couple of projects and decided to publish under the MIT licens