Recent

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

ChrisR

  • Sr. Member
  • ****
  • Posts: 251
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: 5524
  • 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?

Seenkao

  • Hero Member
  • *****
  • Posts: 743
    • New ZenGL.
Re: Using GTK3 on Lazarus
« Reply #17 on: February 22, 2026, 01:16:56 am »
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
Это не так! Не надо вводить в заблуждение людей! Почитайте ссылку ниже.
Надеюсь ни кого не задел своими словами.

Разработчиков Lazarus прошу учесть предоставленную информацию и реализовать возможность использования устаревшего OpenGL (если ещё не реализовано).

Google translate:
That's not true! Don't mislead people! Read the link below.

I ask the Lazarus developers to take into account the information provided and implement the ability to use legacy OpenGL (if not already implemented).

https://docs.gtk.org/gdk3/method.GLContext.is_legacy.html
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

 

TinyPortal © 2005-2018