Recent

Author Topic: Using GTK3 on Lazarus  (Read 7916 times)

ChrisR

  • Full Member
  • ***
  • Posts: 247
Re: Using GTK3 on Lazarus
« Reply #15 on: April 06, 2021, 01:19:42 pm »
Handoko
 1. GTK3 only support the OpenGL Core Profile. You are unable to use Legacy OpenGL calls. This is a limitation of GTK3, not Lazarus. Lazarus projects that implement the OpenGL core profile can run on GTK3
  https://github.com/neurolabusc/OpenGLCoreTutorials
  https://github.com/neurolabusc/plyview
 2. GTK3's OpenGL does not support multi-sampling, therefore from my perspective it is a major regression from GTK2, QT5, Cocoa and WinAPI. For this reason, I would not suggest using GTK3 for OpenGL projects:
   https://github.com/aklomp/gtk3-opengl/issues/2
   https://gitlab.gnome.org/GNOME/gtk/-/issues/2616




Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: Using GTK3 on Lazarus
« Reply #16 on: April 06, 2021, 07:53:47 pm »
My OpenGL skill is poor, can only do some simple polygon drawings and animations. I have to start learning OpenGL Core Profile or soon I will be left behind.

Thank ChrisR for the information.
That surprises me, GTK3 has been developed for quite long time but has such limitations. Any info about GTK4? I heard current stable version is 4.0.3. Do you think maybe we should ignore GTK3 but go directly to the version 4?

 

TinyPortal © 2005-2018