Recent

Author Topic: OpenGL and DragImage  (Read 3477 times)

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
OpenGL and DragImage
« on: November 05, 2013, 02:57:15 pm »
I want to use OpenGLContext together with a self made dragimage. That works perfectly with Gtk2 but not on Windows. The dragimage flickers, ie. it shows only when moved (and thereby gets repainted) and is overridden by the OpenGL canvas. What can I do?

PS: DoubleBuffered is active.
Lazarus 1.7 (SVN) FPC 3.0.0

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: OpenGL and DragImage
« Reply #1 on: November 05, 2013, 08:45:01 pm »
It's expected to flicker, no idea why it works with Gtk2. You can always put your image in a texture and show it with OpenGL.

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: OpenGL and DragImage
« Reply #2 on: November 05, 2013, 09:08:22 pm »
Ugh! Second step before the first... ;-)
(Thanks for the reply)
Lazarus 1.7 (SVN) FPC 3.0.0

 

TinyPortal © 2005-2018