PDA

View Full Version : Drawing Delphi components?



Yapper
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.

LP
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:
http://www.afterwarp.com/forum/showthread.php?t=28

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):
http://www.afterwarp.com/downloads/new-asphyregui.zip

Yapper
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.

K4Z
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

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

LP
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.

begin
28-04-2006, 12:21 PM
Listen

blackvoid
07-09-2006, 09:01 AM
FYI:
http://www.afterwarp.net/forum/thread793.html

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