Recent

Author Topic: How to get PDisplay/GLXDrawable from a TPanel?  (Read 4986 times)

Bendito

  • New Member
  • *
  • Posts: 11
How to get PDisplay/GLXDrawable from a TPanel?
« on: August 09, 2004, 03:14:57 am »
I just made the switch from WinXP to Linux (Slackware), and I'm really enjoying it. Anyway, when I first tried Lazarus in win32, I translated a Delphi OpenGL example app I wrote. It worked beautifully. Now I am running Lazarus on Linux and I'm trying to translate the code so that it will work on Linux.

Anyway, in my OpenGL example program in win32, I do my OpenGL drawing on a TPanel. I can retrieve the DC by using GetDC(Panel1.Handle), and then create an opengl context, and go from there. But it seems in Linux what I need to do is grab a PDisplay and a GLXDrawable. How do I get these from a TPanel in Lazarus?

My main goal would be to write a simple OpenGL component for Lazarus.

 

TinyPortal © 2005-2018