Recent

Author Topic: OpenGL binding for Qt  (Read 4749 times)

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
OpenGL binding for Qt
« on: December 13, 2014, 10:26:37 am »
I just realized that OpenGL works with Qt which is great news for my project. I wonder how far the implementation has been done. Actually, vertex buffer objects are not drawn (I don't get any OpenGL error). Is it a bug or not yet implemented?

Nevertheless, thanks a lot!

PS: It's not working yet on darwin:
Code: [Select]
Compiling package LazOpenGLContext 0.0.1: Exit code 1, Errors: 1, Hints: 1
glqtcontext.pas(196,29) Error: Identifier not found "QX11Info_display"
« Last Edit: December 14, 2014, 04:20:14 pm by Ocye »
Lazarus 1.7 (SVN) FPC 3.0.0

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: OpenGL binding for Qt
« Reply #1 on: December 14, 2014, 05:10:38 pm »
PS: It's not working yet on darwin:
I assume this is due to glqtcontext assumes X11 display which is not darwin's native display. I can't find any replacement for darwin in the respective qt bindings, though.

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: OpenGL binding for Qt
« Reply #2 on: December 15, 2014, 12:58:44 pm »
Whatever the reason is it looks like OpenGL binding for Qt is not finished yet. Any schedule?

Quote from: unit OpenGLContext;
  Author: Mattias Gaertner

  Abstract:
    TOpenGLControl is a LCL control with an opengl context.
    It works under the following platforms:
      - qt with glx     : no (started)
Lazarus 1.7 (SVN) FPC 3.0.0