View Full Version : Drawing Delphi components?

17-10-2005, 12:32 AM
Is it possible to draw Delphi components and forms using Asphyre? I'm looking for some shortcuts to help build the (complex) interface for my strategy game. And I'm open to any other suggestions on the matter, anything to make the task easier and faster.

17-10-2005, 01:50 AM
You can't use regular VCL interfaces in Direct3D-based applications. However, the good news is that AsphyreGUI is VCL-like set of components and visual designer to make VCL-like interfaces in Asphyre. It is still under development and will be included in the release of Asphyre eXtreme (no exact release date, but is scheduled to be ready before December 2005).

You can see AsphyreGUI in action in JawBreaker game posted by 2morrowman on Afterwarp forums.
Check it out here:

P.S. Since AsphyreGUI is considerably different from the version used in JawBreaker, here's a small application that shows few windows using new AsphyreGUI (frame-rate is limited to 100 FPS max using new TAsphyreTimer):

17-10-2005, 02:16 AM
Set of VCL-like components AND visual designer you say? That's enough excitement to really get me going on this project! I'll be looking forward to that then in the coming month.

17-10-2005, 06:23 AM
I've never used Asphyre, but if you really need to draw a component to a surface you probably could use the components Paint() function.

eg: Button1.PaintTo(TheSurface.Canvas,50,50);

To make the button work like normal, just do a simple box collision with the mouse position, and call the buttons onClick event, or whetever you need.
Not a real professional way of doing things, but just an idea. :o

18-10-2005, 05:26 PM
Thanks, I'll keep that handy but I'll avoid doing so for now.

19-10-2005, 08:00 PM
Since many people requested this, we've published some unofficial version of Asphyre Pro 1.1.2 which includes experimental version of AsphyreGUI.
Use at your own risk, or wait for Asphyre eXtreme :)

Visit http://www.afterwarp.com for more information.

28-04-2006, 12:21 PM

07-09-2006, 09:01 AM

We plan to transition our game from unDelphiX to Asphyre but not yet, so if you find out anything useful, please share.