* * *

Author Topic: DirectX component like TOpenglControl  (Read 1163 times)

zamtmn

  • Sr. Member
  • ****
  • Posts: 337
DirectX component like TOpenglControl
« on: May 08, 2018, 12:06:19 pm »
Hi All!

DirectX LCL component like TOpenglControl - does it exist?

Handoko

  • Hero Member
  • *****
  • Posts: 2575
  • My goal: build my own game engine using Lazarus
Re: DirectX component like TOpenglControl
« Reply #1 on: May 08, 2018, 02:00:03 pm »
As far as I know there is no design-time DirectX component for Lazarus.

For runtime DirectX component, you can try DirectX.lpk (by PilotLogic Software House), which now already converted to Lazarus. You can find it using Online Package Manager.

But maybe you can consider to choose framework that support both DirectX and OpenGL, so you can switch easily, like:
- Andorra 2D
- Platform eXtended Library (Asphyre framework)
- Vampyre Imaging Library

Thaddy

  • Hero Member
  • *****
  • Posts: 6734
Re: DirectX component like TOpenglControl
« Reply #2 on: May 08, 2018, 02:11:52 pm »
DirectX LCL component like TOpenglControl - does it exist?
Why would you use DirectX? It is passed it's sell-by date. There is some open source code - but Embarcadero cleaned up most of it after they bought out the author to release FireMonkey so it is rather hard to get but still open source.
I forgot the name, it wasn't very stable and it is *still* not stable. (The T-shirts were high quality, though  8-)  Bummer, T-shirts better than product...I still have some)
« Last Edit: May 08, 2018, 02:19:17 pm by Thaddy »
Ada's daddy wrote this:"Fools are my theme, let satire be my song."

zamtmn

  • Sr. Member
  • ****
  • Posts: 337
Re: DirectX component like TOpenglControl
« Reply #3 on: May 09, 2018, 03:39:31 pm »
This need for http://forum.lazarus.freepascal.org/index.php/topic,16665.0.html. I already support OpenGL, GDI via LCL and Canvas. But for people who do not bother to install drivers from the gpu manufacturer need to implement DirectX
« Last Edit: May 10, 2018, 10:19:41 am by zamtmn »

zamtmn

  • Sr. Member
  • ****
  • Posts: 337
Re: DirectX component like TOpenglControl
« Reply #4 on: May 10, 2018, 09:45:56 am »
I did not find the generally recognized components. The closest I found TRenderPanel from here https://github.com/yizraor/PubDX_VCL_LCL/blob/master/03%20-%20TCustomControl%20descendant/Lazarus/uFormMain.pas, I will Take it as a basis

Zath

  • Sr. Member
  • ****
  • Posts: 290
Re: DirectX component like TOpenglControl
« Reply #5 on: May 10, 2018, 10:03:04 am »
Try here.
http://www.micrel.cz/Dx/

He said to me some time ago in an email that he was looking at Lazarus but I never followed it up.
This stuff has been around a while now so some of the open source might be convertible.


marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6503
Re: DirectX component like TOpenglControl
« Reply #6 on: May 10, 2018, 12:53:29 pm »
DirectX LCL component like TOpenglControl - does it exist?
Why would you use DirectX? It is passed it's sell-by date.

You must be confused with OpenGL. OpenGL will be supplanted by Vulkan.

DirectX didn't use a new project, but Mantle like concepts flowed into DirectX 12. That is the problem with DirectX though, it is versioned.

Thaddy

  • Hero Member
  • *****
  • Posts: 6734
Re: DirectX component like TOpenglControl
« Reply #7 on: May 10, 2018, 03:17:22 pm »
Well changing names is a kind of versioning  :) O:-)
Ada's daddy wrote this:"Fools are my theme, let satire be my song."

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus